cmd/go: go clean -modcache should not download modules #36798
Labels
FrozenDueToAge
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
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?
From inside an empty module (a directory with a
go.mod
file but no.go
source files:go clean -modcache -n github.com/perillo/i3workon
What did you expect to see?
I was expecting to see only the commands used to remove the module cache.
What did you see instead?
go clean
is downloading the module, since it is not present in the cache, and then removing it.There is also something strange with the commands
go clean
is using.If, in the end, it is going to remove the entire
$GOPATH/pkg/mod
directory, what's the use of first trying to remove the specified package first?I also don't really understand what
is trying to do.
These files do not exist.
The text was updated successfully, but these errors were encountered: