this is how I used to start my Erlang project Makefiles:
REBAR ?= ./rebar
REBAR_URL ?= https://github.com/downloads/basho/rebar/rebar
./rebar:
erl -noshell -s inets start -s ssl start \
-eval 'httpc:request(get, {"$(REBAR_URL)", []}, [], [{stream,
"./rebar"}])' \
-s inets stop -s init stop
chmod +x ./rebar
It worked fine and such, but for a new project I need a newer rebar.
Would it be possible to have a more recent pre-built "official" rebar
in an "official" repository?
Suggestion: create a rebar binary for every tag. Compile it on a
lowest supported platform (R13B04?), and put the resulting binaries
like this:
https://github.com/downloads/rebar/rebar/rebar-2.0.0
https://github.com/downloads/rebar/rebar/rebar-2.1.0-pre
--
Motiejus Jakštys
_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
Github just announced that they removed support for file upload though.
https://github.com/blog/1302-goodbye-uploads
--
Loïc Hoguin
Erlang Cowboy
Nine Nines
http://ninenines.eu
Oh what a bad news, pity. However, if community and basho guys agree
with the concept, maybe it could be hosted somewhere in basho?
Or still is it still seen as the best practice to bundle rebar in the
repository or trust the user to have one and it's just me against
having binary stuff in the repository?
--
Motiejus Jakštys
Dizzy usually puts a new binary per release in the wiki by
calling 'make binary':
REBAR_URL ?= https://raw.github.com/wiki/rebar/rebar/rebar
> ./rebar:
> erl -noshell -s inets start -s ssl start \
> -eval 'httpc:request(get, {"$(REBAR_URL)", []}, [], [{stream,
> "./rebar"}])' \
> -s inets stop -s init stop
> chmod +x ./rebar
>
> It worked fine and such, but for a new project I need a newer rebar.
> Would it be possible to have a more recent pre-built "official" rebar
> in an "official" repository?
>
> Suggestion: create a rebar binary for every tag. Compile it on a
> lowest supported platform (R13B04?), and put the resulting binaries
> like this:
> https://github.com/downloads/rebar/rebar/rebar-2.0.0
> https://github.com/downloads/rebar/rebar/rebar-2.1.0-pre
This is better. But how does the file get there? I cannot find how to
add a file to the github wiki.
Any thoughts about binary versioning ("my project works with rebar
2.0, don't know about rebar 2.1").
--
Motiejus Jakštys
Oh, didn't realize that. Thanks. So we have a way, now need (?) to
agree on the rules. Any more people believe it is necessary?
--
Motiejus Jakštys