From 83796163cf3dec9f36ae0862fe54c0204fda4d90 Mon Sep 17 00:00:00 2001 From: hunshcn Date: Tue, 14 May 2024 14:37:57 +0800 Subject: [PATCH] Revert "remove rules_python" This reverts commit fa3b4fc472be7de01be444aa42c6cedbe40175d3. --- gazelle/BUILD.bazel | 2 +- gazelle/MODULE.bazel | 1 + gazelle/WORKSPACE | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gazelle/BUILD.bazel b/gazelle/BUILD.bazel index 2779f2c575..cbfe0f4c04 100644 --- a/gazelle/BUILD.bazel +++ b/gazelle/BUILD.bazel @@ -34,5 +34,5 @@ filegroup( "//python:distribution", "//pythonconfig:distribution", ], - visibility = ["@@//:__pkg__"], + visibility = ["@rules_python//:__pkg__"], ) diff --git a/gazelle/MODULE.bazel b/gazelle/MODULE.bazel index 52eeac6254..582e1c1728 100644 --- a/gazelle/MODULE.bazel +++ b/gazelle/MODULE.bazel @@ -5,6 +5,7 @@ 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 b4fe634b2c..5b1bb09b02 100644 --- a/gazelle/WORKSPACE +++ b/gazelle/WORKSPACE @@ -35,6 +35,11 @@ go_register_toolchains(version = "1.19.4") gazelle_dependencies() +local_repository( + name = "rules_python", + path = "..", +) + load("//:deps.bzl", _py_gazelle_deps = "gazelle_deps") # gazelle:repository_macro deps.bzl%gazelle_deps