diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-05-29 13:51:13 +0200 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-05-29 22:19:35 +0900 |
commit | 373dabe00a71214e12702ff1ccda88f865b504c4 (patch) | |
tree | 64b35011b1fba5fda87338eca9d6e05cde83013c /lib/bundler/process_lock.rb | |
parent | 931b013b9fa51f93db5b846882e988c7a8e3582f (diff) |
[rubygems/rubygems] Ignore `Errno::EPERM` errors when creating `bundler.lock`
This kind of error can happen when setting `GEM_HOME` to a path
under MacOS System Integrity Protection.
We ignore the error. Any permission issues should be better handled
further down the line.
https://github.com/rubygems/rubygems/commit/174cb66863
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 a5cc614e20..af7cd8a05f 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 + rescue Errno::EACCES, Errno::ENOLCK, Errno::ENOTSUP, Errno::EPERM # 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. |