Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: go clean -cache runs module load #26432
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
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.