[erlang-questions] Turning rebar into a package manager

Thomas Allen thomas@REDACTED
Fri Oct 19 14:00:29 CEST 2012


On Fri, October 19, 2012 6:36 am, Joe Armstrong wrote:
> Tweak 1
> =======
>
>    > rebar get-deps
>
> Fetches the dependencies in rebar.conf and stores them in
> the current directory, in a directory called deps.
>
> After a while you get dependencies scattered all over the place,
> I've seen many examples of this.
>
> This means that there is no central place to go and look if you
> want to find code.
>
> NPM sticks ALL dependencies under ${HOME}/.npm
>
> Suggestion:
>
>    All dependencies should be stored in ${HOME}/.erl_packages

To be clear, `npm' only will install packages in $HOME/node_modules if no
`package.json' file is found in $PWD. Otherwise, packages are installed at
$PWD/node_modules, much like `rebar's behavior when a `rebar.config' is
present.

Thomas Allen




More information about the erlang-questions mailing list