-
Notifications
You must be signed in to change notification settings - Fork 296
Introduce REBAR_DEPS_PREFER_LIBS env variable to alter search behaviour #589
Conversation
+1, could you please append your name to the |
ca4372d
to
a093b96
Compare
REBAR_DEPS_PREFER_LIBS
|
We should explain REBAR_DEPS_FORCE_LIB in the rebar_deps help string (rebar_deps:info). |
A short explanation can be something like this: "If REBAR_DEPS_FORCE_LIB is set, consider only deps found in the code path and skip fetching." |
Thinking about it, would it be clearer to rename REBAR_DEPS_FORCE_LIB to REBAR_DEPS_FORCE_SYS, REBAR_DEPS_IGNORE_LOCAL or something similar. It's unclear to me what FORCE_LIB means. |
I think |
How about PREFER_LIB or PREFER_SYS? |
Maybe |
Works for me. @lrascao? |
Sure, looks good. |
When REBAR_DEPS_PREFER_LIBS is set, dependencies with defined sources are allowed to be searched for in system lib directory. Under specific circumstances (i.e. in build environments without networking) it is impossible to fetch deps locally. So, user needs a way to ask rebar to search in system lib directory as well. Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
a093b96
to
7807105
Compare
Any news? I don't remember whether you have email notifications when I rebase the request. |
Sorry, got busy with stuff, will merge today |
Introduce REBAR_DEPS_PREFER_LIBS env variable to alter search behaviour
See PR rebar/rebar#589 Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
When REBAR_DEPS_PREFER_LIBS is set, dependencies with defined sources
are allowed to be searched for in system lib directory.
Under specific circumstances (i.e. in build environments without networking)
it is impossible to fetch deps locally. So, user needs a way to ask rebar to
search in system lib directory as well.
Signed-off-by: Matwey V. Kornilov matwey.kornilov@gmail.com