core: generate bogus gemfile so that a random lockfile isn't loaded

This commit is contained in:
Mitchell Hashimoto 2014-01-06 10:43:20 -08:00
parent 86cab61c27
commit 5197d3d86f
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ module Vagrant
# native extensions because it causes all sorts of problems. # native extensions because it causes all sorts of problems.
old_rubyopt = ENV["RUBYOPT"] old_rubyopt = ENV["RUBYOPT"]
old_gemfile = ENV["BUNDLE_GEMFILE"] old_gemfile = ENV["BUNDLE_GEMFILE"]
ENV["BUNDLE_GEMFILE"] = nil ENV["BUNDLE_GEMFILE"] = Tempfile.new("vagrant-gemfile").path
ENV["RUBYOPT"] = (ENV["RUBYOPT"] || "").gsub(/-rbundler\/setup\s*/, "") ENV["RUBYOPT"] = (ENV["RUBYOPT"] || "").gsub(/-rbundler\/setup\s*/, "")
# Set the GEM_HOME so gems are installed only to our local gem dir # Set the GEM_HOME so gems are installed only to our local gem dir