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

Use constants and types from opencontainers/image-spec/specs-go/v1 #2119

Merged
merged 2 commits into from
Sep 15, 2023

Conversation

mtrmac
Copy link
Collaborator

@mtrmac mtrmac commented Sep 14, 2023

Fixes #2118 , along with a microoptimization.

See individual commits.

... instead of our own hard-coded text.

Should not change behavior, maybe apart from the exact byte
sequence used in the oci-layout file.

Signed-off-by: Miloslav Trmač <[email protected]>
Don't call filepath.Join() if we are not going to use the value.

Signed-off-by: Miloslav Trmač <[email protected]>
@rhatdan
Copy link
Member

rhatdan commented Sep 14, 2023

LGTM

1 similar comment
@TomSweeneyRedHat
Copy link
Member

LGTM

@rhatdan rhatdan merged commit 13fcff5 into containers:main Sep 15, 2023
9 checks passed
@mtrmac mtrmac deleted the oci-constants branch September 15, 2023 16:28
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.

Use OCI Go constants in the OCI transport
3 participants