Skip to content

Conversation

jserv
Copy link
Contributor

@jserv jserv commented Oct 3, 2025

This extends the "depends on" syntax to support conditional dependencies with "depends on A if B". This is functionally equivalent to "depends on !B || A" but significantly more readable.

Implementation converts "A if B" to "!B || A" during parsing:

  • When B is false, dependency is always satisfied
  • When B is true, dependency becomes A

This extends the "depends on" syntax to support conditional dependencies
with "depends on A if B". This is functionally equivalent to
"depends on !B || A" but significantly more readable.

Implementation converts "A if B" to "!B || A" during parsing:
- When B is false, dependency is always satisfied
- When B is true, dependency becomes A

Signed-off-by: Jim Huang <jserv@ccns.ncku.edu.tw>
@jserv jserv merged commit 7b671fe into main Oct 3, 2025
3 checks passed
@jserv jserv deleted the improve-condition branch October 3, 2025 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants