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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…