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
feat: Allow to mark all output files as temp with --all-temp (#1097)
* mark all output as temp * move logic into rule * fixes
- Loading branch information
1 parent
fd6e6b2
commit 0ac3b38
Showing
6 changed files
with
48 additions
and
2 deletions.
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
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,23 @@ | ||
rule all: | ||
input: | ||
"test2.txt" | ||
run: | ||
import os | ||
if os.path.exists("test1.txt"): | ||
raise ValueError("test1.txt still present!") | ||
|
||
|
||
rule a: | ||
output: | ||
"test1.txt" | ||
shell: | ||
"touch {output}" | ||
|
||
|
||
rule b: | ||
input: | ||
"test1.txt" | ||
output: | ||
"test2.txt" | ||
shell: | ||
"touch {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