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

fix(run): Add architecture and platform to OCI registry query #956

Merged
merged 3 commits into from
Nov 2, 2023

Conversation

LucaSeri
Copy link
Contributor

@LucaSeri LucaSeri commented Nov 1, 2023

Prerequisite checklist

  • Read the contribution guidelines regarding submitting new changes to the project;
  • Tested your changes against relevant architectures and platforms;
  • Ran make fmt on your commit series before opening this PR;
  • Updated relevant documentation.

Description of changes

Fixes #955

When querying the OCI index, the query name and the
index fullref were swapped, resulting in confusing error
messages.

Signed-off-by: Luca Seritan <luca.seritan@gmail.com>
In the case the architecture or platform are not
specified (empty strings), these query arguments
will be ignored.

GitHub-Fixes: unikraft#955

Signed-off-by: Luca Seritan <luca.seritan@gmail.com>
The err was being checked twice, preventing the more
verbose error message.

Signed-off-by: Luca Seritan <luca.seritan@gmail.com>
Copy link
Member

@nderjung nderjung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catches! Thanks!

@nderjung nderjung merged commit 4941002 into unikraft:staging Nov 2, 2023
4 checks passed
@LucaSeri LucaSeri deleted the fix-oci branch January 31, 2024 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🚀 Done
Development

Successfully merging this pull request may close these issues.

Kraft run ignores --arch and --plat cli arguments when running an OCI image
2 participants