-
Notifications
You must be signed in to change notification settings - Fork 719
Description
travis fails with
/Users/travis/.rvm/scripts/functions/support: line 57: shell_session_update: command not found
.travis.yml is here: https://github.com/nim-lang/Nim/blob/5492190bc63326069233a8aaf9f2e567cfc555f8/.travis.yml
example travis log here: https://travis-ci.org/nim-lang/Nim/jobs/367840604
this error is very common on the web, however I couldn't find an answer that works
-
adding
-
adding
rvm get headas suggested here https://superuser.com/questions/1044130/why-am-i-having-how-can-i-fix-this-error-shell-session-update-command-not-f results in other error:
Warning, RVM 1.26.0 introduces signed releases and automated check of signatures when GPG software found.
/Users/travis/.rvm/scripts/functions/cli: line 243: return: _ret: numeric argument required
The command "rvm get head" failed and exited with 255 during .
Your build has been stopped.
/Users/travis/.travis/job_stages: line 166: shell_session_update: command not found
(eg: https://travis-ci.org/nim-lang/Nim/jobs/367878319)
-
adding
rvm get head || trueas suggested here New Mac OS build error since the recent outage: "/Users/travis/build.sh: line 109: shell_session_update: command not found error" #6522 (comment) also fails with
/Users/travis/.rvm/scripts/functions/support: line 57: shell_session_update: command not found -
removing
set -efrom .travis.yml is not an option as I don't want to silently ignore errors, as also explained by others here New Mac OS build error since the recent outage: "/Users/travis/build.sh: line 109: shell_session_update: command not found error" #6522 (comment)
@BanzaiMan - that is intentional. I need to halt the build on errors in my scripts. I agree with you that without that set -e the build would continue past the shell_session_update error, but I can't let other errors happen silently so I need the set -e. I worked around this by doing Project-OSRM/node-osrm@cdb5b6c and now builds are working fine.
This error seems to affect pretty much every project that uses -e since at least 2015. How do we fix this?