I’m writing some Erlang scripts/snippets, and they require some extra dependencies.
If this were Elixir, I’d stick Mix.install([blah]) at the top of my script and be done. But this is Erlang.
What are people doing to deal with this in Erlang scripts? Is there some way I can use rebar3 to install my deps somewhere and then point the ERL_LIBS environment variable at that place? That’d be enough for my immediate use case.
For the moment, I’m putting the extra dependencies in another rebar profile, and then using rebar3 as examples do auto (for the snippets).
It’ll do for now, but it’s kinda inflexible, though.
Kinda hoping for a rebar3 install, like mix archive.install (except maybe without the archive bit). Probably also needs a rebar3 install –prefix or similar.