-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.8.0 breaks capistrano-rbenv due to "~" in environment variable values no longer being expanded #303
Comments
Your server doesn't have the Ruby ver specified installed, SSHKit is now
|
Thanks for the answer, probably it's the issue with my rbenv installation. This is the output if run
and this is the output if I run it with export
using the system ruby won't work for us because we have 2 Rails app running with 2 different ruby versions. |
SSHKit now picks up things defined in your shell (I think) so it's entirely possible that this login shell already has rbenv, and/or that the export/subshell change to env vars breaks something... I don't tend to run things like rbenv/rvm in production, so I can't many any reasonable suggestions. Unfortunately. |
There should be no difference in the end with/without |
same issue with just export, I have to use
that's fine, I'll just stick with 1.7.1 for now. thanks. |
Same issue here. downgrading to 1.7.1 solves this. |
if It strikes me that one potential problem is that |
@leehambley You nailed it. Replacing The introduction of the In any case, the workaround you suggested does work. |
Aha. The culprit is the introduction of double-quotes around environment variables, introduced in 9120312. Without quotes, |
Ah, nice work @mattbrictson :) as always, you seem to be the master of debugging! … any thoughts on a fix, I can see the case for both, actually, and I'm hesitant to make it configurable - perhaps this is a problem of the |
@leehambley For capistrano-rbenv (and other plugins/tasks affected by this), do you think replacing |
Nice, I think that's sane, I suppose it makes sense too, which is
|
@rudylee I renamed the title of this issue to better summarize the problem. I hope that's OK! |
I've opened a PR for capistrano-rbenv to use |
@mattbrictson that's fine, thanks for the help by the way. |
This has been fixed in capistrano-rbenv 2.0.4. |
👍 |
I am using
capistrano-rbenv
in my project for deploymentI just ran a
bundle update
which updates the sshkit version to 1.8.0 and my capistrano deployment starts to break.Here is the full output of my failed deployment: https://gist.github.com/rudylee/5f560d70e6a2fe9eaad0 ( see line 238 )
I think the problem is related to this commit de492dd ( previous version doesn't have export in front of the command )
In the meantime, I can fix it my specifying the sshkit version in my Gemfile to 1.7.1
The text was updated successfully, but these errors were encountered: