Replies: 5 comments 5 replies
-
|
Is it a dependency in a cask or formula? |
Beta Was this translation helpful? Give feedback.
-
The output from Here is an example of a cask that depends on the docker cask: |
Beta Was this translation helpful? Give feedback.
-
|
Depending on casks is not possible directly. This is because Casks are still seen as "external" dependencies - they effectively just run upstream installers, so there's no real difference between a cask installation and another external installation. What you can do is have custom requirements that inform users to install the cask first. We had a couple of them ourselves in the past when we were more lenient about Java and macFUSE: https://github.com/Homebrew/brew/blob/3.0.11/Library/Homebrew/extend/os/mac/requirements/osxfuse_requirement.rb. This will also allow people who have Docker Desktop installed outside of Homebrew/cask to still use that. Custom requirements are embeddable inside formulae: see |
Beta Was this translation helpful? Give feedback.
-
|
Thank you all for the answers. Thank you all for the answers! |
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/5788 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello community 👋 ,
I would like to add docker-desktop as a dependency.
in the style of
depends_on "docker", right now it would simply install that non cask dependency.What is the best way to implement the cask as a dependency?
Other idea I have it to maybe use a
post-install, which seems kinda hacky to me.Best regards, Tony
Beta Was this translation helpful? Give feedback.
All reactions