Git Product home page Git Product logo

Comments (14)

tchap avatar tchap commented on June 12, 2024

Hmm, works locally, I will close this before I can prove it's not just CircleCI env setup error...

from gonative.

inconshreveable avatar inconshreveable commented on June 12, 2024

It works locally on 1.5.1 but not on circle? That's pretty bizarre.

from gonative.

tchap avatar tchap commented on June 12, 2024

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.

inconshreveable avatar inconshreveable commented on June 12, 2024

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.

tchap avatar tchap commented on June 12, 2024

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.

tchap avatar tchap commented on June 12, 2024

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.

tchap avatar tchap commented on June 12, 2024

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.

tchap avatar tchap commented on June 12, 2024

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.

tchap avatar tchap commented on June 12, 2024

Seems like a gox issue to me, somehow...

from gonative.

tchap avatar tchap commented on June 12, 2024

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.

tchap avatar tchap commented on June 12, 2024

Yeah, confirmed that the same thing totally works when using --version 1.4.3 with gonative. Forwarded to golang-nuts mailing list...

from gonative.

databus23 avatar databus23 commented on June 12, 2024

I can't seem to get gonative to work for go >= 1.5. It always seems to rebuild the stdlib.

from gonative.

databus23 avatar databus23 commented on June 12, 2024

Maybe its related to this change: https://go-review.googlesource.com/#/c/9154/.

from gonative.

tchap avatar tchap commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.