In --check mode, buildx only evaluates a single platform, but our bakefile carries index,manifest: annotations (and SBOM/provenance attestations) that require a multi-platform image index.
The export validation then rejects the index annotations and fails the build with:
failed to solve: index annotations not supported for single platform export
A real task bake works instead because it builds both platforms and creates an index manifest, so in that case the index annotations are valid.
In
--checkmode, buildx only evaluates a single platform, but our bakefile carriesindex,manifest:annotations (and SBOM/provenance attestations) that require a multi-platform image index.The export validation then rejects the index annotations and fails the build with:
A real
task bakeworks instead because it builds both platforms and creates an index manifest, so in that case the index annotations are valid.