-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: go build -mod=readonly still updates a go.work.sum file #70272
Comments
We did this intentionally, though I agree it's a bit awkward and we might potentially need to add a feature to help users with checked in Since If the The most important goal of the When we started working on workspaces, the intention was that I do think that the current behavior is the best behavior for most users, but perhaps we should add a command (maybe called |
Go version
go1.23.2
Output of
go env
in your module/workspace:What did you do?
What did you see happen?
go.work.sum
file has changes to it.What did you expect to see?
go.work.sum
file unchanged, because the-mod=readonly
flag was given.The text was updated successfully, but these errors were encountered: