Skip to content

Commit

Permalink
Make manifest retrieval for multi-platform images not fast-failing (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
Poeschl authored Aug 29, 2024
1 parent b302990 commit 1e7fb9c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions clean_ghcr.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,17 @@ def get_all_package_versions_per_pkg(package_url):

def get_deps_pkgs(owner, pkgs):
ids = []
successful = True
for pkg in pkgs:
for pkg_ver in pkgs[pkg]:
image = f"{DOCKER_ENDPOINT}{owner}/{pkg}@{pkg_ver['name']}"
ids.extend(get_image_deps(image))
try:
image = f"{DOCKER_ENDPOINT}{owner}/{pkg}@{pkg_ver['name']}"
ids.extend(get_image_deps(image))
except Exception as e:
print(e)
successful = False
if not successful:
raise Exception("Error on image dependency resolution")
return ids


Expand Down

0 comments on commit 1e7fb9c

Please sign in to comment.