From cc7d0577295f57f89cda9ff98e581911f5f15284 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Mon, 16 Mar 2026 13:17:40 -0700 Subject: [PATCH] container/make-manifest-list.py: handle "no tags for this version" Especially now that --version is required, there may be no useful tag; catch early and error out. Signed-off-by: Dan Mick --- container/make-manifest-list.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/container/make-manifest-list.py b/container/make-manifest-list.py index 085c11216896..0893f73ebfc3 100755 --- a/container/make-manifest-list.py +++ b/container/make-manifest-list.py @@ -150,7 +150,14 @@ def build_prerelease(sysargs): f'{arch_specific_host}/{amd64_repo}', f'{arch_specific_host}/{arm64_repo}', ) - tags = [get_latest_tag(p) for p in repopaths] + tags = list() + for p in repopaths: + latest = get_latest_tag(p, sysargs.version) + if latest is None: + print(f'no {sysargs.version} tag in {p}', file=sys.stderr) + return(1) + tags.append(latest) + print(f'latest tags: amd64:{tags[0]} arm64:{tags[1]}') # check that version of latest tag matches -- 2.47.3