LoginSignup
13
13

More than 5 years have passed since last update.

Goのバージョンアップをした際のライブラリのリビルド

Last updated at Posted at 2014-09-06

Goを1.3から1.3.1に上げた後、ビルド時にこんなエラーが出るようになった。

import /home/sudix/pkg/linux_amd64/github.com/codegangsta/cli.a: object is [linux amd64 go1.3 X:precisestack]
 expected [linux amd64 go1.3.1 X:precisestack]

ググってこの通りにしたら、とりあえず解決。

compilation - How to compile go program in 1.1.2 with dependencies compiled in 1.1.1? - Stack Overflow

cd my_application_src_path
go clean -r -i
go install -a

my_application_src_pathは、自分のビルドしたいアプリのソースディレクトリ。

もっといい解決策があるような気がするんだけど、とりあえずメモ。

13
13
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
13