-
Notifications
You must be signed in to change notification settings - Fork 624
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
singularity.cacheDir does not work properly with containers that have ':' in the filename #5324
Comments
Looks like it is intentional: nextflow/modules/nextflow/src/main/groovy/nextflow/container/SingularityCache.groovy Lines 76 to 101 in 33fab52
|
Ok. Any ideas where this convention originated? Is this a Singularity convention or something that was implemented independently on Nextflow-side? We are building our .sif files via a scripted method, so I will have to go back and update my script to use this naming scheme instead.. and re-name all of our existing .sif files, I guess. Not sure if there's any room for flexibility or customization for how nextflow should expect the .sif filename to look |
Bug report
with my
nextflow.config
like this;The required containers exist as such;
However, when you run Nextflow, it breaks with an error such as
As you can see from the log and error messages, the
cacheDir
directive is not correctly detecting the filesnextflow_bash:latest.sif
andpytorch_pytorch:latest.sif
, and is instead looking for the filesnextflow_bash-latest.sif
andpytorch_pytorch-latest.sif
which do not exist.Is this a bug? This behavior is not described in the docs ( https://www.nextflow.io/docs/latest/config.html#scope-singularity ), and I have not encountered this issue in the past with filenames that lack ':'. Considering that our files are on a soon-to-be S3 backed storage system, having to constantly rename the .sif files to match this unexpected different filename is a little bothersome.
Environment
nextflow version 24.04.4.5917
The text was updated successfully, but these errors were encountered: