Skip to content

Commit

Permalink
Merge pull request #17177 from Homebrew/bootsnap_raise_load_error
Browse files Browse the repository at this point in the history
startup/bootsnap: raise repeated `LoadError`.
  • Loading branch information
MikeMcQuaid committed Apr 29, 2024
2 parents c076a46 + 279f42a commit abd1b48
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Library/Homebrew/startup/bootsnap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
begin
require "bootsnap"
rescue LoadError
unless ENV["HOMEBREW_BOOTSNAP_RETRY"]
Homebrew.install_bundler_gems!(groups: ["bootsnap"], only_warn_on_failure: true)
raise if ENV["HOMEBREW_BOOTSNAP_RETRY"]

ENV["HOMEBREW_BOOTSNAP_RETRY"] = "1"
exec ENV.fetch("HOMEBREW_BREW_FILE"), *ARGV
end
Homebrew.install_bundler_gems!(groups: ["bootsnap"], only_warn_on_failure: true)

ENV["HOMEBREW_BOOTSNAP_RETRY"] = "1"
exec ENV.fetch("HOMEBREW_BREW_FILE"), *ARGV
end

ENV.delete("HOMEBREW_BOOTSNAP_RETRY")
Expand Down

0 comments on commit abd1b48

Please sign in to comment.