Repository navigation
Update all Go dependencies and the bundled buildkitd - #107
Merged
Merged
Conversation
Run `go get -u ./...`, `go mod tidy` and `go mod vendor`. Every module the build uses is now at its latest release. Notable direct updates: moby/buildkit v0.29.0 -> v0.34.1, google.golang.org/grpc v1.83.1 -> v1.84.0, containerd v2.2.3 -> v2.4.2, logrus v1.9.4 -> v1.10.2, tonistiigi/fsutil, golang.org/x/*, and OpenTelemetry v1.47.0. moby/buildkit v0.34.1 requires Go 1.26.8, so the go directive moves from 1.25.5 to 1.26.8. Update the CI setup-go version and the Dockerfile's golang base image to match. Compatibility: grpc-go v1.82.2, v1.83.2 and v1.84.0 and later reject requests that carry no :authority (grpc-go #9365). The container CLI sends one since apple/container#2428, so a CLI that includes that change is required to use a shim built from this commit. The CLI pins the shim version, so this only matters for a manual [build] image override on an older CLI, which will not get a response to its Info probe. The runtime buildkitd image (FINAL_IMAGE) is unchanged.
Move the final image's base from moby/buildkit v0.26.2 to v0.34.1 so the daemon matches the vendored moby/buildkit client, session and dockerfile2llb packages, which are now v0.34.1. Before this the shim's frontend was several minor versions ahead of the daemon it talks to. v0.34.1 is still built on Alpine, which the Dockerfile's apk step needs.
buildkitd v0.34 deprecates the top-level `debug` and `trace` options and logs "'debug' configuration option is deprecated, use 'log.level = "debug"' instead" at startup when `debug` is true. The shim set `debug` whenever it was started with --debug, which the container CLI always does. Add a [log] section to the generated buildkitd.toml and set log.level = "debug" instead. The daemon logs at the same level as before. The deprecated Debug and Trace fields stay, unset, so existing users of the type still compile. The log.level option is read by buildkitd v0.34 and later. Older daemons ignore it and log at their default level, which only matters if the bundled daemon is overridden with the FINAL_IMAGE build argument.
jglogan
marked this pull request as ready for review
October 24, 2026 05:43
realrajaryan
approved these changes
Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refreshes every Go dependency to its latest release and moves the bundled
buildkitdto match the vendored BuildKit client.What changes
go get -u ./...,go mod tidy,go mod vendor. Every module the build uses is at its latest release, and every direct requirement is current. Notable updates:github.com/moby/buildkitv0.29.0 → v0.34.1google.golang.org/grpcv1.83.1 → v1.84.0github.com/containerd/containerd/v2v2.2.3 → v2.4.2github.com/sirupsen/logrusv1.9.4 → v1.10.2github.com/tonistiigi/fsutil,golang.org/x/*, OpenTelemetry v1.47.0moby/buildkitv0.34.1 requires it, so thegodirective, the CIsetup-goversion and the Dockerfile'sgolangbase image move from 1.25 to 1.26.buildkitd:FINAL_IMAGEmoves frommoby/buildkit:v0.26.2tov0.34.1, so the daemon matches the vendored client, session anddockerfile2llbpackages instead of being several minor versions behind them. v0.34.1 is still Alpine-based, which the Dockerfile'sapkstep needs.debugoption and logs a warning when it is true, which the shim set whenever it ran with--debug. The generatedbuildkitd.tomlnow uses[log] level = "debug"instead, with the same effect.log.levelis read by buildkitd v0.34 and later; an older daemon (only possible by overridingFINAL_IMAGE) ignores it and logs at its default level.The three changes are separate commits so the daemon bump or the logging change can be reverted on its own.
Compatibility: requires a recent
containerCLIgrpc-go v1.82.2, v1.83.2 and v1.84.0 and later reject requests that carry no
:authority(grpc/grpc-go#9365).containersends one since apple/container#2428, so a CLI that includes that change is required to use a shim built from this PR. A CLI without it connects but never gets a response to itsInfoprobe, so the builder never becomes ready.The CLI pins its shim version (
builderShimVersion), so users only hit this by overriding the builder image on an older CLI. The CLI change that bumpsbuilderShimVersionto a release containing this PR must ship in a CLI that includes #2428. This is worth a line in the release notes.Testing
make check-depspasses (tidy, vendor andgo mod verifyproduce no diff),go build ./...succeeds, andmake check-licensespasses.go test ./pkg/...), including new tests for thelog.levelconfiguration.go vetreports only the two existingprotoimpl.MessageStatelock-copy warnings inpkg/fssync/diffcopy_test.go.containerCLI integration suite passed against a builder image built from the tip of this branch, with a CLI that includes #2428: 296 tests in 36 suites run concurrently and 106 tests in 18 suites run serially, with no failures. The builder in that image runs buildkitd v0.34.1 and grpc-go v1.84.0.--debug: the generatedbuildkitd.tomlcontains[log] level = "debug", the daemon's startup log is at debug level, and the'debug' configuration option is deprecatedwarning no longer appears.