Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rebuild all library after upgrading Go 1.4

Tags:

go

upgrade

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.

like image 267
Kokizzu Avatar asked Dec 16 '14 04:12

Kokizzu


2 Answers

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

like image 187
dyoo Avatar answered Oct 22 '22 02:10

dyoo


Ah I see, removing /home/asd/Dropbox/go/pkg/linux_amd64/projc1/ would solve this problem.

like image 34
Kokizzu Avatar answered Oct 22 '22 03:10

Kokizzu