Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: document why go mod tidy adds entries beyond those added by go build #27633
What version of Go are you using (
You can use
The reason is that
cc @bcmills - I wonder whether we should update the documentation for
Because one reading of the documentation is that
#26571 "cmd/go: clarify doc that go commands like 'go build' are not always sufficient to update go.mod and 'go mod -sync' is sometimes required to handle variability due to GOOS/GOARCH/build tags"
...which tries to highlight a few different places where the documentation seems to leave the impression with at least some readers that commands like
That issue #26571 also cites the help for
And it is not that the doc is entirely missing the information, e.g., the "Maintaining module requirements" section says:
But there are other pieces of the doc in other sections that seem to imply
In short, I agree with @myitcv there is opportunity to clarify the documentation a bit on this topic.