You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nice. The problem is that "go clean" originally meant clean the current directory, and so as we've added flags we've kept the original behavior too. But in the case of modules the load is fairly expensive. We should either make the load use -getmode=noauto (#26361) or just skip it entirely when there are flags. Probably the former, once that exists.
rsc
changed the title
cmd/go: go clean -cache will find main module
cmd/go: go clean -cache runs module load
Jul 19, 2018
rsc
added
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
labels
Jul 19, 2018
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version devel +ce09ce4 Wed Jul 18 01:16:24 2018 +0000 linux/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?
$ export GO111MODULE=on $ go clean -cache
my go.mod as follow:
What did you expect to see?
no any error
What did you see instead?
The text was updated successfully, but these errors were encountered: