Skip to content

Commit caf703b

Browse files
committed
Install Hex
Otherwise, `make clean` fails on dist tarballs, because we haven't run configure yet, which means we haven't install hex yet.
1 parent 50564be commit caf703b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bin/install-elixir.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,12 @@ unzip -qq elixir.zip -d /usr/local \
6363
|| { echo "===> Cannot unpack elixir.zip"; exit 1; }
6464

6565
rm elixir.zip
66+
67+
68+
# Install hex otherwise some Makefile operations like "@mix clean" won't work.
69+
# They expect ./configure to have run and installed hex, but sometimes
70+
# it may be called without a preceding configure call, for instance when
71+
# building packages from a dist tarball. So we ensure it has hex there already.
72+
echo "===> Installing Hex"
73+
MIX_HOME=/home/jenkins/.mix /usr/local/bin/mix local.hex --force
74+
chown -R jenkins:jenkins /home/jenkins

0 commit comments

Comments
 (0)