-
Notifications
You must be signed in to change notification settings - Fork 18k
proposal: cmd/go: make go get leave go.sum in a tidy state #49300
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
go get does a lot less work and loads many fewer packages than go mod tidy does. |
This proposal has been added to the active column of the proposals project |
Happy to have this closed if not feasible, thank you. |
I think there are some cases where The cases where it would be straightforward to add precision are:
That said, those increases in precision still wouldn't guarantee that |
Based on the discussion above, this proposal seems like a likely decline. |
I‘m a bit confused with the summary. In terms of „always“ tidy it seems that it‘s a decline. In terms of „more often tidy than today“ it seems to be „accept“. Just to clarify- the latter would imho be better than nothing. If not worth complexity vs benefit a brief comment would be appreciated. |
No change in consensus, so declined. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
A
go.sum
that will not change whengo mod tidy
is run.What did you see instead?
go.sum
containing both old and new commit of downloaded module.My projects use
git porcelain
to check everything is up-to-date and tidy, including runninggo mod tidy
before. To achieve that state, ago get
almost always need be followed bygo mod tidy
. It would be nice if that was the default or optional behaviour ofgo get
.The text was updated successfully, but these errors were encountered: