diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-05-29 15:30:44 +0200 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-05-30 00:27:43 +0900 |
commit | 08b82e6b40b1dbbff20ba609d7d5eb8106a2d346 (patch) | |
tree | 2262f6b7a2f3515f2caa2e7bd46b765de4553f64 /lib/bundler/process_lock.rb | |
parent | 373dabe00a71214e12702ff1ccda88f865b504c4 (diff) |
[rubygems/rubygems] Ignore `Errno::EROFS` errors when creating `bundler.lock`
Apparently old versions of MacOS would set `GEM_HOME` to a `/System`
folder, and trying to create a file there raises `Errno::EROFS`.
We ignore the error. Any permission issues should be better handled
further down the line.
https://github.com/rubygems/rubygems/commit/ef90c071d0
Diffstat (limited to 'lib/bundler/process_lock.rb')
-rw-r--r-- | lib/bundler/process_lock.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/process_lock.rb b/lib/bundler/process_lock.rb index af7cd8a05f..0297f80e2c 100644 --- a/lib/bundler/process_lock.rb +++ b/lib/bundler/process_lock.rb @@ -12,7 +12,7 @@ module Bundler yield f.flock(File::LOCK_UN) end - rescue Errno::EACCES, Errno::ENOLCK, Errno::ENOTSUP, Errno::EPERM + rescue Errno::EACCES, Errno::ENOLCK, Errno::ENOTSUP, Errno::EPERM, Errno::EROFS # In the case the user does not have access to # create the lock file or is using NFS where # locks are not available we skip locking. |