Skip to content

Commit

Permalink
Append "_latest" to image id if no tag is present
Browse files Browse the repository at this point in the history
  • Loading branch information
sameeul committed Dec 9, 2024
1 parent 6c86caa commit 12e93ae
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"

Check warning on line 138 in cwltool/singularity.py

View check run for this annotation

Codecov / codecov/patch

cwltool/singularity.py#L138

Added line #L138 was not covered by tests
return string.replace("/", "_") + ".img"


def _normalize_sif_id(string: str) -> str:
if ":" not in string:
string+="_latest"

Check warning on line 144 in cwltool/singularity.py

View check run for this annotation

Codecov / codecov/patch

cwltool/singularity.py#L144

Added line #L144 was not covered by tests
return string.replace("/", "_") + ".sif"


Expand Down

0 comments on commit 12e93ae

Please sign in to comment.