-
Notifications
You must be signed in to change notification settings - Fork 605
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
Include module statement inside a conditional statement throws error when run as a subworkflow #2162
Milestone
Comments
Include should not go into |
The snipped below works, it is ok or it would be better just to have the
|
Just killed this 7dbf64b. Thanks Jose for reporting. |
phue
pushed a commit
to phue/nextflow
that referenced
this issue
Jan 25, 2022
Make clear that include must be outside of workflow definitions. This worked until 21.04.3 but then was disabled: - nextflow-io#2519 - nextflow-io#2162
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Expected behavior and actual behavior
When a module
include
is in a conditional statement it gives an exception if it's run as a subworkflow but not it is run as themain
.Steps to reproduce the problem
I created this repo to reproduce the issue.
If this script is run as the main it works.
However, if it is run from the parent directory with this script then it throws an exception.
The problem is on this line which has an
include
inside theif
statement. But the behavior is not consistent when running it as a subworkflow or as the main script.Program output
nextflow.log
Environment
$SHELL --version
)[GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin19)]The text was updated successfully, but these errors were encountered: