After I upgraded Go, how do I make sure all my packages in $GOPATH/pkg
and binaries in $GOPATH/bin
are recompiled using the new version ?
I would like that any upgrade errors are reported as warnings, not errors causing the operation to abort.
Assuming you have a single GOPATH path, you can update all packages by running this:
cd $GOPATH/src
go get -u -v ./...
If you have multiple GOPATHs you need to go into the src
folder of each one of them and run:
go get -u -v ./...
Then run go install all
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With