Is there a preferred method for allowing X or Y dependency for a formulae? #4037
Unanswered
kylekorth
asked this question in
Writing Formulae/Casks
Replies: 1 comment 1 reply
-
I tried to persuade the team on this PR, I think we should mark all terraform dependencies as optional, I will raise a new one for discussion. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For example in cdktf.rb on line 21 exists a requirement for terraform. There is another formulae (tfenv) which symlinks the terraform binary on a system so you can switch back and forth between versions.
I wanted to add some logic to the dependency on terraform to allow tfenv as a substitute. I started writing out a simple if statement because I couldn't find an OR classification in the depends_on selector but it felt messy (not to mention depends_on is a class method so it cannot be nested inside of an if statement).
vs something like:
depends_on :optional => ["terraform", "tfenv"]
Any advice on moving forward here?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions