We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It's not possible to download go modules without using proxy.golang.org due to a couple of issues:
proxy.golang.org
go mod download
master
go: github.com/eclipse/che-plugin-broker@v3.1.1-0.20200207223144-b20597f15e4c+incompatible: invalid version: unknown revision b20597f15e4c
v3.1.1-0.20200207223144-b20597f15e4c+incompatible
v3.1.1
require github.com/eclipse/che-plugin-broker v3.1.1+incompatible
go: github.com/openshift/api@v3.9.1-0.20190424152011-77b8897ec79a+incompatible: invalid pseudo-version: preceding tag (v3.9.0) not found
The default go package in Fedora 31 and 32 uses GOPROXY=direct, which causes the issue above; this will likely impact rhel-based distros as well.
GOPROXY=direct
Set GOPROXY=https://proxy.golang.org,direct before downloading modules or download and use a separate binary -- e.g.
GOPROXY=https://proxy.golang.org,direct
pushd $(mktemp -d) go get golang.org/dl/go${VERSION} go${VERSION} download alias go=go${VERSION} popd
Once modules have been successfully cached, the error above is avoided even without using proxy.golang.org
The text was updated successfully, but these errors were encountered:
Additional context: openshift/api#456
Sorry, something went wrong.
amisevsk
No branches or pull requests
Describe the problem
It's not possible to download go modules without using
proxy.golang.org
due to a couple of issues:go mod download
in the currentmaster
gives the errorv3.1.1-0.20200207223144-b20597f15e4c+incompatible
withv3.1.1
in the go.mod file and running again updates the dependency toAdditional details
The default go package in Fedora 31 and 32 uses
GOPROXY=direct
, which causes the issue above; this will likely impact rhel-based distros as well.Workaround
Set
GOPROXY=https://proxy.golang.org,direct
before downloading modules or download and use a separate binary -- e.g.Once modules have been successfully cached, the error above is avoided even without using proxy.golang.org
The text was updated successfully, but these errors were encountered: