diff options
author | Vasily Fedoseyev <[email protected]> | 2024-12-27 22:22:37 +0300 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-01-14 12:24:37 +0900 |
commit | c89bcbd58eb48e39ab7e7c47a2226e876c885b07 (patch) | |
tree | 26a1a094839db40d37ce2ee76fcdd47dc9eac939 /lib | |
parent | 7389ca87b3cc9800af5560aa9e7d05ad584ed0d5 (diff) |
[rubygems/rubygems] Do not fail on start when cannot find writable user directory on ruby 3.4
https://github.com/rubygems/rubygems/commit/027cdc750a
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12568
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/plugin/index.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/plugin/index.rb b/lib/bundler/plugin/index.rb index c2ab8f90da..0b1234bbf3 100644 --- a/lib/bundler/plugin/index.rb +++ b/lib/bundler/plugin/index.rb @@ -34,6 +34,10 @@ module Bundler rescue GenericSystemCallError # no need to fail when on a read-only FS, for example nil + rescue ArgumentError => e + # ruby 3.4 checks writability in Dir.tmpdir + raise unless e.message&.include?("could not find a temporary directory") + nil end load_index(local_index_file) if SharedHelpers.in_bundle? end |