-
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: "mod tidy" on tip can tidy less than 1.17 #49598
Comments
Ah, a release note would certainly be nice. I guess I should be using |
Any update on this? The release notes doesn't seem to mention this yet. Thanks. (pinging as this is a release blocker) |
Hi @bcmills, is it possible for some modules that switching back and forth between 'go mod tidy' in 1.17 vs 1.18 would leave go.sum in a state where one go version refuses to build due to a missing go.sum entry that the other go version removed? (And just to state the obvious, no rush on a reply). |
@thepudds, if one runs |
Change https://golang.org/cl/378577 mentions this issue: |
Updates golang#47738 Fixes golang#49598 Change-Id: I708dcb880a701699116227a9eaca994cf460fef9 Reviewed-on: https://go-review.googlesource.com/c/go/+/378577 Trust: Bryan Mills <[email protected]> Run-TryBot: Bryan Mills <[email protected]> Trust: Daniel Martí <[email protected]> Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
I had a bizarre situation at work where, developing with Go master locally, CI would tell me my module was tidy.
Took me a minute to realise that Go master was doing less tidying than Go 1.17. Repro below:
This sounds like a bug to me - I would imagine that Go 1.17 and the upcoming 1.18 would agree on what a tidied module is, especially given how this go.mod says
go 1.16
.cc @bcmills @matloob
The text was updated successfully, but these errors were encountered: