-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: mod tidy result different from previous go version #47847
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
As far as I'm aware, this is expected. See https://golang.org/doc/go1.17#go-command. Closing for now. Let me know if there's something else and I'll reopen. |
I cannot find anything that would apply when required go version remains at 1.16? Imho reopen. |
does not apply here. It‘s still 1.16 |
You're right. This paragraph
suggested to me that That being said, I'm not actually sure if |
I tried this out, but I'm seeing both Go 1.16.7 and 1.17 remove that line from go.sum. It doesn't seem like any packages in it are needed to build packages in the main module or their tests, so it's correct for @andig What does |
This is very strange. Yesterday, 2 different developers were able to reproduce that the sum entry is NOT removed with go1.17 locally, while it was on CI with go1.16.7 (which is how we've found this). I was also able to repro that it IS removed with 1.16.6 locally. Today, I've rerun everything for 1.16.6+7 and 1.17 and do locally get consistent behaviour- the entry IS always removed, even on go1.17. Either there is flaky behaviour in 1.17 (unlikely) or we've both screwed up yesterday (likely). I'll close for now and get back if I see this again- thank you! |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Running
go mod tidy
on top of evcc-io/evcc@f20f97a does not make changes. Going back to go 1.16.7, which is running on CI, I getWhat did you expect to see?
Consistent behaviour while required go version is not changed.
What did you see instead?
Different treatment of
go.sum
in go 1.17The text was updated successfully, but these errors were encountered: