Replies: 1 comment 2 replies
-
Unfortunately, this is a known limitation. As you said it works most of the time but there are tricky use cases that are not supported, this is why it's advisable to not use this approach. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Current docs warn: "When using the profiles feature in your config file, do NOT set attributes in the same scope both inside and outside a profiles context." Could this restriction be lifted? E.g. in the process scope some directives that don't vary with profile are most naturally defined within the process definition in the .nf file (e.g. the conda env), while other directives are most naturally defined in profiles (e.g. clusterOptions for different clusters). Also, it's odd that a setting of one config value in process scope can be overridden by specifying settings of other config values in the same scope a profile context elsewhere.
Even more confusing, ignoring this restriction seems to work fine most of the time. If it's an error to set attributes in the same scope both inside and outside a profiles context, Nextflow should error out, rather than silently doing something undefined.
Beta Was this translation helpful? Give feedback.
All reactions