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
Labels
FeatureRequest FrozenDueToAge modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@hyangah
Copy link
Contributor

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
Member

Duplicate of #28835

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FeatureRequest FrozenDueToAge modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

5 participants