Comments (14)
Hmm, works locally, I will close this before I can prove it's not just CircleCI env setup error...
from gonative.
It works locally on 1.5.1 but not on circle? That's pretty bizarre.
from gonative.
Yeah, something weird. When I do everything locally and try the cross-compiled executable, it works. When I SSH into a CircleCI container and do the same thing manually, I get the error that user.Current
is not specified...
from gonative.
Some possibilities:
- Inside circle, the binaries are being built with their version of Go instead of the one created by gonative
- gonative is failing silently and producing a Go installation that doesn't used the downloaded libraries
from gonative.
Thanks for the hints. What is weird for me is that it has always been working just fine, it just broke for some reason recently. I did refactor the build scripts, but they should be doing the same thing...
from gonative.
Well, the good part is that I changed the scripts to work locally as well and the executables are broken even when run locally, so the scripts are simply wrong somehow. No idea why it used to work then, but whatever...
from gonative.
Actually I am getting the same error locally when using the commands as in README examples, i.e.
$ go get -u github.com/mitchellh/gox
$ <build current gonative using make>
$ cd /your/project
$ gonative build
$ PATH=$PWD/go/bin/:$PATH gox
Weird, I though that this was working...
from gonative.
Actually it doesn't work even when I use system Go 1.5.2 like
gox -osarch=darwin/amd64
It starts working when I add -cgo
...
from gonative.
Seems like a gox
issue to me, somehow...
from gonative.
I basically don't understand why the following command rebuilds the standard library...
$ GOROOT_BOOTSTRAP="..." gonative build --platforms 'darwin_amd64 linux_amd64 windows_amd64'
...
$ PATH="`pwd`/go/bin:$PATH" GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -v
runtime
errors
math
sync/atomic
unicode/utf8
sort
unicode
sync
...
from gonative.
Yeah, confirmed that the same thing totally works when using --version 1.4.3
with gonative
. Forwarded to golang-nuts mailing list...
from gonative.
I can't seem to get gonative to work for go >= 1.5. It always seems to rebuild the stdlib.
from gonative.
Maybe its related to this change: https://go-review.googlesource.com/#/c/9154/.
from gonative.
Dunno. I actually asked on the mailing list, but no one replied. I ended up downgrading to Go 1.4.3 actually...
from gonative.
Related Issues (19)
- gonative build returns "Bad response for download: 404" HOT 6
- Fails to build, go1.4 windows/amd64 HOT 1
- Make fails because Godeps/Godeps.json not checked in HOT 1
- golang 1.4.2 do not have freebsd release package HOT 1
- Does this works for compiling go using sqlite3 package HOT 2
- Test / Validate on Windows HOT 2
- Go 1.5.1 support HOT 5
- Distribution URL needs an update HOT 2
- gonative fails to build HOT 13
- Easier Bootstrap for Go 1.5+ HOT 4
- Fails to build on OS X 10.8 HOT 6
- go get failed with too many errors HOT 2
- Support for alternative libc's like musl?
- question about deprecation of this tool and alternative HOT 5
- gonative can't be `go get`-ed HOT 1
- make.bash build does not install race enabled stdlib packages HOT 4
- Fails to build, 1.3 on linux-amd64 HOT 2
- > gonative won't run on Windows because it uses unzip/tar unix utilities HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gonative.