Skip to content

Update all Go dependencies and the bundled buildkitd - #107

Merged
jglogan merged 3 commits into
apple:mainfrom
jglogan:deps-full-update
Oct 27, 2026
Merged

jglogan merged 3 commits into
apple:mainfrom
jglogan:deps-full-update

Conversation

@jglogan

@jglogan jglogan commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Refreshes every Go dependency to its latest release and moves the bundled buildkitd to match the vendored BuildKit client.

What changes

  • Go modules: 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/buildkit v0.29.0 → v0.34.1
    • google.golang.org/grpc v1.83.1 → v1.84.0
    • github.com/containerd/containerd/v2 v2.2.3 → v2.4.2
    • github.com/sirupsen/logrus v1.9.4 → v1.10.2
    • github.com/tonistiigi/fsutil, golang.org/x/*, OpenTelemetry v1.47.0
  • Go 1.26.8: moby/buildkit v0.34.1 requires it, so the go directive, the CI setup-go version and the Dockerfile's golang base image move from 1.25 to 1.26.
  • Bundled buildkitd: FINAL_IMAGE moves from moby/buildkit:v0.26.2 to v0.34.1, so the daemon matches the vendored client, session and dockerfile2llb packages instead of being several minor versions behind them. v0.34.1 is still Alpine-based, which the Dockerfile's apk step needs.
  • Debug logging: buildkitd v0.34 deprecates the top-level debug option and logs a warning when it is true, which the shim set whenever it ran with --debug. The generated buildkitd.toml now uses [log] level = "debug" instead, with the same effect. log.level is read by buildkitd v0.34 and later; an older daemon (only possible by overriding FINAL_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 container CLI

grpc-go v1.82.2, v1.83.2 and v1.84.0 and later reject requests that carry no :authority (grpc/grpc-go#9365). container sends 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 its Info probe, 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 bumps builderShimVersion to 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-deps passes (tidy, vendor and go mod verify produce no diff), go build ./... succeeds, and make check-licenses passes.
  • Unit tests pass on Go 1.26.8 (go test ./pkg/...), including new tests for the log.level configuration. go vet reports only the two existing protoimpl.MessageState lock-copy warnings in pkg/fssync/diffcopy_test.go.
  • The full container CLI 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.
  • Started the shim in that image with --debug: the generated buildkitd.toml contains [log] level = "debug", the daemon's startup log is at debug level, and the 'debug' configuration option is deprecated warning no longer appears.

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
jglogan marked this pull request as ready for review October 24, 2026 05:43
@jglogan
jglogan merged commit 18c51fb into apple:main Oct 27, 2026
2 checks passed
@jglogan
jglogan deleted the deps-full-update branch October 27, 2026 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants