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

Closed
hyangah opened this issue Jul 8, 2019 · 1 comment
Closed

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

hyangah opened this issue Jul 8, 2019 · 1 comment
Labels
FeatureRequest modules NeedsInvestigation
Milestone

Comments

@hyangah
Copy link
Contributor

@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
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

@seankhliao
Copy link
Contributor

@seankhliao seankhliao commented Jun 15, 2022

Duplicate of #28835

@seankhliao seankhliao marked this as a duplicate of #28835 Jun 15, 2022
@seankhliao seankhliao closed this as not planned Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FeatureRequest modules NeedsInvestigation
Projects
None yet
Development

No branches or pull requests

4 participants