Buildpacks build fails on Apple M1: no matching manifest for linux/arm64/v8 #5971
Labels
area/build
build/buildpacks
kind/friction
Issues causing user pain that do not have a workaround
meta/examples
Our buildpacks examples fail when building from an Apple M1:
This error happens as Skaffold does not maintain a list of trusted builders, and so all builders are marked as untrusted. With an untrusted builder, the pack library will not use the builder's embedded
lifecycle
binary and instead attempts to run the lifecycle from a separate image. But recent lifecycle images (e.g.,buildpacksio/lifecycle:0.11.1
) point to a manifest list with images forlinux/amd64
andwindows/amd64
, and so the fetch fails. This has been filed upstream as buildpacks/pack#1197.An easy workaround is for the user to indicate in their
skaffold.yaml
that the builder is trusted so that the pack library will use the lifecycle from within the builder image:The best fix for the moment is for Skaffold to indicate that the GCP Buildpacks builder is trusted by default.
The CNB lifecycle team is lifecycle image is also available for linux/arm64 (buildpacks/lifecycle#435), which is non-trivial.
Expected behavior
The following should succeed:
Actual behavior
Information
<paste your skaffold.yaml here>
Steps to reproduce the behavior
skaffold <command>
The text was updated successfully, but these errors were encountered: