Skip to content

inspect --raw: skip the NewImage() step - #708

Merged
mtrmac merged 1 commit into
podman-container-tools:masterfrom
nalind:inspect-raw
Aug 28, 2019
Merged

mtrmac merged 1 commit into
podman-container-tools:masterfrom
nalind:inspect-raw

Conversation

@nalind

@nalind nalind commented Aug 28, 2019

Copy link
Copy Markdown
Member

Skip the NewImage() step if we're just inspecting the raw manifest, so that if the image tag or digest being inspected resolves to a manifest list, the local arch/OS combination don't need to be found in it to avoid an error.

@rhatdan

rhatdan commented Aug 28, 2019

Copy link
Copy Markdown
Contributor

LGTM

@mtrmac mtrmac left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK, makes sense.

Comment thread cmd/skopeo/inspect.go Resolved
Comment thread cmd/skopeo/inspect.go Resolved
Comment thread cmd/skopeo/inspect.go Resolved
Skip the NewImage() step if we're just inspecting the raw manifest, so
that if the tag or digest being inspected resolves to a manifest list,
the local arch/OS combination doesn't need to be found in it to avoid an
error.

Signed-off-by: Nalin Dahyabhai <[email protected]>
@mtrmac

mtrmac commented Aug 28, 2019

Copy link
Copy Markdown
Contributor

Thanks! LGTM pending tests.

@mtrmac
mtrmac merged commit c4b0c7c into podman-container-tools:master Aug 28, 2019
@nalind
nalind deleted the inspect-raw branch September 24, 2020 20:27
edsantiago added a commit to edsantiago/skopeo that referenced this pull request Jan 21, 2021
Switch to using images from quay.io/libpod instead, where
we're not (yet) subject to rate limiting.

Completely rewrite one unclear test. The purpose of the
test was to test podman-container-tools#708, in which 'skopeo inspect --raw'
was fixed to be able to inspect images that do not
match the current host's os+arch. We now use a fixed
test image on quay.io, generated by a new script,
whose manifest is pretty unlikely to match our host.

Signed-off-by: Ed Santiago <[email protected]>
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Sep 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants