Skip to content
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

removeNextflowVersion with wildcard path #31

Open
anoronh4 opened this issue Feb 6, 2025 · 0 comments
Open

removeNextflowVersion with wildcard path #31

anoronh4 opened this issue Feb 6, 2025 · 0 comments

Comments

@anoronh4
Copy link

anoronh4 commented Feb 6, 2025

I am trying to make removeNextflowVersion work with a wildcard path but running into errors.

simply doing:

assertAll({ 
    assert snapshot(
        removeNextflowVersion("$outputDir/pipeline_info/*versions.yml")
    ).match() 
})

gives the following error:

Error reading YAML file: /work/noronhaa/forte_dev/nftest/.nf-test/tests/f889c58d9e1150dd299fc02e139d00d5/output/pipeline_info/*versions.yml (No such file or directory)

(even though the path exists and a literal path to the same file does work) and when i try to wrap the string in path it gives a different error:

groovy.lang.MissingMethodException: No signature of method: static nf_core.nf.test.utils.Methods.removeNextflowVersion() is applicable for argument types: (sun.nio.fs.UnixPath) values: [/juno/cmo/ccs/noronhaa/forte_dev/nftest/.nf-test/tests/183a5df257bab45c301f6567d2e9a484/output/pipeline_info/*versions.yml]
Possible solutions: removeNextflowVersion(java.lang.CharSequence)
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

No branches or pull requests

1 participant