Skip to content

Add logic to parse BUILDKIT_SYNTAX option for --build-arg #3148

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

Closed
wants to merge 10 commits into from

Conversation

wnonnemaker
Copy link

Passing a build description using a custom frontend to a BuildKit instance with dockerfile.v0 frontend disabled does not lead to a successful build, even though using a custom dockerfile syntax should use the gateway.v0 frontend in the BuildKit instance.

Though the change I added fixes the bug described in #3077, I discovered a similar bug while using a BuildKit instance with dockervile.v0 disabled. If you use the #syntax directive in the custom dockerfile without the BUIDKIT_SYNTAX option, the build will fail with the same error as described in the aforementioned issue.

If any maintainer wants me to work on this newly discovered bug I would be happy to do so.

Anyway, this is my first pull request so advice and feedback are greatly appreciated, thank you!

wnonnemaker and others added 10 commits April 23, 2025 00:34
Signed-off-by: Will Nonnemaker <wnonnemaker@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Will Nonnemaker <wnonnemaker@gmail.com>
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Signed-off-by: Will Nonnemaker <wnonnemaker@gmail.com>
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/softprops/action-gh-release/releases)
- [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md)
- [Commits](softprops/action-gh-release@c95fe14...da05d55)

---
updated-dependencies:
- dependency-name: softprops/action-gh-release
  dependency-version: 2.2.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Will Nonnemaker <wnonnemaker@gmail.com>
notable changes

- fixes CVE-2025-22868
- oauth2.go: use a more straightforward return value
- oauth2: Deep copy context client in NewClient
- jws: improve fix for CVE-2025-22868

full diff: golang/oauth2@v0.23.0...v0.29.0

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Will Nonnemaker <wnonnemaker@gmail.com>
full diff: containerd/containerd@v2.0.4...v2.0.5

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Will Nonnemaker <wnonnemaker@gmail.com>
diff:  moby/moby@v28.1.0...v28.1.1

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Will Nonnemaker <wnonnemaker@gmail.com>
no changes in vendored code

diff:  docker/cli@v28.1.0...v28.1.1

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Will Nonnemaker <wnonnemaker@gmail.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: Will Nonnemaker <wnonnemaker@gmail.com>
added logic to handle BUILDKIT_SYNTAX option with --build-arg

I am making this change because the docs suggest that the
BUILDKIT_SYNTAX option is equivalent to the #syntax directive one
could use in a dockerfile, but omitting the directive and keeping
BUILDKIT_SYNTAX currently does not lead to a succesful build.

Resolves: docker#3077

Signed-off-by: Will Nonnemaker <wnonnemaker@gmail.com>
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.

5 participants