Add link to issue with context

This commit is contained in:
Carlo Cabrera 2024-09-17 01:03:34 +08:00 committed by GitHub
parent bb20b3c720
commit 70ab4932d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,6 +21,7 @@ module OS
@brewed_ld_so_diagnostics[brewed_ld_so_target].to_s
rescue TypeError
# Workaround for intermittent `Error: no implicit conversion of false into String`
# https://github.com/Homebrew/brew/issues/17828
unless @retried_brewed_ld_so_diagnostics&.fetch(brewed_ld_so_target, false)
@retried_brewed_ld_so_diagnostics ||= T.let({}, T.nilable(T::Hash[Pathname, T::Boolean]))
@retried_brewed_ld_so_diagnostics[brewed_ld_so_target] = true