Last active
December 20, 2016 14:27
-
-
Save kitsuyui/fc68a1a785fbff92ebff11fdfc4851f8 to your computer and use it in GitHub Desktop.
Go のバイナリには -ldflags '-w -s' でコンパイルしてもたくさんパスが埋め込まれていた ref: http://qiita.com/kitsuyui/items/d03a9de90330d8c275c8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ go build -ldflags '-w -s' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_/Users/kitsuyui/.go/*****/*****.go | |
_/Users/kitsuyui/develop/*****/*****.go |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker run --rm -v "$(pwd)":/foobar -w /foobar tcnksm/gox:latest \ | |
sh -c "go get -d ./... && gox -ldflags '-w -s'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment