-
Notifications
You must be signed in to change notification settings - Fork 192
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 config modules.config
in the wrong place ?
#3300
Comments
Hi @LouisLeNezet, the |
You're welcome 😉 |
I just saw this. Now the modules.config doesn't pick the params modified by test profiles and such. |
Shouldn't it be the case ? |
The reason is here: https://nfcore.slack.com/archives/C043FMKUNLB/p1710950665642739?thread_ts=1710949949.559169&cid=C043FMKUNLB Basically, if a params is set after the modules.config value is resolved, it won't get reassigned. |
Forcing any reference to a params to also use a closure should ensure your way keeps working but it's going to break anything using params that doesn't support a closure. |
@mahesh-panchal anyway around this? or should we just revert this change? |
If #2508 gets implemented, then this might be ok. It's just a question if anyone uses params in test profile to affect something that doesn't accept a closure. i.e. the solution is a closure around the values to I didn't reopen this basically because I wanted to see if it actually affects people, but I also don't know how many will notice quickly. Theoretically it should break test profiles really quickly if affects them. |
okay, let's keep an eye open. And we might need to prioritize #2508. thanks for flagging this! |
The PR #3356 will revert that change until we add the linting described in #2508, to avoid other failures. |
No worry I'll do so ! |
Once the new publishing syntax is also enforced, then this should not be a problem either later. |
Description of the bug
Hi !
With the new version of the template the import of the
modules.config
files as been moved to the bottom of thenextflow.config
file.However all the test config files are imported above in the
nextflow.config
and therefore any modification to a process present in both atest.config
and in themodules.config
would be overwritten by the later.This does happen in
phaseimpute
and we just moved it next tobase.config
.What were the rational for this modification ?
Command used and terminal output
System information
No response
The text was updated successfully, but these errors were encountered: