diff --git a/WORKSPACE b/WORKSPACE index f79703fdaa98..09abc52a0681 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -18,13 +18,6 @@ http_archive( ], ) -http_archive( - name = "rules_python", - sha256 = "5868e73107a8e85d8f323806e60cad7283f34b32163ea6ff1020cf27abef6036", - strip_prefix = "rules_python-0.25.0", - url = "https://github.com/bazelbuild/rules_python/releases/download/0.25.0/rules_python-0.25.0.tar.gz", -) - load("@rules_java//java:repositories.bzl", "rules_java_dependencies", "rules_java_toolchains") rules_java_dependencies() @@ -58,20 +51,25 @@ load("@hedron_compile_commands//:workspace_setup.bzl", "hedron_compile_commands_ hedron_compile_commands_setup() +http_archive( + name = "rules_python", + sha256 = "c68bdc4fbec25de5b5493b8819cfc877c4ea299c0dcb15c244c5a00208cde311", + strip_prefix = "rules_python-0.31.0", + url = "https://github.com/bazelbuild/rules_python/releases/download/0.31.0/rules_python-0.31.0.tar.gz", +) + load("@rules_python//python:repositories.bzl", "python_register_toolchains") python_register_toolchains( name = "python3_9", python_version = "3.9", register_toolchains = False, - ignore_root_user_error = True, ) python_register_toolchains( name = "python3_10", python_version = "3.10", register_toolchains = False, - ignore_root_user_error = True, ) load("@python3_9//:defs.bzl", python39 = "interpreter")