-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
gem commands don't work at all with rvm 1.8.6 #487
Comments
It's trivial to notice that your ERROR line is using ruby 1.9.2, can you confirm that you have Can you gist the whole session? |
Sorry but you lost me there, why would I need to have 1.8 installed? |
Ah yeah now I gotcha! I meant rvm v1.8.6, not ruby :) |
Sorry- epic brainfart. I saw 1.8 in the title and thought ruby. Ignore me. |
I can confirm the bug, I couldn't use the gem command I had to workaround it with the exec command |
Wait, are you calling My understanding was either I just fetched head and it seems to work fine. EDIT: |
I don't know about @ilkka but I was following https://rvm.beginrescueend.com/set/gem/ |
It's documented in "rvm help". The problem goes further than this, causing e.g. "rvm gemset update" to fail. |
@deryldoucette yes, it is:
Also, it has worked before. That's the way I have always installed gems into the global gemset:
Please reopen. (edit: fixed thinko in last command) |
I'm not reopening because that is the incorrect way to install the gems. As the two of us have explained, that is not the correct way to install gems. I and ricoH gave you the right commands please use them. thank you. |
Okay then. I opened #488 to fix the documentation problem. |
Oh yeah, for example |
when did this change? There will be plenty of Chef rvm recipes that do not use 'exec gem'. Its not just about fixing docs or getting people to change what they type in, rvm is now firmly entrenched in the build automation ecosystem. |
Even firmly entrenched, its always been that you |
The docs have been modified and @mpapis is in the process of changing the 'exec' functionality to be 'do'. Waiting for the push from mpapis and the site deployment retriggering by wayne. This was always in the pipeline that 'exec' would be changed to 'do' to more accurately reflect ruby syntax. This issue just brought it to a head and caused the reimplementation to take place finally. NOTE: To explicitly state it. The only new behaviour is that, now, anywhere you were using 'exec' you now use 'do'. That is the only behaviour change. A commit somewhere between b6abda8 and 87b0ad0 broke 'exec'. We took the opportunity of fixing 'exec' to just implement the 'do' change-over. Added the contents of this reply to 488 as they are inter-related and nearly identical issues. |
I see that "rvm 1.9.2@global do gem install " now works, just as "rvm 1.9.2@global exec gem install " worked before, but that you removed the possibility for implicit exec, like my original command line used. For what it's worth, I'm not sure if breaking the (previously documented) interface is a good idea. It's probably going to break many scripts like @guyboertje said. Of course you're free to do that, but maybe you could bump the major version number to signal this incompatible change? |
Just updated to latest rvm and now all gem commands fail. This is the output:
The same thing happens with all gem-related commands. I've even rvm implode'd and reinstalled to no avail.
Here's the full output with --debug and --trace: https://gist.github.com/1274940
The text was updated successfully, but these errors were encountered: