How to rebuild all library after upgrading Go 1.4

Kokizzu picture Kokizzu · Dec 16, 2014 · Viewed 12.2k times · Source

I was using Go 1.3.3. After installing 1.4, there are many errors similar to this:

db/base.go:4: import /home/asd/Dropbox/go/pkg/linux_amd64/projc1/libs/Bool.a: 
 object is [linux amd64 go1.3.3 X:precisestack] 
  expected [linux amd64 go1.4 X:precisestack]

How do I resolve this? I've tried go build on $GOPATH/src/projc1/libs/Bool/ but it has no effect.

Answer

dyoo picture dyoo · Dec 16, 2014

You're probably looking for go build -a to force rebuilding of existing packages.