-
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: add documentation for go.work.sum #51941
Comments
CC @matloob |
I recently added go.work to a large project and another maintainer asked me about the sum file and it left me a bit clueless as well. Seems oddly missing from https://go.dev/ref/mod#workspaces |
I agree, a little piece of documentation on the purpose of this file and its insides would be great. |
I also came across a few situations where the |
I've been really struggling with this myself. My |
Change https://go.dev/cl/563855 mentions this issue: |
I sent out CL 563855 to add documentation to golang.org/ref/mod, which seems to be the best place for it. @calebschoepp Usually go.work files shouldn't be checked in, so go.work.sum files shouldn't be checked in either. But if you are checking in your go.work file it makes sense to check in the go.work.sum file for consistency for the same reason that a go.sum is checked in: to guarantee that others doing a build in your repo are getting the same results. Maybe we could add a line about that to the text proposed for 53502. |
With the release of Go 1.18, we now have workspaces. From my findings, workspaces appear to be documented in the following locations:
None of these locations however make mention of the
go.work.sum
file. Thego.work.sum
file was however described in the proposal.This issue is to bring the description of the
go.work.sum
file from the proposal into the official documentation.The text was updated successfully, but these errors were encountered: