You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use this plugin in an environment where rbenv is installed into /usr/local. Unfortunately since normal users do not have write permissions to $RBENV_ROOT/bundles, I get this error:
$ bundle
/usr/local/rbenv/plugins/rbenv-binstubs/etc/rbenv.d/exec/rbenv-binstubs.bash: line 16: /usr/local/rbenv/bundles.new.15: Permission denied
I think it would be simplest to introduce an option that disables this optimization. Maybe an environment variable. Or maybe use the $HOME/.rbenv-bundles or a path which we are fairly certain to have write-permissions to.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi.
I am trying to use this plugin in an environment where rbenv is installed into
/usr/local
. Unfortunately since normal users do not have write permissions to$RBENV_ROOT/bundles
, I get this error:I first tried
chmod 666 /usr/local/rbenv/bundles
, but since the code writes a new temporary file before it moves it to that location, it doesn't work. https://github.com/ianheggie/rbenv-binstubs/blob/master/etc/rbenv.d/exec/rbenv-binstubs.bash#L15I think it would be simplest to introduce an option that disables this optimization. Maybe an environment variable. Or maybe use the
$HOME/.rbenv-bundles
or a path which we are fairly certain to have write-permissions to.Thanks!
The text was updated successfully, but these errors were encountered: