Skip to content

Commit

Permalink
Don't evaluate @reached_if unless the goal is required #104
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Feb 8, 2022
1 parent b1cc6b7 commit ba3c63b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/25_lazy_reached_if.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@


@goal a
@reached_if echo 'reached_if@a' ; false
@depends_on b
echo a

@goal b
@reached_if echo 'reached_if@b' ; true
@depends_on c
echo b

@goal c
@reached_if echo 'reached_if@c' ; false
echo c

@goal d
echo d

10 changes: 10 additions & 0 deletions tests/25_lazy_reached_if_loop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@


@goal a
@reached_if true
@depends_on b
echo a

@goal b
@depends_on a
echo b

0 comments on commit ba3c63b

Please sign in to comment.