Skip to content

fix: go 1.13 avoid go PROXY. #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 26, 2019
Merged

Conversation

pchampio
Copy link
Member

Go 1.13 introduced a proxy for go modules versioning.
This proxy doesn't allow to go get package that have '/' in the
version string.

eg go get github.com/go-flutter-desktop/[email protected] works.
But go get get github.com/go-flutter-desktop/go-flutter@feature/test
wont because of the '/' after the '@'.

The issue is reported in golang/go#32955
A fix is to by-pass the PROXY by using the GOPROXY=direct venv.

Go 1.13 also doesn't fetch '@latest' when the tag is already valid.
This commit sets '@latest' to the version string when needed (hover upgrade)

Go 1.13 introduced a proxy for go modules versioning.
This proxy doesn't allow to `go get` package that have '/' in the
version string.

eg `go get github.com/go-flutter-desktop/[email protected]` works.
But `go get get github.com/go-flutter-desktop/go-flutter@feature/test`
wont because of the '/' after the '@'.

The issue is reported in golang/go#32955
A fix is to by-pass the PROXY by using the `GOPROXY=direct` venv.

Go 1.13 also doesn't fetch '@latest' when the tag is already valid.
This commit sets '@latest' to the version string when needed (hover upgrade)
@pchampio pchampio merged commit 0d7f01b into master Sep 26, 2019
@pchampio pchampio deleted the fix/branch-selection-go1.13 branch September 26, 2019 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant