Skip to content

prebuilt: buf format runs dx buf_diff as its PATH diff (part of #13154) - #14042

Merged
TrapsterDK merged 1 commit into
mainfrom
cloud/13154
Nov 19, 2026
Merged

TrapsterDK merged 1 commit into
mainfrom
cloud/13154

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Part of #13154 (first argv[0] slice of #13770: buf diff).

  • dx buf_diff is a new multicall subcommand. //core/quality/tools/diff keeps only its lib (unified_diff::run_process); the standalone diff rust_binary is deleted.
  • The quality runner's PATH shims take leading args (PathTool { name, binary, args }; request path_tools[].args). The /bin/sh shim quotes them. The .cmd shim refuses args with spaces or cmd metacharacters.
  • real_protobuf_format takes _dx (@dx_prebuilt//:dx, exec) and passes ("diff", dx, ["buf_diff"]). buf finds diff on PATH as a shim that runs dx buf_diff. No extra copy of dx and no native launcher are needed, so a Windows host without symlinks keeps one dx.
  • The runner matrix rule gains path_tool_args. The two buf format cases run through @dx_prebuilt//:dx with buf_diff.

Still open on #13770: msvc_link_exec, ocaml_cc_driver and appimage file.

Tested: //core/quality/tools/diff:diff_test, //core/quality/runner:quality_runner_test, //core/quality/runner:matrix_harness_test, //cli/cli:dx_cli_test, //core/quality/testdata:matrix_protobuf_format_pass and //core/quality/testdata:matrix_protobuf_format_fail all passed. A build of //tools/docs/protobuf/fixture:shop_proto with real_protobuf_format_aspect analysed and built cleanly. tools/dx check --apply on the touched files passed format, lint and typecheck. Its generate phase only proposed a new core/quality/runner/src/real/BUILD.bazel, which was refused as out of scope.


Generated by Claude Code

The quality runner's PATH shims now take leading args, so buf format's
`diff` is a shim for `dx buf_diff` instead of a separate rust_binary.
The standalone //core/quality/tools/diff binary is deleted; its lib gains
run_process and joins the dx multicall.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xut2hwaXeBgTTdhK337xLR
@TrapsterDK TrapsterDK added the train Tested; land via merge train label Nov 19, 2026 — with Claude
@TrapsterDK TrapsterDK added the needs-review Touches review paths; needs a second-session Review: comment label Nov 19, 2026
@TrapsterDK
TrapsterDK merged commit bd9712d into main Nov 19, 2026
4 of 6 checks passed
@TrapsterDK
TrapsterDK deleted the cloud/13154 branch November 19, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review Touches review paths; needs a second-session Review: comment train Tested; land via merge train

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants