-
-
Notifications
You must be signed in to change notification settings - Fork 249
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-init no longer works in latest rbenv. #25
Comments
How does it not work? Calling I just tested it out a little bit more and it works for me. I'm always using edge rbenv, so I would spot the breakage myself if there is some. |
More info here: rbenv/rbenv#293 (comment) The Chef recipe should always use unhyphenated commands, e.g. |
I can reproduce the issue here. I'm not fully sure on why it happens.
The full stacktrace is at https://gist.github.com/4277134 |
It might be caused by the initial run not being on top of an rbenv ruby but the system ruby... |
Fixed in #26. |
#26 fixes it for me as well. Would it be possible for chef-rbenv to not always depend on the latest rbenv to help prevent these breakages in the future? To be clear I'm talking about the attributes file: |
@axelson You're right about that: everyone should be pinning the version of rbenv they want installed. Maybe the default value of In my mind we could go two other ways:
Thoughts? |
My vote is number 2 so that chef-rbenv will work by default (important so that it can easily be used in things like rails-last-mile). |
My vote is leaving it on master and making it clear to users that they should pin the version. I think it's better to install the latest and deal with possible instability than install an old version that will be pinned at an arbitrary version (0.3.0 doesn't work for me for some reason.) |
Hi, maintainer of rbenv here. My suggestion is to pin it to the latest git version that you've confirmed this recipe to work, i.e. the current HEAD sha, but leave an option to users to pick their own sha/tag/branch to install. Most users won't pick their own, so they should get a version which is known to work well with the recipe. But don't set to v0.3.0 which has some bugs that we fixed in master recently. |
@mislav Thanks for chiming in! If I understand correctly, you're suggesting leaving the ref at I'm working on some continuous cookbook integration testing that may catch issues like this in the future. It's a slow grind, but getting there. |
As I believe we have the original issue fixed in #26, I'm going to close this ticket out. Please don't take that as a sign I want to stop talking about |
@meineerde Yep. /cc @fnichol |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
With issue rbenv/rbenv#254, the
rbenv-init
script now callsrbenv-commands
directly rather thanrbenv commands
.As such, the recipe should really call
rbenv init -
to make sure the correct path setup happens.The text was updated successfully, but these errors were encountered: