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:
parent
b206b3e4b6
commit
c45cd8fd74
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue