Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: allow to specify modules to delete with 'go clean -modcache' #32976

hyangah opened this issue Jul 8, 2019 · 0 comments


Copy link

@hyangah hyangah commented Jul 8, 2019

go clean -modcache causes cleaning of the entire module download cache.

$ go1.13beta1 help clean
The -modcache flag causes clean to remove the entire module
download cache, including unpacked source code of versioned

This is useful when the module cache contains problematic modules
(e.g. module version that is different sum hash from what has, etc) .
But, redownloading everything is sometimes costly.
It would be nice if users can have controls over what modules to delete.

What version of Go are you using (go version)?

$ go version

Does this issue reproduce with the latest release?


What operating system and processor architecture are you using (go env)?


@hyangah hyangah added the modules label Jul 8, 2019
@bcmills bcmills added this to the Go1.14 milestone Jul 8, 2019
@rsc rsc modified the milestones: Go1.14, Backlog Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.