Created
June 5, 2012 18:53
-
-
Save scottmuc/2876931 to your computer and use it in GitHub Desktop.
Why is -rbundle/setup here?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rakefile is: | |
task :test do | |
sh "env > test.env" | |
end | |
my local env doesn't have RUBYOPT set, but when I run `rake test` I see the following: | |
RUBYOPT=-I/Users/ThoughtWorks/.rvm/gems/ruby-1.9.2-p320@global/gems/bundler-1.1.4/lib -rbundler/setup | |
I don't want -rbundler/setup |
YES! That makes sense. I guess that's now part of the global gemset by default now?
yes it is, it is meant to automatically use bundle exec
for you, in case you do not want it to load bundler just use NOEXEC=0
Awesome! That totally solved our issue. Our precommit Rakefile is full of 'sh "bundle exec ..."' and this behaviour was causing us issues. Good to know that this all makes sense now. Was really confused there for a bit :-). Thank you for your extremely quick response!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it's because you have gem
rubygems-bundler
it automatically loads bundler ifGemfile
is available, useNOEXEC=0 rake
to avoid automatic loading