cmd/go: allow go mod edit a go.mod from stdin #28118
Labels
FeatureRequest
FrozenDueToAge
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?go version go1.11.1 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
No way to pass in a go.mod file via stdin to
go mod edit -print
. We want to run a git filter which removes a replace, to prevent devs accidentally committing it. We tried to work around it via bash tricks of redirecting stdin to a file. What ended up working was quite verboseWhat did you expect to see?
An option for doing edits on a file via stdin, given you can output via stdout.
The text was updated successfully, but these errors were encountered: