pack should not create an ephemeral builder if it isn't truly needed #2195
Labels
status/ready
Issue ready to be worked on.
type/enhancement
Issue that requests a new feature or improvement.
Milestone
Description
Today, we always create an ephemeral builder, because we assume that it's an inexpensive operation if nothing changed.
When containerd storage is enabled, we can no longer omit base layers for images when saving (see buildpacks/imgutil#222 (comment)). This unfortunately makes creating ephemeral builders expensive. We should only do this when it's absolutely necessary.
Proposed solution
Return the original builder if no buildpacks were added, order was not modified, etc.
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: