cmd/go: clean -cache -n should not delete cache #39250
Labels
FrozenDueToAge
GoCommand
cmd/go
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go clean -cache
but with the -n flag, which according to documentation, states that it only prints the commands it would run, not run them.$go clean -cache -n
OutputWhat did you expect to see?
The cache should not be removed, but a series of rm command should be printed.
What did you see instead?
The cache was removed, (but the series of rm commands was printed).
Either the documentation is ambiguous (should it apply to clean -cache as well as packages?) or this is a bug.
The text was updated successfully, but these errors were encountered: