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: rule inheritance within modules (did previously lead to key erro…
…rs) (#1292) * fix: rule inheritance within modules (did previously lead to key errors) * skip on windows
- Loading branch information
1 parent
36732bf
commit 603e0a8
Showing
7 changed files
with
69 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
rule all: | ||
input: | ||
"test2.txt", | ||
"test3.txt", | ||
"test4.txt", | ||
|
||
|
||
module somemodule: | ||
snakefile: | ||
"module/Snakefile" | ||
config: | ||
config | ||
|
||
|
||
use rule * from somemodule as somemodule_* | ||
|
||
|
||
module someothermodule: | ||
snakefile: | ||
"module2/Snakefile" | ||
config: | ||
config | ||
|
||
|
||
use rule * from someothermodule as someothermodule_* |
1 change: 1 addition & 0 deletions
1
tests/test_modules_ruledeps_inheritance/expected-results/test2.txt
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 @@ | ||
test |
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,20 @@ | ||
rule a: | ||
output: | ||
"test.txt" | ||
shell: | ||
"echo test > {output}" | ||
|
||
|
||
rule b: | ||
input: | ||
rules.a.output[0] | ||
output: | ||
"test2.txt" | ||
shell: | ||
"cp {input} {output}" | ||
|
||
|
||
|
||
use rule b as c with: | ||
output: | ||
"test4.txt" |
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,5 @@ | ||
rule a: | ||
output: | ||
"test3.txt" | ||
shell: | ||
"echo foo > {output}" |
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