From a06f9a2a8f8926b6bd45b0c5639834a4e9352103 Mon Sep 17 00:00:00 2001 From: Salvatore Pinto Date: Wed, 29 Oct 2025 14:14:01 +0100 Subject: [PATCH] Fix normalization of image id Apptainer will replace the ':' character with an '_' --- cwltool/singularity.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cwltool/singularity.py b/cwltool/singularity.py index 41db3b691..aad6527ef 100644 --- a/cwltool/singularity.py +++ b/cwltool/singularity.py @@ -157,13 +157,13 @@ def is_version_3_10_or_newer() -> bool: def _normalize_image_id(string: str) -> str: if ":" not in string: string += "_latest" - return string.replace("/", "_") + ".img" + return string.replace(":", "_") + ".img" def _normalize_sif_id(string: str) -> str: if ":" not in string: string += "_latest" - return string.replace("/", "_") + ".sif" + return string.replace(":", "_") + ".sif" @mypyc_attr(allow_interpreted_subclasses=True)