From d001cdfe9e6a78c4713055ccc1b1830eb37225bb Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Wed, 30 Oct 2024 12:51:30 -0700 Subject: [PATCH] Allow `external` top-level dir in Bzlmod-managed non-main repos Also remove an unused method. RELNOTES: External repositories that are managed by Bzlmod can now contain a top-level `external` directory or package. Closes #24126. PiperOrigin-RevId: 691521324 Change-Id: I84d11f2163ce5a6e34578afb6a2cc9793d78f0b1 --- .../devtools/build/lib/cmdline/Label.java | 18 ++-- .../build/lib/cmdline/RepositoryName.java | 14 --- .../lib/skyframe/ProcessPackageDirectory.java | 8 +- .../lib/analysis/util/BuildViewTestCase.java | 8 +- .../shell/bazel/external_integration_test.sh | 102 ++++++++++++++++++ 5 files changed, 120 insertions(+), 30 deletions(-) diff --git a/src/main/java/com/google/devtools/build/lib/cmdline/Label.java b/src/main/java/com/google/devtools/build/lib/cmdline/Label.java index e8e1c062e485b8..6f5c7fff99bbeb 100644 --- a/src/main/java/com/google/devtools/build/lib/cmdline/Label.java +++ b/src/main/java/com/google/devtools/build/lib/cmdline/Label.java @@ -96,9 +96,7 @@ public final class Label implements Comparable