I had a problem compiling the git2go library on OS X to linux amd64 after the upgrade, go 1.4.2 to go to 1.5.
I think this is about cross-compiling any go application using C code with go 1.5.
Using CGO_ENABLED=1 , I get:
$ CGO_ENABLED=1 GOOS=linux GOARCH=amd64 ./script/with-static.sh go install ./...
Using -compiler=gccgo , I get:
$ GOOS=linux GOARCH=amd64 ./script/with-static.sh go install -compiler gccgo ./... go build github.com/libgit2/git2go: : fork/exec : no such file or directory
If you do not supply any of them, I get:
$ GOOS=linux GOARCH=amd64 ./script/with-static.sh go install ./... can't load package: package github.com/libgit2/git2go: C source files not allowed when not using cgo or SWIG: wrapper.c
I installed go using homebrew and I have $GOPATH pointing to the default location ~/go , nothing unusual.
Calin source share