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

Make the definition of LookupReferenceFunc unconditional #2089

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

nalind
Copy link
Member

@nalind nalind commented Jul 15, 2024

Move the definition of our LookupReferenceFunc type alias to a file that isn't conditionally compiled, as an alternative to containers/buildah#5628.

Move the definition of our LookupReferenceFunc type alias to a file that
isn't conditionally compiled.

Signed-off-by: Nalin Dahyabhai <[email protected]>
Copy link

Ephemeral COPR build failed. @containers/packit-build please check.

@rhatdan
Copy link
Member

rhatdan commented Jul 15, 2024

LGTM

@rhatdan
Copy link
Member

rhatdan commented Jul 15, 2024

@mheon
Copy link
Member

mheon commented Jul 15, 2024

Sure
/lgtm

@aaronlehmann
Copy link

Does this address the bloat issue mentioned in containers/buildah#5532 (comment)?

@openshift-ci openshift-ci bot added the lgtm label Jul 15, 2024
@mheon
Copy link
Member

mheon commented Jul 15, 2024

/approve

Copy link
Contributor

openshift-ci bot commented Jul 15, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mheon, 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit fdf625d into containers:main Jul 15, 2024
13 of 14 checks passed
@nalind nalind deleted the lookup-func-aliases branch July 15, 2024 15:16
@rhatdan
Copy link
Member

rhatdan commented Jul 15, 2024

I believe pulling in common/libimage/manifest versus pulling common/libimage should fix it.

@nalind
Copy link
Member Author

nalind commented Jul 15, 2024

Does this address the bloat issue mentioned in containers/buildah#5532 (comment)?

When I look at the go list -deps output for versions of github.com/containers/buildah/define that use libimage.LookupReferenceFunc and manifests.LookupReferenceFunc, the version that uses the definition from manifests has fewer dependencies. Maybe I shouldn't have closed containers/buildah#5628?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants