Skip to content

Commit

Permalink
Merge pull request #3280 from dependabot/feelepxyz/fix-gem-home
Browse files Browse the repository at this point in the history
Bundler: Fix permission error when vendoring gems
  • Loading branch information
feelepxyz committed Mar 16, 2021
2 parents 564ca68 + ac017df commit b16676e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bundler/lib/dependabot/bundler/native_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ def self.run_bundler_subprocess(function:, args:, bundler_version:)
# Bundler will pick the matching installed major version
"BUNDLER_VERSION" => bundler_version,
"BUNDLE_GEMFILE" => File.join(versioned_helper_path(bundler_version: bundler_version), "Gemfile"),
"BUNDLE_PATH" => File.join(versioned_helper_path(bundler_version: bundler_version), ".bundle")
"BUNDLE_PATH" => File.join(versioned_helper_path(bundler_version: bundler_version), ".bundle"),
# Prevent the GEM_HOME from being set to a folder owned by root
"GEM_HOME" => File.join(versioned_helper_path(bundler_version: bundler_version), ".bundle")
}
)
end
Expand Down

0 comments on commit b16676e

Please sign in to comment.