Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: temp() output files are copied to output #58

Open
kilpert opened this issue Sep 25, 2024 · 0 comments
Open

Bug: temp() output files are copied to output #58

kilpert opened this issue Sep 25, 2024 · 0 comments

Comments

@kilpert
Copy link

kilpert commented Sep 25, 2024

Output files marked with temp() are copied from the local cache to the output. The expectation, however, is that those temp files are not kept.

An example Snakefile:

rule all:
    input:
        "results/b.txt"

rule a:
    output:
        temp("results/a.txt")
    shell:
        "echo a "
        ">{output} "
        "&& sleep 10 "

rule b:
    input:
        rules.a.output
    output:
        "results/b.txt"
    shell:
        "echo b "
        ">{output} "

Run completely standard (using the default 'ikim' profile):

$ snakemake
Using profile ikim for setting default command line arguments.
Assuming unrestricted shared filesystem usage.
...

The output is:

$ tree results/
results/
├── a.txt
└── b.txt

However, the output should be:

$ tree results/
results/
└── b.txt

Tested on:

$ python --version
Python 3.12.6

$ snakemake --version
8.20.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant