Skip to content

Conversation

@marxarelli
Copy link
Contributor

Handle the BUILDKIT_SYNTAX build argument directly in buildx instead of relying on the dockerfile.v0 frontend to perform forwarding.

Derived from #3157 preserving the initial commit from @wnonnemaker and making changes requested by @tonistiigi.

wnonnemaker and others added 2 commits August 26, 2025 13:51
This fix allows building with a remote builder where
frontend.dockerfile.v0 enabled = false in the buildkitd yaml file.

Note that this change only allows the usage of BUILDKIT_SYNTAX with
a custom frontend image, and using the #syntax directive in this case
will still fail.

Resolves: docker#3077

Signed-off-by: Will Nonnemaker <[email protected]>
Set gateway `source` to the first part of `BUILDKIT_SYNTAX` and
`cmdline` to the entire raw value to preserve additional options.

Signed-off-by: Dan Duvall <[email protected]>
@tonistiigi tonistiigi merged commit 177b980 into docker:master Aug 27, 2025
172 of 173 checks passed
@crazy-max crazy-max added this to the v0.28.0 milestone Aug 27, 2025
@marxarelli
Copy link
Contributor Author

Thanks, @tonistiigi !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants