From 08b3a7afd3bac35cc354790061dc1bb6f7bb979c Mon Sep 17 00:00:00 2001 From: hunshcn Date: Tue, 14 May 2024 15:39:34 +0800 Subject: [PATCH] try remove rules_python --- gazelle/BUILD.bazel | 2 +- gazelle/MODULE.bazel | 1 - gazelle/WORKSPACE | 9 --------- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/gazelle/BUILD.bazel b/gazelle/BUILD.bazel index cbfe0f4c04..2779f2c575 100644 --- a/gazelle/BUILD.bazel +++ b/gazelle/BUILD.bazel @@ -34,5 +34,5 @@ filegroup( "//python:distribution", "//pythonconfig:distribution", ], - visibility = ["@rules_python//:__pkg__"], + visibility = ["@@//:__pkg__"], ) diff --git a/gazelle/MODULE.bazel b/gazelle/MODULE.bazel index 582e1c1728..52eeac6254 100644 --- a/gazelle/MODULE.bazel +++ b/gazelle/MODULE.bazel @@ -5,7 +5,6 @@ module( ) bazel_dep(name = "bazel_skylib", version = "1.5.0") -bazel_dep(name = "rules_python", version = "0.18.0") bazel_dep(name = "rules_go", version = "0.41.0", repo_name = "io_bazel_rules_go") bazel_dep(name = "gazelle", version = "0.33.0", repo_name = "bazel_gazelle") diff --git a/gazelle/WORKSPACE b/gazelle/WORKSPACE index f7c34f191d..b4fe634b2c 100644 --- a/gazelle/WORKSPACE +++ b/gazelle/WORKSPACE @@ -35,15 +35,6 @@ go_register_toolchains(version = "1.19.4") gazelle_dependencies() -local_repository( - name = "rules_python", - path = "..", -) - -load("@rules_python//python:repositories.bzl", "py_repositories") - -py_repositories() - load("//:deps.bzl", _py_gazelle_deps = "gazelle_deps") # gazelle:repository_macro deps.bzl%gazelle_deps