-
Notifications
You must be signed in to change notification settings - Fork 295
Environment Variables
A boolean environment variable. When it is set, rebar looks for all dependencies in the system-wide lib directory. In some restricted build environments all dependencies are usually already pre-installed into a specific system-wide location, whereas internet access is prohibited which makes git clone useless.
When REBAR_VSN_CACHE_FILE is set, it should point to existing, readable and writable file where vsn cache is stored. vsn cache is a key-value storage where results of git describe --always --tags are stored. Rebar always uses in-memory vsn cache internally. REBAR_VSN_CACHE_FILE provides a way to make the cache persist between different rebar invocations which may reduce number of git invocations. Moreover, REBAR_VSN_CACHE_FILE can be used with externally prepared cache file when you have only a snapshot of git repository and .app.src file has {vsn, git} term, in this case git invocation on non-git directory tree will be avoided.