-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
When installing gems via bundler, they have an incorrect shebang #3
Comments
most likely you have a setting BUNDLE_BIN in ~/.bundle/config or in you environment. using rubygems-bundler does not affect binaries generated by bundler. You should turn of that BUNDLE_BIN variable as bundler provided binaries are no longer required for proper working when using rubygems-bundler gem. |
No to both of those :(
|
It doesn't look like it's the traditional bundler-binstubs:
outputs https://gist.github.com/1150397
outputs https://gist.github.com/1150403 - identical except for the shebang
outputs https://gist.github.com/1150405 - the bundler binstub |
and what is the output of
bundle should generate wrappers only when the bin is set. if it is generating binaries in other cases it might mean there is a bug ... for interactive help you can join me on #rubygems-bundler IRC channel on freenode. |
so this is issue with rubygems, I will check with newest version, thanks |
Ah, alright. Thanks for looking into this! Also:
|
I'm having the same problem, with a similar setup. Only difference is that I'm running RubyGems 1.8.8 and RVM. I haven't been able to track down where the problem is in the code, but I suspect that it's in the way Bundler does the gem install -- via a Ruby call instead of the command line. As a work-around, I've been running Other than that, I think the plugin is great. Thanks! |
After checking it looks like bundler does not run rubygems plugins, I'm not sure if that is a bug or feature ... rubygems-bundler uses shebang customization backported from rubygems 1.9, and in 1.9 backporting via rubygems plugin will be not needed - so then it should be working. For now please use One of main goals of rubygems-bundler is backporting so I will investigate this issue in free time to provide solution to make your life easier. |
OK, I dug deeper, and found that Rubygems only loads plugins when the |
Might be worth bringing this up with the bundler guys? They probably want to keep gem-based behavior the same |
I think Rubygems would be the right place to "fix" the problem of hooks only being called when invoked via the |
I think it might be fixed with this change rubygems/bundler#1364 could someone confirm ? |
I have tried the above with bundler 1.0.21 (manually applied the changes over installed gem) and it worked fine, I could not get bundler 1.1pre working - but as soon it will be functional this will work as expected. |
just to make things easier I have released today mpapis-bundler 1.0.21 with support for rubygems plugins and depending on rubygems-bundler, the future is now - details http://niczsoft.com/2011/10/no-more-bundle-exec/ |
there was an update to bundler and to my fork -
|
My environment:
From a clean install w/o gems in the current rvm gemset:
The text was updated successfully, but these errors were encountered: