diff options
author | David RodrÃguez <[email protected]> | 2024-10-21 20:43:23 +0200 |
---|---|---|
committer | git <[email protected]> | 2024-10-23 11:16:53 +0000 |
commit | 438d36eb4be447e1f4d244ec3801c53b1a8fcb1f (patch) | |
tree | b9eb2f4cf52f3ea4b465ae470881a7bd15404653 /lib | |
parent | f2380081dfcdc820e55e257a7c370064c058ee98 (diff) |
[rubygems/rubygems] Print a proper error when there's a previous empty installation path with bad permissions
https://github.com/rubygems/rubygems/commit/07e7f0bf5e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/rubygems_gem_installer.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bundler/rubygems_gem_installer.rb b/lib/bundler/rubygems_gem_installer.rb index 65fdf16072..1af1b85ff0 100644 --- a/lib/bundler/rubygems_gem_installer.rb +++ b/lib/bundler/rubygems_gem_installer.rb @@ -23,7 +23,9 @@ module Bundler FileUtils.mkdir_p gem_dir, mode: 0o755 end - extract_files + SharedHelpers.filesystem_access(gem_dir, :write) do + extract_files + end build_extensions if spec.extensions.any? write_build_info_file |