Hi, I’m trying to port a clojure project to s390x and I’m running into a bug when travis is updating lein to a newer version. I create a github repo and travis build to show the error:
The error looks like:
---
Updating leiningen to 2.9.1
$ sudo env LEIN_ROOT=true curl -L -o /usr/local/bin/lein https://raw.githubusercontent.com/technomancy/leiningen/2.9.1/bin/lein
######################################################################## 100.0%
$ lein self-install
/home/travis/.travis/functions: line 109: /usr/local/bin/lein: Permission denied
The command "lein self-install" failed and exited with 126 during .
I think its just a executable permissions problem and maybe something like the following would fix it:
---
diff --git a/lib/travis/build/script/clojure.rb b/lib/travis/build/script/clojure.rb
index df8e1d8d..b1f5c081 100644
--- a/lib/travis/build/script/clojure.rb
+++ b/lib/travis/build/script/clojure.rb
@@ -54,6 +54,7 @@ module Travis
sh.echo "Updating leiningen to #{version}", ansi: :yellow
sh.cmd "env LEIN_ROOT=true curl -L -o /usr/local/bin/lein https://raw.githubusercontent.com/technomancy/leiningen/#{version}/bin/lein", echo: true, assert: true, sudo: true
sh.cmd "rm -rf ${TRAVIS_HOME}/.lein", echo: false
+ sh.chmod "+x", "/usr/local/bin/lein", sudo: true
sh.cmd "lein self-install", echo: true, assert: true
end
end
---
Would be great if this could be fixed as I’m currently blocked on it.
Thanks,
Jonathan Albrecht