soft dependencies on core packages #3286
-
Hi there! My use case basically is I want users of the mongodb-atlas alias to install both mongodb-atlas-cli and mongosh. Ideally, this would be the case by default but optionally users would be able to install them separately. I see in the Formula Cookbook that we can add 4 types of dependencies I think for the use case I've mentioned flagging Is there a way to achieve it in core packages? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
There is not, unfortunately. You can use optional or recommended dependencies if you host your formulae in an external tap. |
Beta Was this translation helpful? Give feedback.
-
@carlocab how about having two packages one with the dependency and one without it? would it be a pattern the core team would accept? |
Beta Was this translation helpful? Give feedback.
-
@SMillerDev how would you recommend handling the use case for CI / CD where users will need the mongodb-atlas-cli only as the size of the package with dependency will be much bigger and will impact their pipeline? |
Beta Was this translation helpful? Give feedback.
There is not, unfortunately. You can use optional or recommended dependencies if you host your formulae in an external tap.