Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: trim go.sum without adding module requirements #29800
What version of Go are you using (
It would be nice to have a way to cleanup go.sum from stuff that are not relevant for the building the module and only keep the minimal required.
The current behavior adds hashes for all the stuff in one's go root which one might not want to expose to others (privacy) when pushing the module to a repo. Right now I need to manually cleanup the go.sum file before pushing it to the repo.
relevant bug: #26381