macOS only formula #4914
Answered
by
Bo98
quackerex
asked this question in
Writing Formulae/Casks
macOS only formula
#4914
-
Output of
|
Beta Was this translation helpful? Give feedback.
Answered by
Bo98
Nov 20, 2023
Replies: 1 comment 4 replies
-
If it actually tries to build your dependency declaration is incorrect. It will always run the Linux action though |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you want to restrict it to macOS, you'll need to add
depends_on :macos
. This can work in addition to what you have.It's perhaps a little confusing, but
depends_on macos: :sonoma
just says that the minimum macOS should be Sonoma, rather than it needs to be macOS. It makes a little more sense when you consider formulae that do support both macOS and Linux, but just don't work on some older macOS. Perhaps we should have named itdepends_on minimum_macos: :sonoma
, but it comes from a time when we didn't support Linux at all.