Coder Social home page Coder Social logo

travis-lein-s390x's Introduction

travis-lein-s390x

Reproduce not able to install lein at a specified version on s390x

Email Trail

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:

https://github.com/jonathan-albrecht-ibm/travis-lein-s390x
https://app.travis-ci.com/github/jonathan-albrecht-ibm/travis-lein-s390x/builds/254202191

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
Advisory Software Developer
Linux on IBM Z Open Source Ecosystem
1 905 413 3577 Office
[email protected]

IBM

##- Please type your reply above this line -##
Hello, 
Thank you for reaching out to Travis-CI Support. This is an automated message to notify you that we have received your ticket (40106) and one of our support agent will get back to you to assist with this matter. In case you are seeing a bug and haven't shared this information already, please reply to this email by sharing the steps to reproduce along with expected and actual results and your system (environment) information to supplement the troubleshoot process. 
Thank you for your patience while one of the support agent gets in touch with you!
Cheers,
Your Friends @Travis-CI
This email is a service from Travis CI. Delivered by Zendesk 
Qasim (Travis CI) 
Oct 7, 2022, 12:47 GMT-3 
Hey Jonathan,
 
Thanks for the update. We are happy to hear that you were able to resolve the issue.
 
Let us know if we can be of further assistance in the future.
 
Best,
Jonathan Albrecht 
Oct 7, 2022, 12:03 GMT-3 
Hi Qasim, I can confirm this issue is fixed now. I am no longer blocked. Thanks for the fix!
Jon

travis-lein-s390x's People

Contributors

jonathan-albrecht-ibm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.