-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Target platforms not being considered for "frontend.lint" request #5693
Comments
As part of my investigation the issue is that the lint sub request is not performed iterating over the target platforms and the |
docker/buildx#2888 is also likely same |
I think we can likely just concatenate the results. It seems the This is also reproducible by just putting |
Looking into this more, this doesn't seem to be an issue with The linter here is checking that the exporter key has been set on the result and it matches the expected result. For the lint and outline methods, the exporter key never gets set so it ends up defaulting to the current machine. There's probably two solutions to this.
|
I think this is actually a problem in |
Discussed this with @tonistiigi a bit and we're going to find a way to fix this on the buildkit side. We're likely going to update the verifier so it doesn't rely on the captured frontend opts and instead can identify the result comes from a subrequest through some metadata. |
Contributing guidelines and issue reporting guide
Well-formed report checklist
Description of bug
Bug description
When the validation of the Dockerfile is performed according to the
frontend.lint
request, the existence assestment of the declared base image is performed against the upstream container registry. This operation ignores the actual target platforms that are part of the request and fall back to the (sigle) default platform of the underlaying host or builder instance.This has an impact on the
buildx build --check
andbuildx bake --check
feature for cross-platform build requests as the checks don't honour the actual target platforms specified in the request.There is already an opened issue in the
docker/buildx
GitHub project, but I thought it was worth opening a ticket also here since the bug belongs tobuildkit
.Reproduction
linux/riscv64
Dockerfile
with the following content:docker-bake.hcl
file with he following content:buildx build
andbuildx bake
to reproduce the issue:The same thing doesn't happen if the actual build operation is requested, without
--check
.Version information
The text was updated successfully, but these errors were encountered: