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

Open
hyangah opened this issue Jul 8, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@hyangah
Copy link
Contributor

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
dependencies.
...

This is useful when the module cache contains problematic modules
(e.g. module version that is different sum hash from what sum.golang.org 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
go1.13beta1

Does this issue reproduce with the latest release?

Yes.

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

linux/amd64

@hyangah hyangah added the modules label Jul 8, 2019

@bcmills bcmills added this to the Go1.14 milestone Jul 8, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.