fix: fetch builder image per platform#2589
Merged
jjbustamante merged 3 commits intobuildpacks:mainfrom May 2, 2026
Merged
Conversation
Signed-off-by: Dushyant Dahiya <dushyantdahiya2@gmail.com>
Contributor
Author
|
@jjbustamante is there a way to get this pr prioritized? |
…etchForPlatform Signed-off-by: Dushyant Dahiya <dushyantdahiya2@gmail.com>
jjbustamante
approved these changes
May 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When using
pack build --platform linux/<arch>against a Docker daemon with containerd storage (io.containerd.snapshotter.v1), the builder image was fetched withFetch()which returns the manifest list or the host-arch image config. This caused two failures depending on Docker version:NotFound: content digestmissing label 'io.buildpacks.builder.metadata'Both share the same root cause: pack did not scope the builder image config lookup to the requested
--platform.This PR switches the builder image fetch from
Fetch()toFetchForPlatform(), which resolves the platform-specific digest from the registry manifest list before pulling — the same fix already applied to lifecycle image fetching (#2467).Also tracks
FetchForPlatformCallsseparately inFakeImageFetcherand adds regression tests.Output
Before
After
Build proceeds normally when
--platform linux/arm64is specified against a containerd-backed daemon.Documentation
Related
Resolves #2587
Resolves #2588