From 5b7f0039f702e655102bf762c4eb8816978dbb25 Mon Sep 17 00:00:00 2001 From: Richard Levasseur Date: Sat, 7 Dec 2024 00:49:15 -0800 Subject: [PATCH 1/2] fix: make Bazel 9 workspace builds recognize rules_python as the main repo --- WORKSPACE | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/WORKSPACE b/WORKSPACE index 6e9e85ac1e..7233e34e3d 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -17,6 +17,13 @@ workspace(name = "rules_python") # Everything below this line is used only for developing rules_python. Users # should not copy it to their WORKSPACE. +# Necessary so that Bazel 9 recognizes this as rules_python and doesn't try +# to load the version Bazel itself uses by default. +local_repository( + name = "rules_python", + path = ".", +) + load("//:internal_dev_deps.bzl", "rules_python_internal_deps") rules_python_internal_deps() From 9e6a1a7224ccaec942b67c49bda22ce3afa439c0 Mon Sep 17 00:00:00 2001 From: Richard Levasseur Date: Thu, 12 Dec 2024 16:23:23 -0800 Subject: [PATCH 2/2] suppress duplicate name lint error --- WORKSPACE | 1 + 1 file changed, 1 insertion(+) diff --git a/WORKSPACE b/WORKSPACE index 7233e34e3d..7303b480f2 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -19,6 +19,7 @@ workspace(name = "rules_python") # Necessary so that Bazel 9 recognizes this as rules_python and doesn't try # to load the version Bazel itself uses by default. +# buildifier: disable=duplicated-name local_repository( name = "rules_python", path = ".",