Coder Social home page Coder Social logo

Comments (3)

magiconair avatar magiconair commented on August 16, 2024

That is not necessary since go get will run go install which will build a binary for fabio and store it in $GOPATH/bin Only, if you want a fully static binary on OSX then you need the Makefile since it sets the -tags netgo for the linker. On Linux this is the default. You can check that with ldd fabio and should get no dependencies.

Also, go build has the same effect. The only thing the Makefile does really is to ensure the git hash is stored in the main.version variable.

I've written the Makefile mainly for myself for the release process but gaging from this ticket it may confuse more than it helps. Maybe I should put it in the build directory

from fabio.

strarsis avatar strarsis commented on August 16, 2024

Thank you for your answer.

Yes, go get will also build the binary.
The binary will be in folder ./bin/,
so it may be helpful to change the example
("To start fabio run") in documentation from

./fabio

to

./bin/fabio

I expected the binary being directly in work dir because of ./fabio.

from fabio.

magiconair avatar magiconair commented on August 16, 2024

The binary will only be in an unexpected folder if you set your GOPATH per project. Also, then go get will put the binary into $GOPATH/bin whereas the source lives in $GOPATH/src/github.com/eBay/fabio. I'm going to close this as wontfix since this is the documented behavior of Go apps.

from fabio.

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.