Skip to content

Commit

Permalink
Merge pull request #179 from Homebrew/fix-missing-method
Browse files Browse the repository at this point in the history
Resolve NoMethodError on brew install
  • Loading branch information
MikeMcQuaid authored Oct 1, 2023
2 parents 636d819 + 3eee242 commit a9a8bc9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Abstract/portable-formula.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ def portable_configure_args
def install
if OS.mac?
if OS::Mac.version > TARGET_MACOS
target_macos_humanized = TARGET_MACOS.to_s.tr("_", " ").split.map(&:capitalize).join(" ")

opoo <<~EOS
You are building portable formula on #{OS::Mac.version}.
As result, formula won't be able to work on older macOS versions.
It's recommended to build this formula on macOS #{TARGET_MACOS.to_s.humanize.titleize}
It's recommended to build this formula on macOS #{target_macos_humanized}
(the oldest version that can run Homebrew).
EOS
end
Expand Down

0 comments on commit a9a8bc9

Please sign in to comment.