-
Notifications
You must be signed in to change notification settings - Fork 955
Fix environment variable references for strict syntax compliance #9681
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
Conversation
Wrap environment variables in env() function to comply with Nextflow
strict syntax mode (NXF_SYNTAX_PARSER=v2). This addresses 58 lint errors
across Sentieon and Spotiflow module test configs.
Changes:
- Sentieon modules: Replace ${SENTIEON_LICSRVR_IP} with ${env('SENTIEON_LICSRVR_IP')}
- Sentieon modules: Replace ${SENTIEON_AUTH_MECH} with ${env('SENTIEON_AUTH_MECH')}
- Spotiflow module: Replace ${HOME} with ${env('HOME')}
This is part of the migration to Nextflow strict syntax where implicit
environment variable references are not allowed.
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
mashehu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess there should also be several $TMPDIR with the same problem
|
Update: I was wrong about this. Added |
|
@maxulysse @FriederikeHanssen I was assuming that the tests were failing because of something I did, but is it possible that the Senteion tests are failing because of an unrelated error? It's to do with fetching the licence file. |
|
|
Sentieon tests only run when ran from the nf-core organisation, so you need to make the branch there, not your own fork. |
|
d'oh! Of course.. I'll remake this PR from a branch. |
|
See #9708 |
|
Closing this one then |
Wraps environment variable references in
env()function for strict syntax compliance.Details
Changes
This PR fixes 58 strict syntax errors across 30 files by wrapping environment variable references in the
env()function, as required by Nextflow 25.10+ strict syntax mode.Example fix:
Why
Nextflow 25.10 introduces strict syntax mode (enabled via
export NXF_SYNTAX_PARSER=v2) which will become mandatory in future versions. In strict mode, environment variables must be accessed explicitly using theenv()function rather than directly by name.Affected Files
Testing
nextflow lintvalidationThis work was completed with AI assistance using Seqera AI.