You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Pants fails to parse Docker Image ID for BuildKit builds with provenance attestations disabled, since exporting manifest list is not present in Docker's build log.
This is an example build log using BuildKit v0.18 with containerd-snapshotter output, but without provenance attestations:
When using an ARM64 Mac to build Docker images that are to be used in AWS Lambdas, provenance attestations must be disabled. This can be achieved by setting the following environment variable: BUILDX_NO_DEFAULT_ATTESTATIONS=1. This alters Docker's build log which makes pants unable to detect the Docker Image ID.
Pants outputs Docker image ID: <unknown>
The text was updated successfully, but these errors were encountered:
Describe the bug
Pants fails to parse Docker Image ID for BuildKit builds with provenance attestations disabled, since
exporting manifest list
is not present in Docker's build log.This is an example build log using BuildKit v0.18 with containerd-snapshotter output, but without provenance attestations:
The current parser looks for
exporting manifest list
, which is not present in my log.Pants version
2.21.2, but the issue currently remains on the main branch.
OS
MacOS (ARM64)
Additional info
Docker BuildKit v0.11+ by default adds provenance attestations to built images, but AWS Lambda does not yet support them.
When using an ARM64 Mac to build Docker images that are to be used in AWS Lambdas, provenance attestations must be disabled. This can be achieved by setting the following environment variable:
BUILDX_NO_DEFAULT_ATTESTATIONS=1
. This alters Docker's build log which makes pants unable to detect the Docker Image ID.Pants outputs
Docker image ID: <unknown>
The text was updated successfully, but these errors were encountered: