fetch icon indicating copy to clipboard operation
fetch copied to clipboard

How do you compile from source?

Open uberhacker opened this issue 8 years ago • 4 comments

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

uberhacker avatar Jul 30 '17 23:07 uberhacker

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?

brikis98 avatar Jul 30 '17 23:07 brikis98

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

uberhacker avatar Jul 30 '17 23:07 uberhacker

What about documenting that in README.md ?

vincent-legoll avatar Sep 24 '18 11:09 vincent-legoll

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

brikis98 avatar Sep 24 '18 13:09 brikis98