Skip to content
This repository has been archived by the owner on May 12, 2018. It is now read-only.

Environment Variables

Luis Rascão edited this page Mar 18, 2016 · 3 revisions

REBAR_TARGET_ARCH

REBAR_TARGET_ARCH_WORDSIZE

REBAR_TARGET_ARCH_VSN

REBAR_DEPS_PREFER_LIBS

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.

REBAR_VSN_CACHE_FILE

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.