Skip to content

Commit 604fd12

Browse files
authored
Append "_latest" to image id if no tag is present (#2085)
1 parent 7fa57dd commit 604fd12

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cwltool/singularity.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,14 @@ def is_version_3_10_or_newer() -> bool:
134134

135135

136136
def _normalize_image_id(string: str) -> str:
137+
if ":" not in string:
138+
string += "_latest"
137139
return string.replace("/", "_") + ".img"
138140

139141

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

143147

0 commit comments

Comments
 (0)