mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #17177 from Homebrew/bootsnap_raise_load_error
startup/bootsnap: raise repeated `LoadError`.
This commit is contained in:
commit
abd1b48e91
@ -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")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user