Repository navigation
prebuilt: buf format runs dx buf_diff as its PATH diff (part of #13154) - #14042
Merged
Merged
Conversation
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
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.
Part of #13154 (first argv[0] slice of #13770: buf diff).
dx buf_diffis a new multicall subcommand.//core/quality/tools/diffkeeps only its lib (unified_diff::run_process); the standalonediffrust_binary is deleted.PathTool { name, binary, args }; requestpath_tools[].args). The/bin/shshim quotes them. The.cmdshim refuses args with spaces or cmd metacharacters.real_protobuf_formattakes_dx(@dx_prebuilt//:dx, exec) and passes("diff", dx, ["buf_diff"]). buf findsdiffon PATH as a shim that runsdx buf_diff. No extra copy of dx and no native launcher are needed, so a Windows host without symlinks keeps one dx.path_tool_args. The two buf format cases run through@dx_prebuilt//:dxwithbuf_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_passand//core/quality/testdata:matrix_protobuf_format_failall passed. A build of//tools/docs/protobuf/fixture:shop_protowithreal_protobuf_format_aspectanalysed and built cleanly.tools/dx check --applyon the touched files passed format, lint and typecheck. Its generate phase only proposed a newcore/quality/runner/src/real/BUILD.bazel, which was refused as out of scope.Generated by Claude Code