Git Product home page Git Product logo

Comments (6)

alexflint avatar alexflint commented on May 22, 2024

Did you install git-lfs before running go get?

from gallium.

Charliego3 avatar Charliego3 commented on May 22, 2024

from gallium.

trietphm avatar trietphm commented on May 22, 2024

Same here

$ go version
go version go1.10 darwin/amd64
$ git lfs install
Git LFS initialized.
$ go get -v github.com/alexflint/gallium
github.com/alexflint/gallium
go build github.com/alexflint/gallium: invalid flag in #cgo LDFLAGS: -Wl,-rpath,@executable_path/../Frameworks

from gallium.

trietphm avatar trietphm commented on May 22, 2024

Just revert back to go1.9 and go get works fine

from gallium.

alexflint avatar alexflint commented on May 22, 2024

Seems like this is a result of a security-related patch in go 1.10 that whitelisted specific cgo comple/link flags: golang/go#23749

from gallium.

ianlancetaylor avatar ianlancetaylor commented on May 22, 2024

That flag really is insecure. An attacker can manipulate the program if they can get it to run in an unexpected directory. It's the kind of thing the whitelist is meant to prevent. For more information see https://golang.org/wiki/InvalidFlag .

from gallium.

Related Issues (20)

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.