Skip to content

Commit

Permalink
Append "_latest" to image id if no tag is present (#2085)
Browse files Browse the repository at this point in the history
  • Loading branch information
sameeul authored Dec 11, 2024
1 parent 7fa57dd commit 604fd12
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cwltool/singularity.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,14 @@ 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"


def _normalize_sif_id(string: str) -> str:
if ":" not in string:
string += "_latest"
return string.replace("/", "_") + ".sif"


Expand Down

0 comments on commit 604fd12

Please sign in to comment.