This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch install-hex
in repository https://gitbox.apache.org/repos/asf/couchdb-ci.git

commit 9dca49488168f1ea1cefa6f43ca142097085a38f
Author: Nick Vatamaniuc <vatam...@apache.org>
AuthorDate: Tue Sep 17 04:09:19 2024 -0400

    Install Hex
    
    Otherwise, `make clean` fails on dist tarballs, because we haven't run
    configure yet, which means we haven't install hex yet.
---
 bin/install-elixir.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/bin/install-elixir.sh b/bin/install-elixir.sh
index 1c5bcb8..0ed9fa9 100755
--- a/bin/install-elixir.sh
+++ b/bin/install-elixir.sh
@@ -63,3 +63,12 @@ unzip -qq elixir.zip -d /usr/local \
     ||  { echo "===> Cannot unpack elixir.zip"; exit 1; }
 
 rm elixir.zip
+
+
+# Install hex otherwise some Makefile operations like "@mix clean" won't work.
+# They expect ./configure to have run and installed hex, but sometimes
+# it may be called without a preceding configure call, for instance when
+# building packages from a dist tarball. So we ensure it has hex there already.
+echo "===> Installing Hex"
+MIX_HOME=/home/jenkins/.mix /usr/local/bin/mix local.hex --force
+chown -R jenkins:jenkins /home/jenkins

Reply via email to