Skip to content

using source_path in params always triggers unneeded rerun #1805

@li-yq

Description

@li-yq

Snakemake version

Both 7.12.0 and 7.6.1

Describe the bug

The returned path from workflow.source_path changes cross different executions of snakemake, even though the file does not change.
It causes param changes and triggers rerun of rules.

Logs

Using the source_path test as an example.

The first run:

$ snakemake --version
7.12.0

$ snakemake -j -p
...
rule a:
    output: test.out
    jobid: 0
    reason: Missing output files: test.out
    resources: tmpdir=/tmp

cat /home/user/.cache/snakemake/snakemake/source-cache/runtime-cache/tmp_kcizqm8/6d573129aa3a1579b69b535c1b44b8db4c81ffdc5b20340dccb22d0576dcd362 > test.out

The second run:

$ snakemake -j -p
...
rule a:
    output: test.out
    jobid: 0
    reason: Params have changed since last execution
    resources: tmpdir=/tmp

cat /home/user/.cache/snakemake/snakemake/source-cache/runtime-cache/tmp6tmmr3c9/6d573129aa3a1579b69b535c1b44b8db4c81ffdc5b20340dccb22d0576dcd362 > test.out

Note that the temp dir runtime-cache/tmpXXXXXXXX has changed.

Minimal example

See the link above.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions