Skip to content

Commit 2ceb0f7

Browse files
committed
Fix the includer inserting a now dangling use_repo
1 parent c1e93dc commit 2ceb0f7

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.bcr/patches/remove_dev_deps.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
--- a/MODULE.bazel 2025-11-06 12:48:12
2-
+++ b/MODULE.bazel 2025-11-06 12:48:12
3-
@@ -40,558 +40,5 @@
1+
--- a/MODULE.bazel 2025-11-08 19:15:08
2+
+++ b/MODULE.bazel 2025-11-08 19:15:08
3+
@@ -40,558 +40,3 @@
44
# HACK: In prod the includer's patch inserts the use_repo for multitool. This
55
# solves the problem of needing a use_repo here in prod and below in dev.
66

@@ -29,7 +29,7 @@
2929
-# include("//bazel/include:release.MODULE.bazel")
3030
-# include("//bazel/include:multitool.MODULE.bazel")
3131
-# include("//bazel/include:tools.MODULE.bazel")
32-
32+
-
3333
-################################################################################
3434
-# Begin included content
3535
-
@@ -551,7 +551,7 @@
551551
-
552552
-multitool = use_extension("@rules_multitool//multitool:extension.bzl", "multitool")
553553
-multitool.hub(lockfile = "//tools:tools.lock.json")
554-
use_repo(multitool, "multitool")
554+
-use_repo(multitool, "multitool")
555555
-
556556
-########################################
557557
-# from bazel/include/tools.MODULE.bazel

tools/bazel/includer.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@
6767
fp.write(new_module_content)
6868

6969
with open(b / "MODULE.bazel", "w") as fp:
70-
fp.write(module_content[:anchor_match.start()] + """
71-
use_repo(multitool, "multitool")
72-
""")
70+
fp.write(module_content[:anchor_match.start()])
7371

7472
with open(root / ".bcr/patches/remove_dev_deps.patch", "w") as fp:
7573
# Call diff and use it to directly write the new patchfile

0 commit comments

Comments
 (0)