I'm using Go 1.13.1, latest as of today.
I'm trying to completely remove a package that I installed with go get
from GitHub. The go clean -i <PACKAGE_NAME>
didn't seem to work, since there are files spread through, at least, these directories:
~/go/pkg/mod/github.com/<PACKAGE_NAME>
~/go/pkg/mod/cache/download/github.com/<PACKAGE_NAME>
~/go/pkg/mod/cache/download/sumdb/sum.golang.org/lookup/github.com/<PACKAGE_NAME>
Is there a way to clean everything without removing all that manually?
git clean
effect the go cache? – Barbarize~/go
. – Vynergit clean -i
. If you meantgo clean -i
, the help output says nothing about removing the cache:The -i flag causes clean to remove the corresponding installed archive or binary
– Barbarizego clean
. Fixed. – Vyner