-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: Unable to update dependency using insteadOf #34148
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
Comments
Sorry for the inconvenience. I think this is working as intended.
GOPRIVATE (or GONOPROXY, GONOSUMDB) are offered to work with private repos. |
Does this mean that it is intended that private repos are forced to migrate to using these env vars? |
Fix: |
Yes, we know how to fix it. It's just that it doesn't work OOTB anymore. The |
@avorima It's intentional that GOSUMDB doesn't accept fallback. Otherwise, it's possible that MITM attacker blocks your communication temporarily, lets you download different version without getting noticed. By triggering failure, at least, the |
Ok, I read the sumdb proposal and I understand the security implications of disabled GOSUMDB as fallback. It also answered a few other questions I had about this whole infrastructure. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Only with the latest release.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
That the dependency got added to the
go.mod
.What did you see instead?
After exporting
GONOSUMDB=private.gitlab.com/project
the dependency was added successfully. This is an unexpected behaviour, which is why we're currently still waiting with upgrading the go version in our environment.The text was updated successfully, but these errors were encountered: