Skip to content

Fix GString equality checks with String #6330

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

Merged
merged 3 commits into from
Aug 21, 2025
Merged

Conversation

bentsherman
Copy link
Member

This PR improves the semantics of GStrings and lazy expressions in the strict syntax.

  • GStrings are coerced into Strings by appending .toString() under the hood, so that equality checks like "${'test'}" == 'test' are correct.

  • Lazy expressions in process inputs/outputs/directives are handled more consistently. Before, only GStrings and property expressions were lazily evaluated. Now, any expression that references a variable is wrapped in a closure.

Copy link

netlify bot commented Aug 6, 2025

Deploy Preview for nextflow-docs-staging ready!

Name Link
🔨 Latest commit 6548d3d
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/68a7397d3b258f0008205fa9
😎 Deploy Preview https://deploy-preview-6330--nextflow-docs-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Collaborator

@christopher-hakkaart christopher-hakkaart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of non-blocking suggestions. Please check meaning is retained.

@bentsherman bentsherman added this to the 25.10 milestone Aug 21, 2025
@bentsherman bentsherman merged commit 01e1888 into master Aug 21, 2025
21 of 23 checks passed
@bentsherman bentsherman deleted the fix-lazy-gstrings branch August 21, 2025 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot Use params in pod directive, such as k8s.pod, process.pod. Cryptic Issue with params assignment in maps keys
2 participants