Skip to content

Commit

Permalink
fix: ensure that targetjob is always forced. This fixes a bug causing…
Browse files Browse the repository at this point in the history
… run-directive rules to not being executed even when enforced via e.g. -R. (#2448)

### Description

<!--Add a description of your PR here-->

### QC
<!-- Make sure that you can tick the boxes below. -->

* [ ] The PR contains a test case for the changes or the changes are
already covered by an existing test case.
* [ ] The documentation (`docs/`) is updated to reflect the changes or
this is not necessary (e.g. if the change does neither modify the
language nor the behavior or functionalities of Snakemake).
  • Loading branch information
johanneskoester committed Sep 18, 2023
1 parent 6941a92 commit b2a60d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions snakemake/dag.py
Expand Up @@ -177,6 +177,7 @@ def init(self, progress=False):
create_inventory=True,
)
self.targetjobs.add(job)
self.forcefiles.update(job.output)

self.cleanup()

Expand Down

0 comments on commit b2a60d5

Please sign in to comment.