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: do not apply module prefix in case of remote files
- Loading branch information
1 parent
2681f6f
commit 5645b3f
Showing
2 changed files
with
19 additions
and
9 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 |
---|---|---|
@@ -1,13 +1,21 @@ | ||
configfile: "config.yaml" # does not exist, but this statement should be ignored on module import | ||
from snakemake.remote.HTTP import RemoteProvider as HTTPRemoteProvider | ||
|
||
|
||
configfile: "config.yaml" # does not exist, but this statement should be ignored on module import | ||
|
||
|
||
HTTP = HTTPRemoteProvider() | ||
|
||
|
||
def some_func(): | ||
return 15 | ||
|
||
|
||
rule a: | ||
input: | ||
HTTP.remote("raw.githubusercontent.com/snakemake/snakemake/main/LICENSE.md"), | ||
output: | ||
"results/test.out", | ||
"/tmp/foo.txt" | ||
"/tmp/foo.txt", | ||
shell: | ||
"echo {config[test]} > {output[0]}; touch {output[1]}" | ||
"echo {config[test]} > {output[0]}; touch {output[1]}" |