diff --git a/WORKSPACE b/WORKSPACE index 6e9e85ac1e..7303b480f2 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -17,6 +17,14 @@ 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. +# buildifier: disable=duplicated-name +local_repository( + name = "rules_python", + path = ".", +) + load("//:internal_dev_deps.bzl", "rules_python_internal_deps") rules_python_internal_deps()