Merge pull request #17177 from Homebrew/bootsnap_raise_load_error

startup/bootsnap: raise repeated `LoadError`.
This commit is contained in:
Mike McQuaid 2024-04-29 17:52:47 +01:00 committed by GitHub
commit abd1b48e91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,13 +14,13 @@ if homebrew_bootsnap_enabled
begin
require "bootsnap"
rescue LoadError
unless ENV["HOMEBREW_BOOTSNAP_RETRY"]
raise if ENV["HOMEBREW_BOOTSNAP_RETRY"]
Homebrew.install_bundler_gems!(groups: ["bootsnap"], only_warn_on_failure: true)
ENV["HOMEBREW_BOOTSNAP_RETRY"] = "1"
exec ENV.fetch("HOMEBREW_BREW_FILE"), *ARGV
end
end
ENV.delete("HOMEBREW_BOOTSNAP_RETRY")