Hacker News new | ask | show | jobs
by ilyt 1214 days ago
I'd gladly take $1 worth of storage over venv/pip mess.

> Compare this to my GOPATH/GOROOT which is insanely full of mods...gigabytes...

Go apps are self-contained blobs. You can just... not install it ? `go build` will just leave you with binary blob in root dir you can put whenever.

1 comments

Building means downloading dependencies means an ever-growing module cache with no ability to prune it.

    rm -rf ~/go
once a year ought to do it
rm -rf ~/go is not recommended.

1. This will blow away any programs in ~/go/bin

2. Nothing in ~/go/pkg/mod has +w, so the rm -rf will not work anyway. Try

  go clean -modcache