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

when pulling image to cache, if it is missing target arch, indicate an error #3967

Merged
merged 1 commit into from Dec 17, 2023

Conversation

deitch
Copy link
Collaborator

@deitch deitch commented Dec 15, 2023

- What I did

When looking for a ref and specific arch in the cache, if it is missing entirely or incomplete for the target platform, it does an ImagePull(). If that finds an index, it pulls it and, if successfully pulls, returns OK... without first checking if that index contains the target arch. So the caller thinks it found it locally, when it really didn't.

This fixes it.

- How I did it

Added a check post-index-pull.

- How to verify it

CI and I checked manually.

- Description for the changelog

Handle pull image is missing target architecture

…n error

Signed-off-by: Avi Deitcher <avi@deitcher.net>
@deitch deitch merged commit 3a04052 into linuxkit:master Dec 17, 2023
22 checks passed
@deitch deitch deleted the build-after-pull-if-missing branch December 17, 2023 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant