Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: allow go mod edit a go.mod from stdin #28118
What version of Go are you using (
See filter section on https://git-scm.com/docs/gitattributes. You specify a command which takes the file via stdin and output the contents to actually commit over stdout. We often use replace to a relative directory since we have two closely coupled repos. We are wanting to try out a git filter to avoid accidental commits of the replace one uses in local development.
Additionally, I expected