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: how do you automatically delete multiple versions in the mod directory #39765

Closed
Aquarian-Age opened this issue Jun 22, 2020 · 2 comments

Comments

@Aquarian-Age
Copy link

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

$ go version
go version go1.14 linux/amd64

Does this issue reproduce with the latest release?

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

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/xuan/.cache/go-build"
GOENV="/home/xuan/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"

What did you do?

automatically delete multiple versions in the mod directory
ls google.golang.org/
api@v0.20.0 appengine@v1.6.5 genproto@v0.0.0-20191028173616-919d9bdd9fe6 grpc@v1.27.1
appengine@v1.0.0 appengine@v1.6.6 genproto@v0.0.0-20200413115906-b5235f65be36 protobuf@v1.23.0
appengine@v1.1.0 genproto@v0.0.0-20180817151627-c66870c02cf8 grpc@v1.18.0
appengine@v1.4.0 genproto@v0.0.0-20180831171423-11092d34479b grpc@v1.21.1
appengine@v1.6.1 genproto@v0.0.0-20190626174449-989357319d63 grpc@v1.24.0

What did you expect to see?

ls google.golang.org/
api@v0.20.0 grpc@v1.27.1
appengine@v1.6.6 protobuf@v1.23.0
genproto@v0.0.0-20190626174449-989357319d63 grpc@v1.24.0

@icholy
Copy link

icholy commented Jun 23, 2020

If your module cache is getting too big, just delete it with go clean --modcache.

@cagedmantis cagedmantis changed the title go mod How to automatically delete multiple versions in the mod directory cmd/go: how do you automatically delete multiple versions in the mod directory Jun 23, 2020
@cagedmantis
Copy link
Contributor

@Aquarian-Age We don't really use our issue tracker for questions. More people will see your question, and you will get better answers, if you ask on a forum rather than on the issue tracker. See https://golang.org/wiki/Questions.

@golang golang locked and limited conversation to collaborators Jun 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants