Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Create the GEM_HOME directory before setting it
Browse files Browse the repository at this point in the history
When Bundler sets GEM_HOME before creating the path in question, JRuby's monkeypatch to Gem.set_paths ignores the directory because it doesn't exist.

There is a JRuby bug (and patch) at http://jira.codehaus.org/browse/JRUBY-5104, but it won't be included in JRuby until 1.5.4 at the earliest.

Closes #602, #734
  • Loading branch information
Tony Arcieri authored and indirect committed Oct 2, 2010
1 parent 480f039 commit 1c05f01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/bundler.rb
Expand Up @@ -253,6 +253,7 @@ def configure_gem_home_and_path
ENV["GEM_HOME"] = bundle_path.to_s
end

FileUtils.mkdir_p bundle_path.to_s
Gem.clear_paths
end

Expand Down

0 comments on commit 1c05f01

Please sign in to comment.