patterngoCritical
Removing packages installed with go get
Viewed 0 times
withpackagesremovinginstalledget
Problem
I ran
go get package to download a package before learning that I needed to set my GOPATH otherwise that package sullies my root Go install (I would much prefer to keep my Go install clean and separate core from custom). How do I remove packages installed previously?Solution
It's safe to just delete the source directory and compiled package file. Find the source directory under
$GOPATH/src and the package file under $GOPATH/pkg/, for example: $GOPATH/pkg/windows_amd64.Context
Stack Overflow Q#13792254, score: 289
Revisions (0)
No revisions yet.