compiling deps separately
watson.timothy at gmail.com
Sat Oct 15 15:57:09 EDT 2011
On 15 October 2011 16:05, Russell Brown <russell.brown at mac.com> wrote:
> On 15 Oct 2011, at 16:01, Joel Reymont wrote:
> > On Oct 15, 2011, at 3:59 PM, Russell Brown wrote:
> >> ./rebar compile skip_deps=true
> > What about compiling -just- reps?
> Just deps? I don't think so…happy to be corrected, though…
With the current (default) rebar it's not possible, but there is a pull
(here: https://github.com/basho/rebar/pull/73) that sorta adds this feature.
The branch (of my rebar fork) is at
https://github.com/hyperthunk/rebar/tree/safe-create and it basically
excludes deps from all commands unless you suffix the command with "-deps".
So you install by doing:
rebar get-deps compile-deps
Then everything else you do ignores the deps. I have no idea if this will
ever make it into rebar proper, but I'm guessing probably not as it's a bit
of a contentious thing and there may be better and more general fixes to the
issues it is trying to address. I've been using it for ages in my own
forks/branches and it works a treat though, if it's what you want.
I might try making the functionality into a redistributable plugin instead,
as this would provide the "feature" as an optional thing, rather than
forcing the rebar maintainers to choose whether they agree with it or not.
That will have to wait on some plugin-support features getting added to
rebar too, so we'll see. For now, there is a prototype at
https://github.com/hyperthunk/rebar_skip_deps, that took only 10 mins to put
together. The patch to rebar_core to make it work in practise I'll try and
do later this weekend.
As always with anything plugins related, caveats caveats, unsupported,
patches might not get accepted, etc etc. :)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rebar