“go build” became very slow after installing a new version of Go

You probably have dependencies that are being recompiled each time. Try go install -a mypackage to rebuild all dependencies.

Removing $GOPATH/pkg also helps to ensure you don’t have old object files around.

Building with the -x flag will show you if the toolchain is finding incompatible versions.

Leave a Comment

File not found.