Skip to content

Conversation

@natalieparellano
Copy link
Member

No description provided.

Signed-off-by: Natalie Arellano <narellano@vmware.com>
@natalieparellano natalieparellano requested a review from a team as a code owner March 2, 2022 22:12
err error
)
if groupBuildable.Extension {
if len(groupBuildable.OrderExt) > 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we make d.ExtensionStore.Lookup return a buildable that represents a metabuildpack given a known groupBuildable.ID or similar? That way we can fall into the existing bpDesc.IsMetaBuildpack below?

Copy link
Member Author

Choose a reason for hiding this comment

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

That would probably be better than the current implementation :)

Part of the pain IMO is the fact that GroupBuildable (what was formerly GroupBuildpack) is used everywhere throughout the code, for different reasons - representing the contents of order.toml, representing the contents of group.toml (with a slightly different schema), "printing" the identifier of a buildpack in a label (e.g., to associate a bom entry with a buildpack). I started to look into what might make this code a bit nicer, but it seemed to be a lot of work :/ We might look at it for the "real" implementation.

That aside, I agree with your suggestion. That and #802 (comment) would make the store interface more useful.

@natalieparellano natalieparellano merged commit 24ad818 into extender-lib Mar 3, 2022
@natalieparellano natalieparellano deleted the fix/order-ext-2 branch March 3, 2022 16:44
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.

3 participants