You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2024/09/17 14:59:27 UTC

(couchdb) branch main updated: Don't fail make clean if hex is not installed

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

vatamane pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/main by this push:
     new 5ef232ce2 Don't fail make clean if hex is not installed
5ef232ce2 is described below

commit 5ef232ce2e7bc4646efa64799d4138d9701bd37d
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Tue Sep 17 09:35:45 2024 -0400

    Don't fail make clean if hex is not installed
    
    `@mix clean --deps` apparently requires hex to be installed. If it's
    not there, it stops and prompts the user to install it. If configure
    hasn't run yet, as in the case when building our deb package from the
    dist tarball, package build fails.
    
    This was mitigated in couchdb-pkg by adding hex to
    `/home/jenkins/.mix` for CI images, but let's also handle it better in
    the Makefile.
    
    Makefile.win already has `|| true` added to it so no need to updated
    it.
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index e7b4e245e..c93cafab3 100644
--- a/Makefile
+++ b/Makefile
@@ -467,7 +467,7 @@ install: release
 # target: clean - Remove build artifacts
 clean:
 	@$(REBAR) -r clean
-	@mix clean --deps
+	@mix clean --deps || true
 	@rm -rf .rebar/
 	@rm -f bin/couchjs
 	@rm -f bin/weatherreport