-
Notifications
You must be signed in to change notification settings - Fork 660
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
workflow.container does not work in a DSL2 module #1758
Comments
This is not a DSL2 specific issue. It also happens with
|
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
To access the |
Bug report
workflow.container
prints an empty map ([:]
) instead of a container name if used in a DSL2 module.Expected behavior and actual behavior
Print the name of the container used in a module, i. e.
quay.io/biocontainers/fastqc:0.11.9--0
in the example below. Instead, it prints an empty dictionary ([:]
).Steps to reproduce the problem
DSL2 module (
fastqc.nf
):The main script that calls the module (
main.nf
, in the same directory asfastqc.nf
):Config file (
nextflow.config
, in the same directory asfastqc.nf
andmain.nf
):Command to run the example (invoke in the directory where the scripts are):
Program output
In
.command.out
:In stdout:
Attached please find .nextflow.log
Environment
Additional context
I guess that
workflow.container
was introduced in DSL1 to report a container (or a dictionary of containers) from the whole pipeline. But in DSL2 it would be useful to be able to report names of containers from individual modules to log these names as part of a pipeline run summary.The text was updated successfully, but these errors were encountered: