-
Notifications
You must be signed in to change notification settings - Fork 793
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
Replace libimage.LookupReferenceFunc with the manifests version #5628
Replace libimage.LookupReferenceFunc with the manifests version #5628
Conversation
32714bb
to
ebad106
Compare
Ephemeral COPR build failed. @containers/packit-build please check. |
LGTM if this works. |
Shouldn't be needed with containers/common#2089, closing. |
ebad106
to
49590a8
Compare
Reopened and rebased. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: giuseppe, nalind The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Change fields of the github.com/containers/common/libimage.LookupReferenceFunc type to be of the github.com/containers/common/libimage/manifests.LookupReferenceFunc type. The two types are aliases for each other, but the libimage package refuses to build when podman is using us as a dependency of its remote client. Note that the CachePullSourceLookupReferenceFunc, CachePullDestinationLookupReferenceFunc, CachePushSourceLookupReferenceFunc, and CachePushDestinationLookupReferenceFunc callbacks in define.BuildOptions aren't currently proxied for podman remote clients. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
49590a8
to
b1dff41
Compare
/lgtm |
750598d
into
containers:main
What type of PR is this?
/kind api-change
What this PR does / why we need it:
Change fields of the
github.com/containers/common/libimage.LookupReferenceFunc
type to be of thegithub.com/containers/common/libimage/manifests.LookupReferenceFunc
type. The two types are aliases for each other, but the libimage package refuses to build when podman is using us as a dependency of its remote client.Note that the
CachePullSourceLookupReferenceFunc
,CachePullDestinationLookupReferenceFunc
,CachePushSourceLookupReferenceFunc
, andCachePushDestinationLookupReferenceFunc
callbacks indefine.BuildOptions
aren't currently proxied for podman remote clients.How to verify it
Which issue(s) this PR fixes:
Special notes for your reviewer:
Alternate approaches include moving the type aliases from
copier.go
ingithub.com/containers/common/libimage
to a new file that doesn't have build constraints, or having podman actually define its own API types instead of just including ours.Does this PR introduce a user-facing change?