Skip to content
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

Append "_latest" to image id if no tag is present #2085

Merged
merged 2 commits into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading