-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
cmd/go: add -getmode=noauto #26361
Comments
🚲 Don't want to get too far into painting the bike shed but a name like I'm completely fine with it trying to automatically satisfy dependencies by downloading them. I just want to make sure there's a mode that will only download the exact versions which are captured in the go.mod/go.sum files and doesn't do anything beyond that. (My personal preference would be that |
I'm not actually sure what it means at the moment (see #26370). But I agree that we probably do want separate modes for “use only modules that are available” and “don't modify my |
I don't think Currently, In contrast, CI systems may or may not care about how we fetch modules. (For example, a CI system with a reliable connection to a So I would suggest instead a new |
Change https://golang.org/cl/126696 mentions this issue: |
CI systems need a way to test what's in the go.mod and fail if something is missing instead of looking to satisfy dependencies automatically. We meant for -getmode=local to mean this, but it really means something a little bit different. We should add a -getmode that does mean "you can't change go.mod". Maybe -getmode=noauto.
/cc @bcmills
The text was updated successfully, but these errors were encountered: