diff options
| author | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2019-06-27 15:02:20 +0200 |
|---|---|---|
| committer | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2019-06-27 15:02:20 +0200 |
| commit | c45cd8fd747e0185a9f8ec25bb22730a0328ad84 (patch) | |
| tree | 155dab2c95b324322b022b04f3e6007ac95263b4 /mk | |
| parent | b206b3e4b66d8a19d839fb9db7c216a0d3c36b26 (diff) | |
| download | rabbitmq-server-git-c45cd8fd747e0185a9f8ec25bb22730a0328ad84.tar.gz | |
rabbitmq-mix.mk: Set `$MIX_HOME` instead of `$HOME`
If I understand the code correctly, it should be enough to point mix(1)
to the packages we add to the source archive for offline build.
There should be no need to mess with `$HOME` or `$XDG_*_HOME`.
Diffstat (limited to 'mk')
| -rw-r--r-- | mk/rabbitmq-mix.mk | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mk/rabbitmq-mix.mk b/mk/rabbitmq-mix.mk index 24054e8123..ce2c10c203 100644 --- a/mk/rabbitmq-mix.mk +++ b/mk/rabbitmq-mix.mk @@ -5,6 +5,12 @@ HEX_OFFLINE = 1 -override HOME = $(DEPS_DIR) +# mix(1) centralizes its data in `$MIX_HOME`. When unset, it defaults +# to something under `$XDG_DATA_HOME`/`$XDG_CONFIG_HOME` or `$HOME` +# depending on the Elixir version. +# +# We store those data for offline build in `$(DEPS_DIR)`. -export HEX_OFFLINE HOME +override MIX_HOME = $(DEPS_DIR)/.mix + +export HEX_OFFLINE MIX_HOME |
