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`.
This commit is contained in:
Jean-Sébastien Pédron 2019-06-27 15:02:20 +02:00
parent b206b3e4b6
commit c45cd8fd74
No known key found for this signature in database
GPG Key ID: 39E99761A5FD94CC
1 changed files with 8 additions and 2 deletions

View File

@ -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