Replies: 2 comments 4 replies
-
I am personally not opposed to allowing 3rd party taps to depend on casks. It would very much be an unsupported use case though. Software in Homebrew/core is required to be open-source using an OSI approved license and build from source on our CI, which is why we do not allow cask dependencies. Note that we have things like |
Beta Was this translation helpful? Give feedback.
-
Just cross-linking to other times this has been discussed: Homebrew/brew#17326, https://github.com/orgs/Homebrew/discussions/3163 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Output of
brew config
Output of
brew doctor
Description of issue
I'm finding more and more that I'm unable to write formulas that would properly install on a new system, because they depend on binaries that get installed with casks. For example, just in the last 2 days I've worked with formulas that depend on the following:
openscad
(installsopenscad
binary linked from/Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD
)arq
(installsarqc
binary linked from/Applications/Arq.app/Contents/Resources/arqc
)usr-sse2-rdm
(/Applications/RDM.app/Contents/MacOS/RDM
can be invoked as a commandline binary)There are also other commonly used binaries installed through casks, such as the
code
binary installed byvisual-studio-code
.In some other cases this is resolved by including both a formula in
homebrew-core
as well an identically named cask inhomebrew-cask
, such ashandbrake
. However, I get the feeling Homebrew wouldn't want to expand this to casks like the ones I mentioned above. Having separate formulas:As someone who wants to make sure their computer configuration properly expresses dependencies, I would find it really useful if a formula can also depend on a cask, at least in the taps I maintain.
There are some existing discussions about aspects of this, such as https://github.com/orgs/Homebrew/discussions/3163 discussing Docker. @SMillerDev's reply to one of the comments implies that
depends_on cask: "…"
should work for a formula in a tap, but I ever got this to work — it just produces anUnsupported special dependency :cask
error. So it seems this isn't really robustly supported by the current Homebrew code, and therefore I'm asking here!Relevant casks
—
Beta Was this translation helpful? Give feedback.
All reactions