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: issue #1257 (missing logfile failure when using shadow directory) (
#1258) * Test for issue #1257 fails for missing logfile with shadow directory * If rule did not create logfile, create it in its shadow directory This addresses gh #1257. If the rule did not create a logfile, an empty one would be created in its final destination. If the shadow directive was used, however, Snakemake would try to move the nonexistent logfile from the shadow directory to its final location. This caused the observed failures. This commit has Snakemake create the empty file where Snakemake would have expected the program to create it (i.e. in the shadow directory). This enables the unshadow operation that takes place later to succeed. * move remote handling of log files into the general remote output handling; fix existence check Co-authored-by: Johannes Köster <johannes.koester@tu-dortmund.de> Co-authored-by: Johannes Köster <johannes.koester@uni-due.de>
- Loading branch information
1 parent
290d90a
commit 426d92f
Showing
5 changed files
with
12 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
rule all: | ||
shadow: "minimal" | ||
output: touch("all.out") | ||
log: "all.log" |
Empty file.
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