Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you compile from source? #27

Open
uberhacker opened this issue Jul 30, 2017 · 4 comments
Open

How do you compile from source? #27

uberhacker opened this issue Jul 30, 2017 · 4 comments
Labels

Comments

@uberhacker
Copy link

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

@brikis98
Copy link
Member

brikis98 commented Jul 30, 2017

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
Copy link
Author

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

@vincent-legoll
Copy link

What about documenting that in README.md ?

@brikis98
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants