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

Inspection False Positive: Rule or Checkpoint name 'check1' has not been defined yet #543

Open
iromeo opened this issue Oct 21, 2024 · 0 comments

Comments

@iromeo
Copy link
Contributor

iromeo commented Oct 21, 2024

image ``` shell.executable("bash")

rule all:
input:
'result.r1',
'result.c1', # targeting checkpoint output overrides input
'result.c2'

def rule1_input(wc):
checkpoints.check1.get(**wc).output[0]
return "result.r2"

rule r1:
input:
rule1_input
output:
'result.r1',
shell:
'echo {input} > {output}'

rule r2:
output:
'result.r2'
shell:
'echo r2 > {output}'

def check1_input(wc):
checkpoints.check2.get(**wc).output[0]
return 'result.r3'

checkpoint check1:
input:
check1_input
output:
'result.c1'
shell:
'echo c1 > {output}'

checkpoint check2:
output:
'result.c2'
shell:
'echo c2 > {output}'

rule r3:
output:
'result.r3'
shell:
'echo r3 > {output}'

no error in 8.20.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant