Environment VariablesΒΆ
Mason can be configured by setting the following environment variables:
MASON_HOME: Path to a directory where mason will store cached registry and package data. Defaults to$HOME/.mason.MASON_REGISTRY: A comma separated list ofname|locationpairs, wherenameis a local name for the registry atlocation. Defaults tomason-registry|https://github.com/chapel-lang/mason-registry. If thename|part of a pair is omitted it is inferred to be the word following the final slash inlocationwith any.gitsuffix removed.MASON_OFFLINE: A boolean value that prevents mason from making calls that require internet access when set totrue. Defaults tofalse. Mason commands that support a--[no-]updateflag can override theMASON_OFFLINEsetting when--updateis explicitly passed.
The mason env command will print the inferred or set values of these
environment variables. If a variable was set by the user, an asterisk will be
printed at the end of the line. For example, if $MASON_HOME was set:
> mason env
MASON_HOME: /path/to/something *
MASON_REGISTRY: mason-registry|https://github.com/chapel-lang/mason-registry
MASON_OFFLINE: false
Warning
If MASON_REGISTRY changes after invoking a mason command that updates the
local copy of the registry (e.g. mason update), the local copies of the
registry and dependency sources will be removed.