Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
fix: run dependencies with non-existent ancient files before the cons…
- Loading branch information
1 parent
313de93
commit 84d1f64
Showing
4 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
shell.executable("bash") | ||
|
||
rule all: | ||
input: | ||
"d.out", | ||
|
||
rule A: | ||
output: | ||
"a.out", | ||
shell: | ||
"echo 'text' > {output}" | ||
|
||
rule B: | ||
input: | ||
ancient("a.out"), | ||
output: | ||
"b_{i}.out", | ||
shell: | ||
"cat {input} > {output}" | ||
|
||
# rule C is required for #946 | ||
# use `range(20)` so test will pass in < 5% of cases where issue is present | ||
rule C: | ||
input: | ||
expand("b_{i}.out", i=list(range(20))), | ||
output: | ||
"c.out", | ||
shell: | ||
"cat {input} > {output}" | ||
|
||
# For #946, 'a.out' is required as input, but does not need to be `ancient()` | ||
rule D: | ||
input: | ||
"a.out", | ||
"c.out", | ||
output: | ||
"d.out", | ||
shell: | ||
"cat {input} > {output}" |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters