-
Notifications
You must be signed in to change notification settings - Fork 99
Wrong ruby version used in rake tasks #118
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
Comments
+1 ! |
Have you tried removing the
That would help! Thanks |
I managed to fix this by doing 2 things:
Perhaps something should be added to the readme about upgrading. Thanks! |
This has happened a few times, I'll see if I can write some tests around it. |
This happen again with me when I use ruby 2.0.0 for my app, I got this:
|
We haven't worked on ruby v2 support, yet. I'll leave this issue open as a On Sun, Mar 17, 2013 at 1:07 AM, Trung Lê [email protected] wrote:
|
It looks to us like the Heroku Toolbelt has its own bundled Ruby 1.9.3. When our Gemfile specifies 2.0.0, we get the error. So it appears that something is locally running the Heroku Toolbelt ruby and loading the application Gemfile. When these rubies don't match in version, you get the error. Seems like there shouldn't ever be a situation where we want to load the local Gemfile using the local Heroku Toolbelt ruby instead of the usual locally installed ruby. |
We traced it to the system() call here: https://github.com/fastestforward/heroku_san/blob/master/lib/heroku_san/stage.rb#L153 It looks like when you call |
[sigh] That's kind of a fail if the toolbelt can't be scripted from inside another It's also a possible conflict with the rvm/bundler integration. I'll try to contact David Dollar at Heroku and see what he thinks we should On Thu, Apr 11, 2013 at 9:09 AM, nycvotes-dev [email protected]:
Ken Mayer | Global Village Idiot |
if you run heroku like this it will work it seems: system "env -i HOME=$HOME bash -c 'heroku --version'" |
I have a slightly different solution to the problem, which I list in issue #138. Instead of executing bash with a clear ENV I just unset the offending ENV variables and pass that along with the system call. |
This is definitely a less invasive method. I found I actually need to include TERM too or I get warnings. It probably makes sense to do it the way you are describing. |
|
I was experiencing this error and found this issue, but I was not able to solve the problem with the information here. Later I found a solution (work-around?). See http://stackoverflow.com/questions/19056267/error-using-heroku-san-gem-your-ruby-version-is-x-x-x-but-your-gemfile-specifi/19056268#19056268 |
Closed by #155 |
After upgrading from heroku_san 3.0.4 to 4.0.7, now running any of the heroku_san rake tasks gives this error:
Your Ruby version is 1.8.7, but your Gemfile specified 1.9.3 (Bundler::RubyVersionMismatch)
My Gemfile does specify ruby 1.9.3. I have RVM installed and I'm doing this is in a project configured to use ruby 1.9.3-p327. I'm on OS X 10.8.2. My guess is this is somehow related to the changes in the heroku_san gem to use the Heroku toolbelt instead of the deprecated Heroku gem. I'm guessing the Heroku toolbelt is using my system ruby even though I have RVM configured with ruby 1.9.3 as the default. Any ideas?
The text was updated successfully, but these errors were encountered: