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

Binary downloads #31

Closed
calebmer opened this issue Feb 19, 2016 · 8 comments
Closed

Binary downloads #31

calebmer opened this issue Feb 19, 2016 · 8 comments

Comments

@calebmer
Copy link

One of this repository's proposed benefits as written in the readme: "Reflex has no dependencies. No need to install Ruby or anything like that." Yet the instillation reads:

$ go get github.com/cespare/reflex

I don't want to install go to use this library. Could this dependency be removed with binary downloads?

@cespare
Copy link
Owner

cespare commented Feb 19, 2016

The README also says

TODO: provide compiled downloads for linux/darwin amd64.

But I've never gotten around to it, mostly because I have no need for this. Do you have a suggested method? I've considered using Bintray.

@calebmer
Copy link
Author

GitHub releases are preferable as that's where I generally check first.

@cespare
Copy link
Owner

cespare commented Feb 20, 2016

Ah, I forgot that GH releases can included binaries. Good idea.

@cescoferraro
Copy link

@calebmer just uploaded some to my fork. compiled them with gox.
https://github.com/cescoferraro/reflex/releases/tag/v0.1.0

@cespare go get its not cacheble inside a Dockerfile there is a actual need for them on this repo

@sagikazarmark
Copy link

I would consider using https://github.com/goreleaser/goreleaser

It's quite awesome and integrates nicely into the CI workflow.

@issmirnov
Copy link

Here's a sample goreleaser config that would work well for this repo:

build:
  main: .
  binary: reflex
  goos:
    - darwin
    - linux
archive:
  replacements:
    amd64: 64-bit
    386: 32-bit
    darwin: MacOS
    linux: Linux
  files:
    - README.md
    - LICENSE

You can install goreleaser on your system with brew install goreleaser/tap/goreleaser or a manual download from https://github.com/goreleaser/goreleaser/releases.

Once you do that, you can run the following workflow:

export GITHUB_TOKEN=`YOUR_TOKEN` # Get this at https://github.com/settings/tokens
git tag -a v1.2.3 -m "your release message"
git push origin --tags
goreleaser

There is also Travis Integration.


This would be very much appreciated by many users who don't have the full go toolkit installed. I'm sure @sagikazarmark would be happy to answer any questions, as am I.

@jwilner
Copy link

jwilner commented Nov 25, 2020

I've opened a PR #80 that should totally address the concerns of this issue.

@cespare
Copy link
Owner

cespare commented Aug 31, 2021

OK, releases have binaries attached to them now.

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

Successfully merging a pull request may close this issue.

6 participants