Skip to content
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

rbenv directory not found when rbenv_path is not set #12

Open
ccastillop opened this issue Feb 21, 2021 · 3 comments
Open

rbenv directory not found when rbenv_path is not set #12

ccastillop opened this issue Feb 21, 2021 · 3 comments

Comments

@ccastillop
Copy link

I am not totally sure if this bug is related with this gem, but when rbenv_path is not set, the default is defined here (capistrano rbenv config):

But for some reason $HOME/.rbenv is escaped to \$HOME/.rbenv and therefore bash fails.

Caused by:
SSHKit::Runner::ExecuteError: Exception while executing as ccastillo@xxx: if test ! -d \$HOME/.rbenv/plugins/ruby-build; then echo "Directory does not exist '\$HOME/.rbenv/plugins/ruby-build'" 1>&2; false; fi exit status: 1
if test ! -d \$HOME/.rbenv/plugins/ruby-build; then echo "Directory does not exist '\$HOME/.rbenv/plugins/ruby-build'" 1>&2; false; fi stdout: Nothing written
if test ! -d \$HOME/.rbenv/plugins/ruby-build; then echo "Directory does not exist '\$HOME/.rbenv/plugins/ruby-build'" 1>&2; false; fi stderr: Directory does not exist '$HOME/.rbenv/plugins/ruby-build'

The workarround solutions is don't forget to set :rbenv_path, "~/.rbenv"

@lloydwatkin
Copy link

Workaround worked, thanks!

@sime
Copy link

sime commented Nov 23, 2021

@ccastillop Brilliant, thanks for sharing.

@digitalmoksha
Copy link

The workarround solutions is don't forget to set :rbenv_path, "~/.rbenv"

magic, thank you @ccastillop!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants