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

Requires write permissions to $RBENV_ROOT #21

Open
stefansundin opened this issue Jul 18, 2015 · 2 comments
Open

Requires write permissions to $RBENV_ROOT #21

stefansundin opened this issue Jul 18, 2015 · 2 comments

Comments

@stefansundin
Copy link

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:

$ 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 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#L15

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!

@chino
Copy link

chino commented Oct 20, 2015

+1... being affected as well

@ianheggie
Copy link
Collaborator

It is not a use case I have thought about.

Either of you want to write up tests and some code to solve the problem? I no longer use rbenv myself.

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

No branches or pull requests

3 participants