Repository navigation
node: take the buildx first on the PATH, and say why a broken build session broke - #345
Merged
Merged
Conversation
…ession broke The pinned buildx (aqua names it docker-cli-plugin-docker-buildx) lost to a Homebrew docker-buildx because the engine tried names in a fixed order, so a build meant for 0.33.0 ran on Homebrew's 0.38.0 (Go 1.27) and aprende's served image failed at "load build context" with PROTOCOL_ERROR / 431: buildx sends a Dockerfile's COPY sources to the buildkitd as gRPC header values, one per path, and Go 1.27's net/http refuses more than 500 (moby/buildkit#7420, buildx 0.39.1). The engine now takes the candidate whose folder is first on the PATH, prints the buildx it uses, adds that hint to a broken-session error and shows the output of the step that failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bsoneca
enabled auto-merge (squash)
November 19, 2026 21:46
bsoneca
disabled auto-merge
November 19, 2026 21:47
Owner
Author
|
Opus review: APPROVE, 0 must-fix (1 MEDIUM: failed-step output could echo a build arg — build args never carry secrets here, SOPS goes to the cluster only; 5 LOW: hint re-resolves buildx, redundant regex alternative, first failed step only, one weak assertion, no real-file which/symlink test). Follow-ups. |
bsoneca
enabled auto-merge (squash)
November 19, 2026 21:49
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.
The engine took Homebrew's buildx 0.38.0 over the pinned 0.33.0, which is why aprende's served image failed at "load build context". With 0.33.0 the context loads.
buildx-binarytried names in a fixed order, sodocker-buildx(Homebrew) beat aqua'sdocker-cli-plugin-docker-buildx. Homebrew's build uses Go 1.27, whose net/http refuses more than 500 header values. buildx sends each COPY source as one gRPC header value, and the served image lists about 7,900 (session: allow large filesync pattern lists in go1.27 moby/buildkit#7420, fixed in buildx 0.39.1).release_test.nupasses, with new cases for the PATH order, the hint and the failed step.exec /bin/sh: argument list too long). That comes from the generated Dockerfile.🤖 Generated with Claude Code