Comments (15)
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.
from rubygems-bundler.
No to both of those :(
$ env | grep BUNDLE_BIN
$ cat ~/.bundle/config
cat: ~/.bundle/config: No such file or directory
from rubygems-bundler.
It doesn't look like it's the traditional bundler-binstubs:
gem install sass
cat `which sass`
outputs https://gist.github.com/1150397
gem uninstall sass
echo -e "source 'http://rubygems.org'\ngem 'sass'" > Gemfile
bundle
cat `which sass`
outputs https://gist.github.com/1150403 - identical except for the shebang
gem uninstall sass
bundle --binstubs
cat bin/sass
outputs https://gist.github.com/1150405 - the bundler binstub
from rubygems-bundler.
and what is the output of
bundle config bin
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.
from rubygems-bundler.
so this is issue with rubygems, I will check with newest version, thanks
from rubygems-bundler.
Ah, alright. Thanks for looking into this!
Also:
$ gem -v
1.8.6
from rubygems-bundler.
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 gem regenerate_binstubs
after every bundle install
.
Other than that, I think the plugin is great. Thanks!
from rubygems-bundler.
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 gem regenerate_binstubs
as it will solve this problem.
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.
from rubygems-bundler.
OK, I dug deeper, and found that Rubygems only loads plugins when the gem
command is run (i.e. when rubygems/gem_runner
is loaded). Since neither Bundler nor RubyGems loads that file (except from the gem
binary), the rubygems-bundler hooks do not get loaded.
from rubygems-bundler.
Might be worth bringing this up with the bundler guys? They probably want to keep gem-based behavior the same
from rubygems-bundler.
I think Rubygems would be the right place to "fix" the problem of hooks only being called when invoked via the gem
command.
from rubygems-bundler.
I think it might be fixed with this change rubygems/bundler#1364 could someone confirm ?
from rubygems-bundler.
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.
from rubygems-bundler.
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/
from rubygems-bundler.
there was an update to bundler and to my fork - gem "mpapis-bundler", "~> 1.0.21.1"
- updated to reflect rubygems/bundler#1500 (comment) ... rubygems plugins allowed via Gemfile:
group :never do
gem "rubygems-bundler"
end
from rubygems-bundler.
Related Issues (20)
- Extract hooking up into executables as a separate gem HOT 2
- rubygems-bundler binstubs do not activate older versions of gems HOT 8
- cannot run gem from default environment inside directory with deployed gems HOT 1
- add a global variable to ignore executables HOT 1
- "Unresolved specs" warning with Ruby 2.0.0-p247 and rubygems 2.0.3 HOT 9
- Could not find 'rubygems-bundler' (>= 0) HOT 4
- License missing from gemspec HOT 4
- Unable to execute tmuxinator without "bundle exec" HOT 7
- Psych double loading problem with version > 1.1.0: psych.rb: warning: already initialized constant VERSION HOT 2
- rubygems-bundler-uninstaller fails weirdly HOT 3
- error when running rake db:drop HOT 1
- Breaking the spring gem HOT 6
- rubygems-bundler-uninstaller: command not found HOT 17
- NoMethodError - undefined `name' for #<Array> HOT 1
- Gem::use_gemdeps HOT 5
- Git repo not being loaded HOT 2
- /usr/bin/env: ‘ruby_executable_hooks’: No such file or directory on Heroku after removing this gem
- Broken with Ruby 2.7.0-preview2 HOT 1
- Error when use bundler v2.1.0 HOT 3
- Homepage returns a 404
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rubygems-bundler.