gruntwork-io / fetch

Download files, folders, and release assets from a specific git commit, branch, or tag of public and private GitHub repos.
https://www.gruntwork.io/
MIT License
589 stars 90 forks source link

How do you compile from source? #27

Open uberhacker opened 7 years ago

uberhacker commented 7 years ago

My operating system doesn't match any of the available binary releases. How do I compile from source using go build?

brikis98 commented 7 years ago

We use gox with the following command:

gox -os "<OS>" -arch "<ARCH>" -output "fetch" -ldflags "-X main.VERSION=<VERSION>"

For example:

gox -os "linux" -arch "amd64" -output "fetch" -ldflags "-X main.VERSION=v0.1.1"

What OS are you on?

uberhacker commented 7 years ago

Thanks @brikis98! I'm using a Chromebook with armv7l architecture.

vincent-legoll commented 5 years ago

What about documenting that in README.md ?

brikis98 commented 5 years ago

+1. PR welcome to add it to the docs 👍