cmd/go: go clean -n -modcache
does not respect -n option
#27458
Labels
Milestone
go clean -n -modcache
does not respect -n option
#27458
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Didn't try with tip, but cmd/go/internal/clean/clean.go looks like it will behave the same.
What did you do?
What did you expect to see?
Output like
rm -rf $HOME/go/pkg/mod
, and for the files in there to remain undeleted.What did you see instead?
It appeared to be the output of
go clean -n
, and the effect ofgo clean -modcache
.The text was updated successfully, but these errors were encountered: