From 7bfd11ab5b7c1ef3edc6ac15d3b025240fd9a12b Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Mon, 6 Jul 2026 18:10:37 +0000 Subject: [PATCH] Bump bundled buildozer 7.1.2 -> 8.5.1 for bazel mod tidy / buildifier parity `bazel mod tidy` formats MODULE.bazel via the buildozer pinned in this file (@buildozer_binary, see BazelModTidyFunction). At 7.1.2 it predates buildtools PR #1345 ("Keep include calls together in MODULE.bazel files", first shipped in buildozer v8.2.0), so it inserts a blank line between consecutive include() calls -- disagreeing with standalone buildifier 8.5.1, which keeps them compact. This makes MODULE.bazel flip-flop depending on which tool touched it last. Bumping the bundled buildozer to 8.5.1 aligns mod tidy with buildifier. Ports the intent of upstream bazelbuild/bazel #28650 (which bumped 8.2.1 -> 8.5.1 on master; the 8.x LTS line, and thus 8.7.0, was never moved past 7.1.2). NOTE: lockfiles still need regeneration (see PR description) -- buildozer 8.5.1 pulls rules_shell 0.3.0 (fork currently resolves 0.2.0), so this is a real resolution change, not a hash swap. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/MODULE.tools | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MODULE.tools b/src/MODULE.tools index 43a4e919062025..7ac6dbaf7ce17c 100644 --- a/src/MODULE.tools +++ b/src/MODULE.tools @@ -6,7 +6,7 @@ module(name = "bazel_tools") bazel_dep(name = "rules_license", version = "1.0.0") -bazel_dep(name = "buildozer", version = "7.1.2") +bazel_dep(name = "buildozer", version = "8.5.1") bazel_dep(name = "platforms", version = "0.0.11") bazel_dep(name = "zlib", version = "1.3.1.bcr.5") bazel_dep(name = "rules_proto", version = "7.0.2")