From 0a1955d9b353430e46bb44617d1b7fffd9e3ab3d Mon Sep 17 00:00:00 2001 From: Arya McCarthy Date: Wed, 10 Jan 2024 16:27:57 -0800 Subject: [PATCH 1/5] Cease write narrow visibilities --- gazelle/python/generate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gazelle/python/generate.go b/gazelle/python/generate.go index ba273be2b7..4f78c4aaa4 100644 --- a/gazelle/python/generate.go +++ b/gazelle/python/generate.go @@ -212,7 +212,7 @@ func (py *Python) GenerateRules(args language.GenerateArgs) language.GenerateRes } parser := newPython3Parser(args.Config.RepoRoot, args.Rel, cfg.IgnoresDependency) - visibility := fmt.Sprintf("//%s:__subpackages__", pythonProjectRoot) + visibility := "//visibility:public" var result language.GenerateResult result.Gen = make([]*rule.Rule, 0) From 7d740aa43b457197f0c16311438761fae38fe8a7 Mon Sep 17 00:00:00 2001 From: Arya McCarthy Date: Wed, 10 Jan 2024 17:58:54 -0800 Subject: [PATCH 2/5] Update generate.go --- gazelle/python/generate.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gazelle/python/generate.go b/gazelle/python/generate.go index 4f78c4aaa4..84dfa66c63 100644 --- a/gazelle/python/generate.go +++ b/gazelle/python/generate.go @@ -212,7 +212,7 @@ func (py *Python) GenerateRules(args language.GenerateArgs) language.GenerateRes } parser := newPython3Parser(args.Config.RepoRoot, args.Rel, cfg.IgnoresDependency) - visibility := "//visibility:public" + visibility := fmt.Sprintf("//%s:__subpackages__", pythonProjectRoot) var result language.GenerateResult result.Gen = make([]*rule.Rule, 0) @@ -247,7 +247,6 @@ func (py *Python) GenerateRules(args language.GenerateArgs) language.GenerateRes continue } pyBinary := newTargetBuilder(pyBinaryKind, pyBinaryTargetName, pythonProjectRoot, args.Rel, pyFileNames). - addVisibility(visibility). addSrc(filename). addModuleDependencies(mainModules[filename]). generateImportsAttribute().build() @@ -274,7 +273,6 @@ func (py *Python) GenerateRules(args language.GenerateArgs) language.GenerateRes } pyLibrary := newTargetBuilder(pyLibraryKind, pyLibraryTargetName, pythonProjectRoot, args.Rel, pyFileNames). - addVisibility(visibility). addSrcs(srcs). addModuleDependencies(allDeps). generateImportsAttribute(). @@ -322,7 +320,6 @@ func (py *Python) GenerateRules(args language.GenerateArgs) language.GenerateRes pyBinaryTarget := newTargetBuilder(pyBinaryKind, pyBinaryTargetName, pythonProjectRoot, args.Rel, pyFileNames). setMain(pyBinaryEntrypointFilename). - addVisibility(visibility). addSrc(pyBinaryEntrypointFilename). addModuleDependencies(deps). generateImportsAttribute() @@ -354,7 +351,6 @@ func (py *Python) GenerateRules(args language.GenerateArgs) language.GenerateRes conftestTarget := newTargetBuilder(pyLibraryKind, conftestTargetname, pythonProjectRoot, args.Rel, pyFileNames). addSrc(conftestFilename). addModuleDependencies(deps). - addVisibility(visibility). setTestonly(). generateImportsAttribute() From 11640e32e355bb8418483a2eaa6ae5eacf129fec Mon Sep 17 00:00:00 2001 From: Arya McCarthy Date: Wed, 10 Jan 2024 18:10:24 -0800 Subject: [PATCH 3/5] Fix unused var issue --- gazelle/python/generate.go | 1 - 1 file changed, 1 deletion(-) diff --git a/gazelle/python/generate.go b/gazelle/python/generate.go index 84dfa66c63..96aee4a599 100644 --- a/gazelle/python/generate.go +++ b/gazelle/python/generate.go @@ -212,7 +212,6 @@ func (py *Python) GenerateRules(args language.GenerateArgs) language.GenerateRes } parser := newPython3Parser(args.Config.RepoRoot, args.Rel, cfg.IgnoresDependency) - visibility := fmt.Sprintf("//%s:__subpackages__", pythonProjectRoot) var result language.GenerateResult result.Gen = make([]*rule.Rule, 0) From 4f31891add826bc64a2fdd47db2aa214037a3edb Mon Sep 17 00:00:00 2001 From: Arya McCarthy Date: Thu, 11 Jan 2024 16:01:17 -0800 Subject: [PATCH 4/5] Update tests to match new visibility behavior --- .../binary_without_entrypoint/BUILD.out | 5 +- .../BUILD.out | 5 - .../dependency_resolution_order/BUILD.out | 1 - .../dependency_resolution_order/bar/BUILD.out | 1 - .../dependency_resolution_order/baz/BUILD.out | 1 - .../dependency_resolution_order/foo/BUILD.out | 1 - .../somewhere/bar/BUILD.out | 1 - .../BUILD.out | 1 - .../testdata/dont_rename_target/BUILD.out | 1 - .../BUILD.out | 1 - .../first_party_dependencies/one/BUILD.out | 1 - .../first_party_dependencies/three/BUILD.out | 1 - .../first_party_dependencies/two/BUILD.out | 1 - .../BUILD.out | 2 - .../foo/BUILD.out | 1 - .../one/BUILD.out | 1 - .../testdata/from_imports/foo/BUILD.out | 1 - .../testdata/from_imports/foo/bar/BUILD.out | 2 +- .../import_from_init_py/BUILD.out | 3 +- .../import_from_multiple/BUILD.out | 3 +- .../from_imports/import_nested_file/BUILD.out | 3 +- .../import_nested_module/BUILD.out | 3 +- .../from_imports/import_nested_var/BUILD.out | 3 +- .../import_top_level_var/BUILD.out | 3 +- .../from_imports/std_module/BUILD.out | 3 +- .../generated_test_entrypoint/BUILD.out | 1 - .../ignored_invalid_imported_module/BUILD.out | 1 - .../coarse_grained/_boundary/BUILD.out | 1 - .../python/testdata/monorepo/one/BUILD.out | 1 - .../python/testdata/monorepo/three/BUILD.out | 1 - .../python/testdata/monorepo/two/BUILD.out | 1 - .../testdata/naming_convention/BUILD.out | 2 - .../naming_convention/dont_rename/BUILD.out | 1 - .../resolve_conflict/BUILD.out | 2 - gazelle/python/testdata/per_file/BUILD.out | 2 - gazelle/python/testdata/per_file/MODULE.bazel | 6 + .../testdata/per_file/MODULE.bazel.lock | 624 ++++++++++++++++++ .../per_file_non_empty_init/BUILD.out | 2 - .../testdata/per_file_subdirs/BUILD.out | 1 - .../testdata/per_file_subdirs/bar/BUILD.out | 3 - .../BUILD.out | 1 - .../python_ignore_files_directive/BUILD.out | 1 - .../bar/BUILD.out | 1 - .../python_target_with_test_in_name/BUILD.out | 1 - .../testdata/relative_imports/BUILD.out | 2 - .../relative_imports/package2/BUILD.out | 1 - .../testdata/respect_kind_mapping/BUILD.out | 1 - .../testdata/sibling_imports/pkg/BUILD.out | 1 - .../python/testdata/simple_binary/BUILD.out | 1 - .../simple_binary_with_library/BUILD.out | 2 - .../python/testdata/simple_library/BUILD.out | 1 - .../simple_library_without_init/foo/BUILD.out | 1 - gazelle/python/testdata/simple_test/BUILD.out | 1 - .../simple_test_with_conftest/BUILD.out | 2 - .../simple_test_with_conftest/bar/BUILD.out | 2 - .../python/testdata/subdir_sources/BUILD.out | 1 - .../testdata/subdir_sources/foo/BUILD.out | 1 - .../subdir_sources/foo/has_build/BUILD.out | 1 - .../subdir_sources/foo/has_init/BUILD.out | 1 - .../subdir_sources/foo/has_main/BUILD.out | 2 - .../subdir_sources/foo/has_test/BUILD.out | 1 - .../testdata/subdir_sources/one/BUILD.out | 1 - .../testdata/subdir_sources/one/two/BUILD.out | 1 - .../with_nested_import_statements/BUILD.out | 1 - .../testdata/with_std_requirements/BUILD.out | 1 - .../with_third_party_requirements/BUILD.out | 2 - .../BUILD.out | 2 - 67 files changed, 639 insertions(+), 93 deletions(-) create mode 100644 gazelle/python/testdata/per_file/MODULE.bazel create mode 100644 gazelle/python/testdata/per_file/MODULE.bazel.lock diff --git a/gazelle/python/testdata/binary_without_entrypoint/BUILD.out b/gazelle/python/testdata/binary_without_entrypoint/BUILD.out index 9af815286b..a6ab7ec13f 100644 --- a/gazelle/python/testdata/binary_without_entrypoint/BUILD.out +++ b/gazelle/python/testdata/binary_without_entrypoint/BUILD.out @@ -12,7 +12,6 @@ filegroup( py_binary( name = "main", srcs = ["main.py"], - visibility = ["//:__subpackages__"], deps = [ ":py_default_library", "@pip//:pandas", @@ -22,7 +21,6 @@ py_binary( py_binary( name = "main2", srcs = ["main2.py"], - visibility = ["//:__subpackages__"], deps = [":py_default_library"], ) @@ -34,7 +32,6 @@ py_library( "main.py", "main2.py", ], - visibility = ["//:__subpackages__"], deps = [ "@pip//:numpy", "@pip//:pandas", @@ -44,4 +41,4 @@ py_library( py_test( name = "main_test", srcs = ["main_test.py"], -) \ No newline at end of file +) diff --git a/gazelle/python/testdata/binary_without_entrypoint_per_file_generation/BUILD.out b/gazelle/python/testdata/binary_without_entrypoint_per_file_generation/BUILD.out index bffedb1e27..eda2b76c3e 100644 --- a/gazelle/python/testdata/binary_without_entrypoint_per_file_generation/BUILD.out +++ b/gazelle/python/testdata/binary_without_entrypoint_per_file_generation/BUILD.out @@ -8,7 +8,6 @@ load("@rules_python//python:defs.bzl", "py_binary", "py_library") py_library( name = "lib", srcs = ["lib.py"], - visibility = ["//:__subpackages__"], deps = [ "@pip//:numpy", "@pip//:pandas", @@ -18,7 +17,6 @@ py_library( py_library( name = "lib2", srcs = ["lib2.py"], - visibility = ["//:__subpackages__"], deps = [ ":lib", ":lib_and_main", @@ -28,19 +26,16 @@ py_library( py_binary( name = "lib_and_main", srcs = ["lib_and_main.py"], - visibility = ["//:__subpackages__"], ) py_binary( name = "main", srcs = ["main.py"], - visibility = ["//:__subpackages__"], deps = ["@pip//:pandas"], ) py_binary( name = "main2", srcs = ["main2.py"], - visibility = ["//:__subpackages__"], deps = [":lib2"], ) diff --git a/gazelle/python/testdata/dependency_resolution_order/BUILD.out b/gazelle/python/testdata/dependency_resolution_order/BUILD.out index eebe6c3524..28f6a4ba15 100644 --- a/gazelle/python/testdata/dependency_resolution_order/BUILD.out +++ b/gazelle/python/testdata/dependency_resolution_order/BUILD.out @@ -5,7 +5,6 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "dependency_resolution_order", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], deps = [ "//baz", "//somewhere/bar", diff --git a/gazelle/python/testdata/dependency_resolution_order/bar/BUILD.out b/gazelle/python/testdata/dependency_resolution_order/bar/BUILD.out index 52914718e4..53dad94836 100644 --- a/gazelle/python/testdata/dependency_resolution_order/bar/BUILD.out +++ b/gazelle/python/testdata/dependency_resolution_order/bar/BUILD.out @@ -3,5 +3,4 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "bar", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], ) diff --git a/gazelle/python/testdata/dependency_resolution_order/baz/BUILD.out b/gazelle/python/testdata/dependency_resolution_order/baz/BUILD.out index fadf5c1521..940c46589a 100644 --- a/gazelle/python/testdata/dependency_resolution_order/baz/BUILD.out +++ b/gazelle/python/testdata/dependency_resolution_order/baz/BUILD.out @@ -3,5 +3,4 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "baz", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], ) diff --git a/gazelle/python/testdata/dependency_resolution_order/foo/BUILD.out b/gazelle/python/testdata/dependency_resolution_order/foo/BUILD.out index 58498ee3b3..feeebfd68d 100644 --- a/gazelle/python/testdata/dependency_resolution_order/foo/BUILD.out +++ b/gazelle/python/testdata/dependency_resolution_order/foo/BUILD.out @@ -3,5 +3,4 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "foo", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], ) diff --git a/gazelle/python/testdata/dependency_resolution_order/somewhere/bar/BUILD.out b/gazelle/python/testdata/dependency_resolution_order/somewhere/bar/BUILD.out index 52914718e4..53dad94836 100644 --- a/gazelle/python/testdata/dependency_resolution_order/somewhere/bar/BUILD.out +++ b/gazelle/python/testdata/dependency_resolution_order/somewhere/bar/BUILD.out @@ -3,5 +3,4 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "bar", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], ) diff --git a/gazelle/python/testdata/disable_import_statements_validation/BUILD.out b/gazelle/python/testdata/disable_import_statements_validation/BUILD.out index 964db6d484..b17887e1e3 100644 --- a/gazelle/python/testdata/disable_import_statements_validation/BUILD.out +++ b/gazelle/python/testdata/disable_import_statements_validation/BUILD.out @@ -5,5 +5,4 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "disable_import_statements_validation", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], ) diff --git a/gazelle/python/testdata/dont_rename_target/BUILD.out b/gazelle/python/testdata/dont_rename_target/BUILD.out index 62772e30b5..e9bc0e6e29 100644 --- a/gazelle/python/testdata/dont_rename_target/BUILD.out +++ b/gazelle/python/testdata/dont_rename_target/BUILD.out @@ -3,5 +3,4 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "my_custom_target", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], ) diff --git a/gazelle/python/testdata/file_name_matches_import_statement/BUILD.out b/gazelle/python/testdata/file_name_matches_import_statement/BUILD.out index ae1ba81ddb..4b486d5dbb 100644 --- a/gazelle/python/testdata/file_name_matches_import_statement/BUILD.out +++ b/gazelle/python/testdata/file_name_matches_import_statement/BUILD.out @@ -6,6 +6,5 @@ py_library( "__init__.py", "rest_framework.py", ], - visibility = ["//:__subpackages__"], deps = ["@gazelle_python_test//djangorestframework"], ) diff --git a/gazelle/python/testdata/first_party_dependencies/one/BUILD.out b/gazelle/python/testdata/first_party_dependencies/one/BUILD.out index c96a56106d..3e16fc04f8 100644 --- a/gazelle/python/testdata/first_party_dependencies/one/BUILD.out +++ b/gazelle/python/testdata/first_party_dependencies/one/BUILD.out @@ -6,7 +6,6 @@ py_binary( name = "one_bin", srcs = ["__main__.py"], main = "__main__.py", - visibility = ["//one:__subpackages__"], deps = [ "//one/bar", "//one/bar/baz", diff --git a/gazelle/python/testdata/first_party_dependencies/three/BUILD.out b/gazelle/python/testdata/first_party_dependencies/three/BUILD.out index ccfb3e0c08..6bdbc89fcd 100644 --- a/gazelle/python/testdata/first_party_dependencies/three/BUILD.out +++ b/gazelle/python/testdata/first_party_dependencies/three/BUILD.out @@ -5,7 +5,6 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "three", srcs = ["__init__.py"], - visibility = ["//three:__subpackages__"], deps = [ "//one/bar", "//one/bar/baz", diff --git a/gazelle/python/testdata/first_party_dependencies/two/BUILD.out b/gazelle/python/testdata/first_party_dependencies/two/BUILD.out index 182db08f0e..e2dba97f08 100644 --- a/gazelle/python/testdata/first_party_dependencies/two/BUILD.out +++ b/gazelle/python/testdata/first_party_dependencies/two/BUILD.out @@ -5,6 +5,5 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "two", srcs = ["__init__.py"], - visibility = ["//two:__subpackages__"], deps = ["//one/foo"], ) diff --git a/gazelle/python/testdata/first_party_file_and_directory_modules/BUILD.out b/gazelle/python/testdata/first_party_file_and_directory_modules/BUILD.out index 264205b964..f60751b83e 100644 --- a/gazelle/python/testdata/first_party_file_and_directory_modules/BUILD.out +++ b/gazelle/python/testdata/first_party_file_and_directory_modules/BUILD.out @@ -8,14 +8,12 @@ py_library( "baz.py", "foo.py", ], - visibility = ["//:__subpackages__"], ) py_binary( name = "first_party_file_and_directory_modules_bin", srcs = ["__main__.py"], main = "__main__.py", - visibility = ["//:__subpackages__"], deps = [ ":first_party_file_and_directory_modules", "//foo", diff --git a/gazelle/python/testdata/first_party_file_and_directory_modules/foo/BUILD.out b/gazelle/python/testdata/first_party_file_and_directory_modules/foo/BUILD.out index 8c54e3c671..a5a284eb28 100644 --- a/gazelle/python/testdata/first_party_file_and_directory_modules/foo/BUILD.out +++ b/gazelle/python/testdata/first_party_file_and_directory_modules/foo/BUILD.out @@ -6,6 +6,5 @@ py_library( "__init__.py", "bar.py", ], - visibility = ["//:__subpackages__"], deps = ["//one"], ) diff --git a/gazelle/python/testdata/first_party_file_and_directory_modules/one/BUILD.out b/gazelle/python/testdata/first_party_file_and_directory_modules/one/BUILD.out index 3ae64b6471..d8128770d8 100644 --- a/gazelle/python/testdata/first_party_file_and_directory_modules/one/BUILD.out +++ b/gazelle/python/testdata/first_party_file_and_directory_modules/one/BUILD.out @@ -6,5 +6,4 @@ py_library( "__init__.py", "two.py", ], - visibility = ["//:__subpackages__"], ) diff --git a/gazelle/python/testdata/from_imports/foo/BUILD.out b/gazelle/python/testdata/from_imports/foo/BUILD.out index 58498ee3b3..feeebfd68d 100644 --- a/gazelle/python/testdata/from_imports/foo/BUILD.out +++ b/gazelle/python/testdata/from_imports/foo/BUILD.out @@ -3,5 +3,4 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "foo", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], ) diff --git a/gazelle/python/testdata/from_imports/foo/bar/BUILD.out b/gazelle/python/testdata/from_imports/foo/bar/BUILD.out index fbbec0284b..77c5c43dc6 100644 --- a/gazelle/python/testdata/from_imports/foo/bar/BUILD.out +++ b/gazelle/python/testdata/from_imports/foo/bar/BUILD.out @@ -18,4 +18,4 @@ py_library( ], imports = ["../.."], visibility = ["//:__subpackages__"], -) \ No newline at end of file +) diff --git a/gazelle/python/testdata/from_imports/import_from_init_py/BUILD.out b/gazelle/python/testdata/from_imports/import_from_init_py/BUILD.out index 8098aa7c7c..d4a8900a8e 100644 --- a/gazelle/python/testdata/from_imports/import_from_init_py/BUILD.out +++ b/gazelle/python/testdata/from_imports/import_from_init_py/BUILD.out @@ -3,6 +3,5 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "import_from_init_py", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], deps = ["//foo/bar"], -) \ No newline at end of file +) diff --git a/gazelle/python/testdata/from_imports/import_from_multiple/BUILD.out b/gazelle/python/testdata/from_imports/import_from_multiple/BUILD.out index f5e113bfe3..30421985e6 100644 --- a/gazelle/python/testdata/from_imports/import_from_multiple/BUILD.out +++ b/gazelle/python/testdata/from_imports/import_from_multiple/BUILD.out @@ -3,9 +3,8 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "import_from_multiple", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], deps = [ "//foo/bar", "//foo/bar:baz", ], -) \ No newline at end of file +) diff --git a/gazelle/python/testdata/from_imports/import_nested_file/BUILD.out b/gazelle/python/testdata/from_imports/import_nested_file/BUILD.out index 930216bcb0..492f8b8973 100644 --- a/gazelle/python/testdata/from_imports/import_nested_file/BUILD.out +++ b/gazelle/python/testdata/from_imports/import_nested_file/BUILD.out @@ -3,6 +3,5 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "import_nested_file", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], deps = ["//foo/bar:baz"], -) \ No newline at end of file +) diff --git a/gazelle/python/testdata/from_imports/import_nested_module/BUILD.out b/gazelle/python/testdata/from_imports/import_nested_module/BUILD.out index 51d3b8c260..be8836f2bd 100644 --- a/gazelle/python/testdata/from_imports/import_nested_module/BUILD.out +++ b/gazelle/python/testdata/from_imports/import_nested_module/BUILD.out @@ -3,6 +3,5 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "import_nested_module", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], deps = ["//foo/bar"], -) \ No newline at end of file +) diff --git a/gazelle/python/testdata/from_imports/import_nested_var/BUILD.out b/gazelle/python/testdata/from_imports/import_nested_var/BUILD.out index 2129c32009..ea5d327949 100644 --- a/gazelle/python/testdata/from_imports/import_nested_var/BUILD.out +++ b/gazelle/python/testdata/from_imports/import_nested_var/BUILD.out @@ -3,6 +3,5 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "import_nested_var", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], deps = ["//foo/bar:baz"], -) \ No newline at end of file +) diff --git a/gazelle/python/testdata/from_imports/import_top_level_var/BUILD.out b/gazelle/python/testdata/from_imports/import_top_level_var/BUILD.out index c8ef6f4817..e5dccadf4d 100644 --- a/gazelle/python/testdata/from_imports/import_top_level_var/BUILD.out +++ b/gazelle/python/testdata/from_imports/import_top_level_var/BUILD.out @@ -3,6 +3,5 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "import_top_level_var", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], deps = ["//foo"], -) \ No newline at end of file +) diff --git a/gazelle/python/testdata/from_imports/std_module/BUILD.out b/gazelle/python/testdata/from_imports/std_module/BUILD.out index b3597a9a1a..14abdbd49f 100644 --- a/gazelle/python/testdata/from_imports/std_module/BUILD.out +++ b/gazelle/python/testdata/from_imports/std_module/BUILD.out @@ -3,5 +3,4 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "std_module", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], -) \ No newline at end of file +) diff --git a/gazelle/python/testdata/generated_test_entrypoint/BUILD.out b/gazelle/python/testdata/generated_test_entrypoint/BUILD.out index e8e304c72b..e25c439acb 100644 --- a/gazelle/python/testdata/generated_test_entrypoint/BUILD.out +++ b/gazelle/python/testdata/generated_test_entrypoint/BUILD.out @@ -10,7 +10,6 @@ py_library( "__init__.py", "foo.py", ], - visibility = ["//:__subpackages__"], ) py_test( diff --git a/gazelle/python/testdata/ignored_invalid_imported_module/BUILD.out b/gazelle/python/testdata/ignored_invalid_imported_module/BUILD.out index 4744166f17..4bf381fef6 100644 --- a/gazelle/python/testdata/ignored_invalid_imported_module/BUILD.out +++ b/gazelle/python/testdata/ignored_invalid_imported_module/BUILD.out @@ -3,6 +3,5 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "ignored_invalid_imported_module", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], deps = ["@gazelle_python_test//foo"], ) diff --git a/gazelle/python/testdata/monorepo/coarse_grained/_boundary/BUILD.out b/gazelle/python/testdata/monorepo/coarse_grained/_boundary/BUILD.out index 837e59f99e..b8ab065d52 100644 --- a/gazelle/python/testdata/monorepo/coarse_grained/_boundary/BUILD.out +++ b/gazelle/python/testdata/monorepo/coarse_grained/_boundary/BUILD.out @@ -6,5 +6,4 @@ py_library( name = "_boundary", srcs = ["__init__.py"], imports = [".."], - visibility = ["//coarse_grained:__subpackages__"], ) diff --git a/gazelle/python/testdata/monorepo/one/BUILD.out b/gazelle/python/testdata/monorepo/one/BUILD.out index af11746b9e..012a3eac64 100644 --- a/gazelle/python/testdata/monorepo/one/BUILD.out +++ b/gazelle/python/testdata/monorepo/one/BUILD.out @@ -7,7 +7,6 @@ py_binary( name = "one_bin", srcs = ["__main__.py"], main = "__main__.py", - visibility = ["//one:__subpackages__"], deps = [ "//one/bar", "//one/bar/baz:modified_name_baz", diff --git a/gazelle/python/testdata/monorepo/three/BUILD.out b/gazelle/python/testdata/monorepo/three/BUILD.out index 2620d70d27..e16faff0e5 100644 --- a/gazelle/python/testdata/monorepo/three/BUILD.out +++ b/gazelle/python/testdata/monorepo/three/BUILD.out @@ -9,7 +9,6 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "three", srcs = ["__init__.py"], - visibility = ["//three:__subpackages__"], deps = [ "//coarse_grained", "//one/bar", diff --git a/gazelle/python/testdata/monorepo/two/BUILD.out b/gazelle/python/testdata/monorepo/two/BUILD.out index cf22945a56..32ccf18fd0 100644 --- a/gazelle/python/testdata/monorepo/two/BUILD.out +++ b/gazelle/python/testdata/monorepo/two/BUILD.out @@ -7,7 +7,6 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "two", srcs = ["__init__.py"], - visibility = ["//two:__subpackages__"], deps = [ "//one/foo", "@two_pip_deps//twoboto3", diff --git a/gazelle/python/testdata/naming_convention/BUILD.out b/gazelle/python/testdata/naming_convention/BUILD.out index e2f067489c..56f2bb77ba 100644 --- a/gazelle/python/testdata/naming_convention/BUILD.out +++ b/gazelle/python/testdata/naming_convention/BUILD.out @@ -7,14 +7,12 @@ load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test") py_library( name = "my_naming_convention_library", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], ) py_binary( name = "my_naming_convention_binary", srcs = ["__main__.py"], main = "__main__.py", - visibility = ["//:__subpackages__"], deps = [":my_naming_convention_library"], ) diff --git a/gazelle/python/testdata/naming_convention/dont_rename/BUILD.out b/gazelle/python/testdata/naming_convention/dont_rename/BUILD.out index 8d418bec52..0a2dfbfdf6 100644 --- a/gazelle/python/testdata/naming_convention/dont_rename/BUILD.out +++ b/gazelle/python/testdata/naming_convention/dont_rename/BUILD.out @@ -10,7 +10,6 @@ py_binary( name = "my_dont_rename_binary", srcs = ["__main__.py"], main = "__main__.py", - visibility = ["//:__subpackages__"], deps = [":dont_rename"], ) diff --git a/gazelle/python/testdata/naming_convention/resolve_conflict/BUILD.out b/gazelle/python/testdata/naming_convention/resolve_conflict/BUILD.out index e155fa60c5..cb8680d076 100644 --- a/gazelle/python/testdata/naming_convention/resolve_conflict/BUILD.out +++ b/gazelle/python/testdata/naming_convention/resolve_conflict/BUILD.out @@ -9,14 +9,12 @@ go_test(name = "resolve_conflict_test") py_library( name = "my_resolve_conflict_library", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], ) py_binary( name = "my_resolve_conflict_binary", srcs = ["__main__.py"], main = "__main__.py", - visibility = ["//:__subpackages__"], deps = [":my_resolve_conflict_library"], ) diff --git a/gazelle/python/testdata/per_file/BUILD.out b/gazelle/python/testdata/per_file/BUILD.out index 6deada8e4e..806cd262e5 100644 --- a/gazelle/python/testdata/per_file/BUILD.out +++ b/gazelle/python/testdata/per_file/BUILD.out @@ -13,13 +13,11 @@ py_library( py_library( name = "baz", srcs = ["baz.py"], - visibility = ["//:__subpackages__"], ) py_library( name = "foo", srcs = ["foo.py"], - visibility = ["//:__subpackages__"], deps = [":custom"], ) diff --git a/gazelle/python/testdata/per_file/MODULE.bazel b/gazelle/python/testdata/per_file/MODULE.bazel new file mode 100644 index 0000000000..00bb18361f --- /dev/null +++ b/gazelle/python/testdata/per_file/MODULE.bazel @@ -0,0 +1,6 @@ +############################################################################### +# Bazel now uses Bzlmod by default to manage external dependencies. +# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel. +# +# For more details, please check https://github.com/bazelbuild/bazel/issues/18958 +############################################################################### diff --git a/gazelle/python/testdata/per_file/MODULE.bazel.lock b/gazelle/python/testdata/per_file/MODULE.bazel.lock new file mode 100644 index 0000000000..7266ea0556 --- /dev/null +++ b/gazelle/python/testdata/per_file/MODULE.bazel.lock @@ -0,0 +1,624 @@ +{ + "lockFileVersion": 3, + "moduleFileHash": "0e3e315145ac7ee7a4e0ac825e1c5e03c068ec1254dd42c3caaecb27e921dc4d", + "flags": { + "cmdRegistries": [ + "https://bcr.bazel.build/" + ], + "cmdModuleOverrides": {}, + "allowedYankedVersions": [], + "envVarAllowedYankedVersions": "", + "ignoreDevDependency": false, + "directDependenciesMode": "WARNING", + "compatibilityMode": "ERROR" + }, + "localOverrideHashes": { + "bazel_tools": "922ea6752dc9105de5af957f7a99a6933c0a6a712d23df6aad16a9c399f7e787" + }, + "moduleDepGraph": { + "": { + "name": "", + "version": "", + "key": "", + "repoName": "", + "executionPlatformsToRegister": [], + "toolchainsToRegister": [], + "extensionUsages": [], + "deps": { + "bazel_tools": "bazel_tools@_", + "local_config_platform": "local_config_platform@_" + } + }, + "bazel_tools@_": { + "name": "bazel_tools", + "version": "", + "key": "bazel_tools@_", + "repoName": "bazel_tools", + "executionPlatformsToRegister": [], + "toolchainsToRegister": [ + "@local_config_cc_toolchains//:all", + "@local_config_sh//:local_sh_toolchain" + ], + "extensionUsages": [ + { + "extensionBzlFile": "@bazel_tools//tools/cpp:cc_configure.bzl", + "extensionName": "cc_configure_extension", + "usingModule": "bazel_tools@_", + "location": { + "file": "@@bazel_tools//:MODULE.bazel", + "line": 17, + "column": 29 + }, + "imports": { + "local_config_cc": "local_config_cc", + "local_config_cc_toolchains": "local_config_cc_toolchains" + }, + "devImports": [], + "tags": [], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + }, + { + "extensionBzlFile": "@bazel_tools//tools/osx:xcode_configure.bzl", + "extensionName": "xcode_configure_extension", + "usingModule": "bazel_tools@_", + "location": { + "file": "@@bazel_tools//:MODULE.bazel", + "line": 21, + "column": 32 + }, + "imports": { + "local_config_xcode": "local_config_xcode" + }, + "devImports": [], + "tags": [], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + }, + { + "extensionBzlFile": "@rules_java//java:extensions.bzl", + "extensionName": "toolchains", + "usingModule": "bazel_tools@_", + "location": { + "file": "@@bazel_tools//:MODULE.bazel", + "line": 24, + "column": 32 + }, + "imports": { + "local_jdk": "local_jdk", + "remote_java_tools": "remote_java_tools", + "remote_java_tools_linux": "remote_java_tools_linux", + "remote_java_tools_windows": "remote_java_tools_windows", + "remote_java_tools_darwin_x86_64": "remote_java_tools_darwin_x86_64", + "remote_java_tools_darwin_arm64": "remote_java_tools_darwin_arm64" + }, + "devImports": [], + "tags": [], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + }, + { + "extensionBzlFile": "@bazel_tools//tools/sh:sh_configure.bzl", + "extensionName": "sh_configure_extension", + "usingModule": "bazel_tools@_", + "location": { + "file": "@@bazel_tools//:MODULE.bazel", + "line": 35, + "column": 39 + }, + "imports": { + "local_config_sh": "local_config_sh" + }, + "devImports": [], + "tags": [], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + }, + { + "extensionBzlFile": "@bazel_tools//tools/test:extensions.bzl", + "extensionName": "remote_coverage_tools_extension", + "usingModule": "bazel_tools@_", + "location": { + "file": "@@bazel_tools//:MODULE.bazel", + "line": 39, + "column": 48 + }, + "imports": { + "remote_coverage_tools": "remote_coverage_tools" + }, + "devImports": [], + "tags": [], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + }, + { + "extensionBzlFile": "@bazel_tools//tools/android:android_extensions.bzl", + "extensionName": "remote_android_tools_extensions", + "usingModule": "bazel_tools@_", + "location": { + "file": "@@bazel_tools//:MODULE.bazel", + "line": 42, + "column": 42 + }, + "imports": { + "android_gmaven_r8": "android_gmaven_r8", + "android_tools": "android_tools" + }, + "devImports": [], + "tags": [], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + } + ], + "deps": { + "rules_cc": "rules_cc@0.0.9", + "rules_java": "rules_java@7.1.0", + "rules_license": "rules_license@0.0.7", + "rules_proto": "rules_proto@4.0.0", + "rules_python": "rules_python@0.4.0", + "platforms": "platforms@0.0.7", + "com_google_protobuf": "protobuf@3.19.6", + "zlib": "zlib@1.3", + "build_bazel_apple_support": "apple_support@1.5.0", + "local_config_platform": "local_config_platform@_" + } + }, + "local_config_platform@_": { + "name": "local_config_platform", + "version": "", + "key": "local_config_platform@_", + "repoName": "local_config_platform", + "executionPlatformsToRegister": [], + "toolchainsToRegister": [], + "extensionUsages": [], + "deps": { + "platforms": "platforms@0.0.7", + "bazel_tools": "bazel_tools@_" + } + }, + "rules_cc@0.0.9": { + "name": "rules_cc", + "version": "0.0.9", + "key": "rules_cc@0.0.9", + "repoName": "rules_cc", + "executionPlatformsToRegister": [], + "toolchainsToRegister": [ + "@local_config_cc_toolchains//:all" + ], + "extensionUsages": [ + { + "extensionBzlFile": "@bazel_tools//tools/cpp:cc_configure.bzl", + "extensionName": "cc_configure_extension", + "usingModule": "rules_cc@0.0.9", + "location": { + "file": "https://bcr.bazel.build/modules/rules_cc/0.0.9/MODULE.bazel", + "line": 9, + "column": 29 + }, + "imports": { + "local_config_cc_toolchains": "local_config_cc_toolchains" + }, + "devImports": [], + "tags": [], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + } + ], + "deps": { + "platforms": "platforms@0.0.7", + "bazel_tools": "bazel_tools@_", + "local_config_platform": "local_config_platform@_" + }, + "repoSpec": { + "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "name": "rules_cc~0.0.9", + "urls": [ + "https://github.com/bazelbuild/rules_cc/releases/download/0.0.9/rules_cc-0.0.9.tar.gz" + ], + "integrity": "sha256-IDeHW5pEVtzkp50RKorohbvEqtlo5lh9ym5k86CQDN8=", + "strip_prefix": "rules_cc-0.0.9", + "remote_patches": { + "https://bcr.bazel.build/modules/rules_cc/0.0.9/patches/module_dot_bazel_version.patch": "sha256-mM+qzOI0SgAdaJBlWOSMwMPKpaA9b7R37Hj/tp5bb4g=" + }, + "remote_patch_strip": 0 + } + } + }, + "rules_java@7.1.0": { + "name": "rules_java", + "version": "7.1.0", + "key": "rules_java@7.1.0", + "repoName": "rules_java", + "executionPlatformsToRegister": [], + "toolchainsToRegister": [ + "//toolchains:all", + "@local_jdk//:runtime_toolchain_definition", + "@local_jdk//:bootstrap_runtime_toolchain_definition", + "@remotejdk11_linux_toolchain_config_repo//:all", + "@remotejdk11_linux_aarch64_toolchain_config_repo//:all", + "@remotejdk11_linux_ppc64le_toolchain_config_repo//:all", + "@remotejdk11_linux_s390x_toolchain_config_repo//:all", + "@remotejdk11_macos_toolchain_config_repo//:all", + "@remotejdk11_macos_aarch64_toolchain_config_repo//:all", + "@remotejdk11_win_toolchain_config_repo//:all", + "@remotejdk11_win_arm64_toolchain_config_repo//:all", + "@remotejdk17_linux_toolchain_config_repo//:all", + "@remotejdk17_linux_aarch64_toolchain_config_repo//:all", + "@remotejdk17_linux_ppc64le_toolchain_config_repo//:all", + "@remotejdk17_linux_s390x_toolchain_config_repo//:all", + "@remotejdk17_macos_toolchain_config_repo//:all", + "@remotejdk17_macos_aarch64_toolchain_config_repo//:all", + "@remotejdk17_win_toolchain_config_repo//:all", + "@remotejdk17_win_arm64_toolchain_config_repo//:all", + "@remotejdk21_linux_toolchain_config_repo//:all", + "@remotejdk21_linux_aarch64_toolchain_config_repo//:all", + "@remotejdk21_macos_toolchain_config_repo//:all", + "@remotejdk21_macos_aarch64_toolchain_config_repo//:all", + "@remotejdk21_win_toolchain_config_repo//:all" + ], + "extensionUsages": [ + { + "extensionBzlFile": "@rules_java//java:extensions.bzl", + "extensionName": "toolchains", + "usingModule": "rules_java@7.1.0", + "location": { + "file": "https://bcr.bazel.build/modules/rules_java/7.1.0/MODULE.bazel", + "line": 19, + "column": 27 + }, + "imports": { + "remote_java_tools": "remote_java_tools", + "remote_java_tools_linux": "remote_java_tools_linux", + "remote_java_tools_windows": "remote_java_tools_windows", + "remote_java_tools_darwin_x86_64": "remote_java_tools_darwin_x86_64", + "remote_java_tools_darwin_arm64": "remote_java_tools_darwin_arm64", + "local_jdk": "local_jdk", + "remotejdk11_linux_toolchain_config_repo": "remotejdk11_linux_toolchain_config_repo", + "remotejdk11_linux_aarch64_toolchain_config_repo": "remotejdk11_linux_aarch64_toolchain_config_repo", + "remotejdk11_linux_ppc64le_toolchain_config_repo": "remotejdk11_linux_ppc64le_toolchain_config_repo", + "remotejdk11_linux_s390x_toolchain_config_repo": "remotejdk11_linux_s390x_toolchain_config_repo", + "remotejdk11_macos_toolchain_config_repo": "remotejdk11_macos_toolchain_config_repo", + "remotejdk11_macos_aarch64_toolchain_config_repo": "remotejdk11_macos_aarch64_toolchain_config_repo", + "remotejdk11_win_toolchain_config_repo": "remotejdk11_win_toolchain_config_repo", + "remotejdk11_win_arm64_toolchain_config_repo": "remotejdk11_win_arm64_toolchain_config_repo", + "remotejdk17_linux_toolchain_config_repo": "remotejdk17_linux_toolchain_config_repo", + "remotejdk17_linux_aarch64_toolchain_config_repo": "remotejdk17_linux_aarch64_toolchain_config_repo", + "remotejdk17_linux_ppc64le_toolchain_config_repo": "remotejdk17_linux_ppc64le_toolchain_config_repo", + "remotejdk17_linux_s390x_toolchain_config_repo": "remotejdk17_linux_s390x_toolchain_config_repo", + "remotejdk17_macos_toolchain_config_repo": "remotejdk17_macos_toolchain_config_repo", + "remotejdk17_macos_aarch64_toolchain_config_repo": "remotejdk17_macos_aarch64_toolchain_config_repo", + "remotejdk17_win_toolchain_config_repo": "remotejdk17_win_toolchain_config_repo", + "remotejdk17_win_arm64_toolchain_config_repo": "remotejdk17_win_arm64_toolchain_config_repo", + "remotejdk21_linux_toolchain_config_repo": "remotejdk21_linux_toolchain_config_repo", + "remotejdk21_linux_aarch64_toolchain_config_repo": "remotejdk21_linux_aarch64_toolchain_config_repo", + "remotejdk21_macos_toolchain_config_repo": "remotejdk21_macos_toolchain_config_repo", + "remotejdk21_macos_aarch64_toolchain_config_repo": "remotejdk21_macos_aarch64_toolchain_config_repo", + "remotejdk21_win_toolchain_config_repo": "remotejdk21_win_toolchain_config_repo" + }, + "devImports": [], + "tags": [], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + } + ], + "deps": { + "platforms": "platforms@0.0.7", + "rules_cc": "rules_cc@0.0.9", + "bazel_skylib": "bazel_skylib@1.3.0", + "rules_proto": "rules_proto@4.0.0", + "rules_license": "rules_license@0.0.7", + "bazel_tools": "bazel_tools@_", + "local_config_platform": "local_config_platform@_" + }, + "repoSpec": { + "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "name": "rules_java~7.1.0", + "urls": [ + "https://github.com/bazelbuild/rules_java/releases/download/7.1.0/rules_java-7.1.0.tar.gz" + ], + "integrity": "sha256-o3pOX2OrgnFuXdau75iO2EYcegC46TYnImKJn1h81OE=", + "strip_prefix": "", + "remote_patches": {}, + "remote_patch_strip": 0 + } + } + }, + "rules_license@0.0.7": { + "name": "rules_license", + "version": "0.0.7", + "key": "rules_license@0.0.7", + "repoName": "rules_license", + "executionPlatformsToRegister": [], + "toolchainsToRegister": [], + "extensionUsages": [], + "deps": { + "bazel_tools": "bazel_tools@_", + "local_config_platform": "local_config_platform@_" + }, + "repoSpec": { + "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "name": "rules_license~0.0.7", + "urls": [ + "https://github.com/bazelbuild/rules_license/releases/download/0.0.7/rules_license-0.0.7.tar.gz" + ], + "integrity": "sha256-RTHezLkTY5ww5cdRKgVNXYdWmNrrddjPkPKEN1/nw2A=", + "strip_prefix": "", + "remote_patches": {}, + "remote_patch_strip": 0 + } + } + }, + "rules_proto@4.0.0": { + "name": "rules_proto", + "version": "4.0.0", + "key": "rules_proto@4.0.0", + "repoName": "rules_proto", + "executionPlatformsToRegister": [], + "toolchainsToRegister": [], + "extensionUsages": [], + "deps": { + "bazel_skylib": "bazel_skylib@1.3.0", + "rules_cc": "rules_cc@0.0.9", + "bazel_tools": "bazel_tools@_", + "local_config_platform": "local_config_platform@_" + }, + "repoSpec": { + "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "name": "rules_proto~4.0.0", + "urls": [ + "https://github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0.zip" + ], + "integrity": "sha256-Lr5z6xyuRA19pNtRYMGjKaynwQpck4H/lwYyVjyhoq4=", + "strip_prefix": "rules_proto-4.0.0", + "remote_patches": { + "https://bcr.bazel.build/modules/rules_proto/4.0.0/patches/module_dot_bazel.patch": "sha256-MclJO7tIAM2ElDAmscNId9pKTpOuDGHgVlW/9VBOIp0=" + }, + "remote_patch_strip": 0 + } + } + }, + "rules_python@0.4.0": { + "name": "rules_python", + "version": "0.4.0", + "key": "rules_python@0.4.0", + "repoName": "rules_python", + "executionPlatformsToRegister": [], + "toolchainsToRegister": [ + "@bazel_tools//tools/python:autodetecting_toolchain" + ], + "extensionUsages": [ + { + "extensionBzlFile": "@rules_python//bzlmod:extensions.bzl", + "extensionName": "pip_install", + "usingModule": "rules_python@0.4.0", + "location": { + "file": "https://bcr.bazel.build/modules/rules_python/0.4.0/MODULE.bazel", + "line": 7, + "column": 28 + }, + "imports": { + "pypi__click": "pypi__click", + "pypi__pip": "pypi__pip", + "pypi__pip_tools": "pypi__pip_tools", + "pypi__pkginfo": "pypi__pkginfo", + "pypi__setuptools": "pypi__setuptools", + "pypi__wheel": "pypi__wheel" + }, + "devImports": [], + "tags": [], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + } + ], + "deps": { + "bazel_tools": "bazel_tools@_", + "local_config_platform": "local_config_platform@_" + }, + "repoSpec": { + "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "name": "rules_python~0.4.0", + "urls": [ + "https://github.com/bazelbuild/rules_python/releases/download/0.4.0/rules_python-0.4.0.tar.gz" + ], + "integrity": "sha256-lUqom0kb5KCDMEosuDgBnIuMNyCnq7nEy4GseiQjDOo=", + "strip_prefix": "", + "remote_patches": { + "https://bcr.bazel.build/modules/rules_python/0.4.0/patches/propagate_pip_install_dependencies.patch": "sha256-v7S/dem/mixg63MF4KoRGDA4KEol9ab/tIVp+6Xq0D0=", + "https://bcr.bazel.build/modules/rules_python/0.4.0/patches/module_dot_bazel.patch": "sha256-kG4VIfWxQazzTuh50mvsx6pmyoRVA4lfH5rkto/Oq+Y=" + }, + "remote_patch_strip": 1 + } + } + }, + "platforms@0.0.7": { + "name": "platforms", + "version": "0.0.7", + "key": "platforms@0.0.7", + "repoName": "platforms", + "executionPlatformsToRegister": [], + "toolchainsToRegister": [], + "extensionUsages": [], + "deps": { + "rules_license": "rules_license@0.0.7", + "bazel_tools": "bazel_tools@_", + "local_config_platform": "local_config_platform@_" + }, + "repoSpec": { + "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "name": "platforms", + "urls": [ + "https://github.com/bazelbuild/platforms/releases/download/0.0.7/platforms-0.0.7.tar.gz" + ], + "integrity": "sha256-OlYcmee9vpFzqmU/1Xn+hJ8djWc5V4CrR3Cx84FDHVE=", + "strip_prefix": "", + "remote_patches": {}, + "remote_patch_strip": 0 + } + } + }, + "protobuf@3.19.6": { + "name": "protobuf", + "version": "3.19.6", + "key": "protobuf@3.19.6", + "repoName": "protobuf", + "executionPlatformsToRegister": [], + "toolchainsToRegister": [], + "extensionUsages": [], + "deps": { + "bazel_skylib": "bazel_skylib@1.3.0", + "zlib": "zlib@1.3", + "rules_python": "rules_python@0.4.0", + "rules_cc": "rules_cc@0.0.9", + "rules_proto": "rules_proto@4.0.0", + "rules_java": "rules_java@7.1.0", + "bazel_tools": "bazel_tools@_", + "local_config_platform": "local_config_platform@_" + }, + "repoSpec": { + "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "name": "protobuf~3.19.6", + "urls": [ + "https://github.com/protocolbuffers/protobuf/archive/refs/tags/v3.19.6.zip" + ], + "integrity": "sha256-OH4sVZuyx8G8N5jE5s/wFTgaebJ1hpavy/johzC0c4k=", + "strip_prefix": "protobuf-3.19.6", + "remote_patches": { + "https://bcr.bazel.build/modules/protobuf/3.19.6/patches/relative_repo_names.patch": "sha256-w/5gw/zGv8NFId+669hcdw1Uus2lxgYpulATHIwIByI=", + "https://bcr.bazel.build/modules/protobuf/3.19.6/patches/remove_dependency_on_rules_jvm_external.patch": "sha256-THUTnVgEBmjA0W7fKzIyZOVG58DnW9HQTkr4D2zKUUc=", + "https://bcr.bazel.build/modules/protobuf/3.19.6/patches/add_module_dot_bazel_for_examples.patch": "sha256-s/b1gi3baK3LsXefI2rQilhmkb2R5jVJdnT6zEcdfHY=", + "https://bcr.bazel.build/modules/protobuf/3.19.6/patches/module_dot_bazel.patch": "sha256-S0DEni8zgx7rHscW3z/rCEubQnYec0XhNet640cw0h4=" + }, + "remote_patch_strip": 1 + } + } + }, + "zlib@1.3": { + "name": "zlib", + "version": "1.3", + "key": "zlib@1.3", + "repoName": "zlib", + "executionPlatformsToRegister": [], + "toolchainsToRegister": [], + "extensionUsages": [], + "deps": { + "platforms": "platforms@0.0.7", + "rules_cc": "rules_cc@0.0.9", + "bazel_tools": "bazel_tools@_", + "local_config_platform": "local_config_platform@_" + }, + "repoSpec": { + "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "name": "zlib~1.3", + "urls": [ + "https://github.com/madler/zlib/releases/download/v1.3/zlib-1.3.tar.gz" + ], + "integrity": "sha256-/wukwpIBPbwnUws6geH5qBPNOd4Byl4Pi/NVcC76WT4=", + "strip_prefix": "zlib-1.3", + "remote_patches": { + "https://bcr.bazel.build/modules/zlib/1.3/patches/add_build_file.patch": "sha256-Ei+FYaaOo7A3jTKunMEodTI0Uw5NXQyZEcboMC8JskY=", + "https://bcr.bazel.build/modules/zlib/1.3/patches/module_dot_bazel.patch": "sha256-fPWLM+2xaF/kuy+kZc1YTfW6hNjrkG400Ho7gckuyJk=" + }, + "remote_patch_strip": 0 + } + } + }, + "apple_support@1.5.0": { + "name": "apple_support", + "version": "1.5.0", + "key": "apple_support@1.5.0", + "repoName": "build_bazel_apple_support", + "executionPlatformsToRegister": [], + "toolchainsToRegister": [ + "@local_config_apple_cc_toolchains//:all" + ], + "extensionUsages": [ + { + "extensionBzlFile": "@build_bazel_apple_support//crosstool:setup.bzl", + "extensionName": "apple_cc_configure_extension", + "usingModule": "apple_support@1.5.0", + "location": { + "file": "https://bcr.bazel.build/modules/apple_support/1.5.0/MODULE.bazel", + "line": 17, + "column": 35 + }, + "imports": { + "local_config_apple_cc": "local_config_apple_cc", + "local_config_apple_cc_toolchains": "local_config_apple_cc_toolchains" + }, + "devImports": [], + "tags": [], + "hasDevUseExtension": false, + "hasNonDevUseExtension": true + } + ], + "deps": { + "bazel_skylib": "bazel_skylib@1.3.0", + "platforms": "platforms@0.0.7", + "bazel_tools": "bazel_tools@_", + "local_config_platform": "local_config_platform@_" + }, + "repoSpec": { + "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "name": "apple_support~1.5.0", + "urls": [ + "https://github.com/bazelbuild/apple_support/releases/download/1.5.0/apple_support.1.5.0.tar.gz" + ], + "integrity": "sha256-miM41vja0yRPgj8txghKA+TQ+7J8qJLclw5okNW0gYQ=", + "strip_prefix": "", + "remote_patches": {}, + "remote_patch_strip": 0 + } + } + }, + "bazel_skylib@1.3.0": { + "name": "bazel_skylib", + "version": "1.3.0", + "key": "bazel_skylib@1.3.0", + "repoName": "bazel_skylib", + "executionPlatformsToRegister": [], + "toolchainsToRegister": [ + "//toolchains/unittest:cmd_toolchain", + "//toolchains/unittest:bash_toolchain" + ], + "extensionUsages": [], + "deps": { + "platforms": "platforms@0.0.7", + "bazel_tools": "bazel_tools@_", + "local_config_platform": "local_config_platform@_" + }, + "repoSpec": { + "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", + "ruleClassName": "http_archive", + "attributes": { + "name": "bazel_skylib~1.3.0", + "urls": [ + "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz" + ], + "integrity": "sha256-dNVE2W9KW7Yw1GXKi7z+Ix41lOWq5X4e2/F6brPKJQY=", + "strip_prefix": "", + "remote_patches": {}, + "remote_patch_strip": 0 + } + } + } + }, + "moduleExtensions": {} +} diff --git a/gazelle/python/testdata/per_file_non_empty_init/BUILD.out b/gazelle/python/testdata/per_file_non_empty_init/BUILD.out index ee4a417966..69bbff14d5 100644 --- a/gazelle/python/testdata/per_file_non_empty_init/BUILD.out +++ b/gazelle/python/testdata/per_file_non_empty_init/BUILD.out @@ -6,7 +6,6 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "__init__", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], deps = [":foo"], ) @@ -16,5 +15,4 @@ py_library( "__init__.py", "foo.py", ], - visibility = ["//:__subpackages__"], ) diff --git a/gazelle/python/testdata/per_file_subdirs/BUILD.out b/gazelle/python/testdata/per_file_subdirs/BUILD.out index 69c42e01a9..afa552b22e 100644 --- a/gazelle/python/testdata/per_file_subdirs/BUILD.out +++ b/gazelle/python/testdata/per_file_subdirs/BUILD.out @@ -5,6 +5,5 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "foo", srcs = ["foo.py"], - visibility = ["//:__subpackages__"], deps = ["//bar:__init__"], ) diff --git a/gazelle/python/testdata/per_file_subdirs/bar/BUILD.out b/gazelle/python/testdata/per_file_subdirs/bar/BUILD.out index 8835fb2ad7..ff25f22230 100644 --- a/gazelle/python/testdata/per_file_subdirs/bar/BUILD.out +++ b/gazelle/python/testdata/per_file_subdirs/bar/BUILD.out @@ -5,7 +5,6 @@ load("@rules_python//python:defs.bzl", "py_library", "py_test") py_library( name = "__init__", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], ) py_library( @@ -14,7 +13,6 @@ py_library( "__init__.py", "bar.py", ], - visibility = ["//:__subpackages__"], ) py_library( @@ -23,7 +21,6 @@ py_library( "__init__.py", "foo.py", ], - visibility = ["//:__subpackages__"], ) py_test( diff --git a/gazelle/python/testdata/python_ignore_dependencies_directive/BUILD.out b/gazelle/python/testdata/python_ignore_dependencies_directive/BUILD.out index 7afe61b5b5..2f1cec606e 100644 --- a/gazelle/python/testdata/python_ignore_dependencies_directive/BUILD.out +++ b/gazelle/python/testdata/python_ignore_dependencies_directive/BUILD.out @@ -6,6 +6,5 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "python_ignore_dependencies_directive", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], deps = ["@gazelle_python_test//boto3"], ) diff --git a/gazelle/python/testdata/python_ignore_files_directive/BUILD.out b/gazelle/python/testdata/python_ignore_files_directive/BUILD.out index 1fe6030053..027910a248 100644 --- a/gazelle/python/testdata/python_ignore_files_directive/BUILD.out +++ b/gazelle/python/testdata/python_ignore_files_directive/BUILD.out @@ -5,5 +5,4 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "python_ignore_files_directive", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], ) diff --git a/gazelle/python/testdata/python_ignore_files_directive/bar/BUILD.out b/gazelle/python/testdata/python_ignore_files_directive/bar/BUILD.out index 94259f92e0..2dac169a4c 100644 --- a/gazelle/python/testdata/python_ignore_files_directive/bar/BUILD.out +++ b/gazelle/python/testdata/python_ignore_files_directive/bar/BUILD.out @@ -3,5 +3,4 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "bar", srcs = ["baz.py"], - visibility = ["//:__subpackages__"], ) diff --git a/gazelle/python/testdata/python_target_with_test_in_name/BUILD.out b/gazelle/python/testdata/python_target_with_test_in_name/BUILD.out index 32e899b9e8..34f7181343 100644 --- a/gazelle/python/testdata/python_target_with_test_in_name/BUILD.out +++ b/gazelle/python/testdata/python_target_with_test_in_name/BUILD.out @@ -3,7 +3,6 @@ load("@rules_python//python:defs.bzl", "py_library", "py_test") py_library( name = "python_target_with_test_in_name", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], ) py_test( diff --git a/gazelle/python/testdata/relative_imports/BUILD.out b/gazelle/python/testdata/relative_imports/BUILD.out index bf9524480a..413011341f 100644 --- a/gazelle/python/testdata/relative_imports/BUILD.out +++ b/gazelle/python/testdata/relative_imports/BUILD.out @@ -8,14 +8,12 @@ py_library( "package1/module1.py", "package1/module2.py", ], - visibility = ["//:__subpackages__"], ) py_binary( name = "relative_imports_bin", srcs = ["__main__.py"], main = "__main__.py", - visibility = ["//:__subpackages__"], deps = [ ":relative_imports", "//package2", diff --git a/gazelle/python/testdata/relative_imports/package2/BUILD.out b/gazelle/python/testdata/relative_imports/package2/BUILD.out index 3e03e75f9b..46ae371df1 100644 --- a/gazelle/python/testdata/relative_imports/package2/BUILD.out +++ b/gazelle/python/testdata/relative_imports/package2/BUILD.out @@ -8,6 +8,5 @@ py_library( "module4.py", "subpackage1/module5.py", ], - visibility = ["//:__subpackages__"], deps = [":resolved_package"], ) diff --git a/gazelle/python/testdata/respect_kind_mapping/BUILD.out b/gazelle/python/testdata/respect_kind_mapping/BUILD.out index 7c5fb0bd20..a9ce088cf5 100644 --- a/gazelle/python/testdata/respect_kind_mapping/BUILD.out +++ b/gazelle/python/testdata/respect_kind_mapping/BUILD.out @@ -9,7 +9,6 @@ py_library( "__init__.py", "foo.py", ], - visibility = ["//:__subpackages__"], ) my_test( diff --git a/gazelle/python/testdata/sibling_imports/pkg/BUILD.out b/gazelle/python/testdata/sibling_imports/pkg/BUILD.out index cae6c3f17a..48bb4df024 100644 --- a/gazelle/python/testdata/sibling_imports/pkg/BUILD.out +++ b/gazelle/python/testdata/sibling_imports/pkg/BUILD.out @@ -7,7 +7,6 @@ py_library( "a.py", "b.py", ], - visibility = ["//:__subpackages__"], ) py_test( diff --git a/gazelle/python/testdata/simple_binary/BUILD.out b/gazelle/python/testdata/simple_binary/BUILD.out index 35aa7089ec..c756f4d6c4 100644 --- a/gazelle/python/testdata/simple_binary/BUILD.out +++ b/gazelle/python/testdata/simple_binary/BUILD.out @@ -4,5 +4,4 @@ py_binary( name = "simple_binary_bin", srcs = ["__main__.py"], main = "__main__.py", - visibility = ["//:__subpackages__"], ) diff --git a/gazelle/python/testdata/simple_binary_with_library/BUILD.out b/gazelle/python/testdata/simple_binary_with_library/BUILD.out index eddc15cacd..cd9583cd55 100644 --- a/gazelle/python/testdata/simple_binary_with_library/BUILD.out +++ b/gazelle/python/testdata/simple_binary_with_library/BUILD.out @@ -7,7 +7,6 @@ py_library( "bar.py", "foo.py", ], - visibility = ["//:__subpackages__"], ) # This target should be kept unmodified by Gazelle. @@ -22,6 +21,5 @@ py_binary( name = "simple_binary_with_library_bin", srcs = ["__main__.py"], main = "__main__.py", - visibility = ["//:__subpackages__"], deps = [":simple_binary_with_library"], ) diff --git a/gazelle/python/testdata/simple_library/BUILD.out b/gazelle/python/testdata/simple_library/BUILD.out index 5793ac2066..049f3bde7f 100644 --- a/gazelle/python/testdata/simple_library/BUILD.out +++ b/gazelle/python/testdata/simple_library/BUILD.out @@ -3,5 +3,4 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "simple_library", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], ) diff --git a/gazelle/python/testdata/simple_library_without_init/foo/BUILD.out b/gazelle/python/testdata/simple_library_without_init/foo/BUILD.out index 8e50095042..9c2e144e8f 100644 --- a/gazelle/python/testdata/simple_library_without_init/foo/BUILD.out +++ b/gazelle/python/testdata/simple_library_without_init/foo/BUILD.out @@ -3,5 +3,4 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "foo", srcs = ["foo.py"], - visibility = ["//:__subpackages__"], ) diff --git a/gazelle/python/testdata/simple_test/BUILD.out b/gazelle/python/testdata/simple_test/BUILD.out index ae2f982032..41b5caacf4 100644 --- a/gazelle/python/testdata/simple_test/BUILD.out +++ b/gazelle/python/testdata/simple_test/BUILD.out @@ -6,7 +6,6 @@ py_library( "__init__.py", "foo.py", ], - visibility = ["//:__subpackages__"], ) py_test( diff --git a/gazelle/python/testdata/simple_test_with_conftest/BUILD.out b/gazelle/python/testdata/simple_test_with_conftest/BUILD.out index 18079bf2f4..105ed62f28 100644 --- a/gazelle/python/testdata/simple_test_with_conftest/BUILD.out +++ b/gazelle/python/testdata/simple_test_with_conftest/BUILD.out @@ -6,14 +6,12 @@ py_library( "__init__.py", "foo.py", ], - visibility = ["//:__subpackages__"], ) py_library( name = "conftest", testonly = True, srcs = ["conftest.py"], - visibility = ["//:__subpackages__"], ) py_test( diff --git a/gazelle/python/testdata/simple_test_with_conftest/bar/BUILD.out b/gazelle/python/testdata/simple_test_with_conftest/bar/BUILD.out index 4a1204e989..988f04e9fe 100644 --- a/gazelle/python/testdata/simple_test_with_conftest/bar/BUILD.out +++ b/gazelle/python/testdata/simple_test_with_conftest/bar/BUILD.out @@ -6,14 +6,12 @@ py_library( "__init__.py", "bar.py", ], - visibility = ["//:__subpackages__"], ) py_library( name = "conftest", testonly = True, srcs = ["conftest.py"], - visibility = ["//:__subpackages__"], ) py_test( diff --git a/gazelle/python/testdata/subdir_sources/BUILD.out b/gazelle/python/testdata/subdir_sources/BUILD.out index d03a8f05ac..bd0dbdbdf4 100644 --- a/gazelle/python/testdata/subdir_sources/BUILD.out +++ b/gazelle/python/testdata/subdir_sources/BUILD.out @@ -4,7 +4,6 @@ py_binary( name = "subdir_sources_bin", srcs = ["__main__.py"], main = "__main__.py", - visibility = ["//:__subpackages__"], deps = [ "//foo", "//one/two", diff --git a/gazelle/python/testdata/subdir_sources/foo/BUILD.out b/gazelle/python/testdata/subdir_sources/foo/BUILD.out index 9107d2dfa0..373a1dc9d8 100644 --- a/gazelle/python/testdata/subdir_sources/foo/BUILD.out +++ b/gazelle/python/testdata/subdir_sources/foo/BUILD.out @@ -8,5 +8,4 @@ py_library( "baz/baz.py", "foo.py", ], - visibility = ["//:__subpackages__"], ) diff --git a/gazelle/python/testdata/subdir_sources/foo/has_build/BUILD.out b/gazelle/python/testdata/subdir_sources/foo/has_build/BUILD.out index d5196e528a..8784f4df36 100644 --- a/gazelle/python/testdata/subdir_sources/foo/has_build/BUILD.out +++ b/gazelle/python/testdata/subdir_sources/foo/has_build/BUILD.out @@ -3,5 +3,4 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "has_build", srcs = ["python/my_module.py"], - visibility = ["//:__subpackages__"], ) diff --git a/gazelle/python/testdata/subdir_sources/foo/has_init/BUILD.out b/gazelle/python/testdata/subdir_sources/foo/has_init/BUILD.out index de6100822d..da89c47bb6 100644 --- a/gazelle/python/testdata/subdir_sources/foo/has_init/BUILD.out +++ b/gazelle/python/testdata/subdir_sources/foo/has_init/BUILD.out @@ -6,5 +6,4 @@ py_library( "__init__.py", "python/my_module.py", ], - visibility = ["//:__subpackages__"], ) diff --git a/gazelle/python/testdata/subdir_sources/foo/has_main/BUILD.out b/gazelle/python/testdata/subdir_sources/foo/has_main/BUILD.out index 1c56f722d4..c603b5f990 100644 --- a/gazelle/python/testdata/subdir_sources/foo/has_main/BUILD.out +++ b/gazelle/python/testdata/subdir_sources/foo/has_main/BUILD.out @@ -3,13 +3,11 @@ load("@rules_python//python:defs.bzl", "py_binary", "py_library") py_library( name = "has_main", srcs = ["python/my_module.py"], - visibility = ["//:__subpackages__"], ) py_binary( name = "has_main_bin", srcs = ["__main__.py"], main = "__main__.py", - visibility = ["//:__subpackages__"], deps = [":has_main"], ) diff --git a/gazelle/python/testdata/subdir_sources/foo/has_test/BUILD.out b/gazelle/python/testdata/subdir_sources/foo/has_test/BUILD.out index a99278ec79..4f287e69ba 100644 --- a/gazelle/python/testdata/subdir_sources/foo/has_test/BUILD.out +++ b/gazelle/python/testdata/subdir_sources/foo/has_test/BUILD.out @@ -3,7 +3,6 @@ load("@rules_python//python:defs.bzl", "py_library", "py_test") py_library( name = "has_test", srcs = ["python/my_module.py"], - visibility = ["//:__subpackages__"], ) py_test( diff --git a/gazelle/python/testdata/subdir_sources/one/BUILD.out b/gazelle/python/testdata/subdir_sources/one/BUILD.out index b78b650f2c..40486a88f5 100644 --- a/gazelle/python/testdata/subdir_sources/one/BUILD.out +++ b/gazelle/python/testdata/subdir_sources/one/BUILD.out @@ -3,5 +3,4 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "one", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], ) diff --git a/gazelle/python/testdata/subdir_sources/one/two/BUILD.out b/gazelle/python/testdata/subdir_sources/one/two/BUILD.out index 8f0ac17a0e..8499ccc0f1 100644 --- a/gazelle/python/testdata/subdir_sources/one/two/BUILD.out +++ b/gazelle/python/testdata/subdir_sources/one/two/BUILD.out @@ -6,6 +6,5 @@ py_library( "__init__.py", "three.py", ], - visibility = ["//:__subpackages__"], deps = ["//foo"], ) diff --git a/gazelle/python/testdata/with_nested_import_statements/BUILD.out b/gazelle/python/testdata/with_nested_import_statements/BUILD.out index c54bea7ff8..a896f1be23 100644 --- a/gazelle/python/testdata/with_nested_import_statements/BUILD.out +++ b/gazelle/python/testdata/with_nested_import_statements/BUILD.out @@ -3,6 +3,5 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "with_nested_import_statements", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], deps = ["@gazelle_python_test//boto3"], ) diff --git a/gazelle/python/testdata/with_std_requirements/BUILD.out b/gazelle/python/testdata/with_std_requirements/BUILD.out index a382ca88c2..382bff888b 100644 --- a/gazelle/python/testdata/with_std_requirements/BUILD.out +++ b/gazelle/python/testdata/with_std_requirements/BUILD.out @@ -3,5 +3,4 @@ load("@rules_python//python:defs.bzl", "py_library") py_library( name = "with_std_requirements", srcs = ["__init__.py"], - visibility = ["//:__subpackages__"], ) diff --git a/gazelle/python/testdata/with_third_party_requirements/BUILD.out b/gazelle/python/testdata/with_third_party_requirements/BUILD.out index c9330d9cf3..e10bf169eb 100644 --- a/gazelle/python/testdata/with_third_party_requirements/BUILD.out +++ b/gazelle/python/testdata/with_third_party_requirements/BUILD.out @@ -7,7 +7,6 @@ py_library( "bar.py", "foo.py", ], - visibility = ["//:__subpackages__"], deps = [ "@gazelle_python_test//baz", "@gazelle_python_test//boto3", @@ -19,6 +18,5 @@ py_binary( name = "with_third_party_requirements_bin", srcs = ["__main__.py"], main = "__main__.py", - visibility = ["//:__subpackages__"], deps = ["@gazelle_python_test//baz"], ) diff --git a/gazelle/python/testdata/with_third_party_requirements_from_imports/BUILD.out b/gazelle/python/testdata/with_third_party_requirements_from_imports/BUILD.out index 9d6904f9f1..d213192d4a 100644 --- a/gazelle/python/testdata/with_third_party_requirements_from_imports/BUILD.out +++ b/gazelle/python/testdata/with_third_party_requirements_from_imports/BUILD.out @@ -6,7 +6,6 @@ py_library( "__init__.py", "bar.py", ], - visibility = ["//:__subpackages__"], deps = [ "@gazelle_python_test//google_cloud_aiplatform", "@gazelle_python_test//google_cloud_storage", @@ -17,7 +16,6 @@ py_binary( name = "with_third_party_requirements_from_imports_bin", srcs = ["__main__.py"], main = "__main__.py", - visibility = ["//:__subpackages__"], deps = [ ":with_third_party_requirements_from_imports", "@gazelle_python_test//google_cloud_aiplatform", From 7b31e91862b926a75b10e28533e8aee0dfe91e41 Mon Sep 17 00:00:00 2001 From: Arya McCarthy Date: Thu, 11 Jan 2024 16:17:42 -0800 Subject: [PATCH 5/5] Delete accidentally included MODULE files --- gazelle/python/testdata/per_file/MODULE.bazel | 6 - .../testdata/per_file/MODULE.bazel.lock | 624 ------------------ 2 files changed, 630 deletions(-) delete mode 100644 gazelle/python/testdata/per_file/MODULE.bazel delete mode 100644 gazelle/python/testdata/per_file/MODULE.bazel.lock diff --git a/gazelle/python/testdata/per_file/MODULE.bazel b/gazelle/python/testdata/per_file/MODULE.bazel deleted file mode 100644 index 00bb18361f..0000000000 --- a/gazelle/python/testdata/per_file/MODULE.bazel +++ /dev/null @@ -1,6 +0,0 @@ -############################################################################### -# Bazel now uses Bzlmod by default to manage external dependencies. -# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel. -# -# For more details, please check https://github.com/bazelbuild/bazel/issues/18958 -############################################################################### diff --git a/gazelle/python/testdata/per_file/MODULE.bazel.lock b/gazelle/python/testdata/per_file/MODULE.bazel.lock deleted file mode 100644 index 7266ea0556..0000000000 --- a/gazelle/python/testdata/per_file/MODULE.bazel.lock +++ /dev/null @@ -1,624 +0,0 @@ -{ - "lockFileVersion": 3, - "moduleFileHash": "0e3e315145ac7ee7a4e0ac825e1c5e03c068ec1254dd42c3caaecb27e921dc4d", - "flags": { - "cmdRegistries": [ - "https://bcr.bazel.build/" - ], - "cmdModuleOverrides": {}, - "allowedYankedVersions": [], - "envVarAllowedYankedVersions": "", - "ignoreDevDependency": false, - "directDependenciesMode": "WARNING", - "compatibilityMode": "ERROR" - }, - "localOverrideHashes": { - "bazel_tools": "922ea6752dc9105de5af957f7a99a6933c0a6a712d23df6aad16a9c399f7e787" - }, - "moduleDepGraph": { - "": { - "name": "", - "version": "", - "key": "", - "repoName": "", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [], - "extensionUsages": [], - "deps": { - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - } - }, - "bazel_tools@_": { - "name": "bazel_tools", - "version": "", - "key": "bazel_tools@_", - "repoName": "bazel_tools", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [ - "@local_config_cc_toolchains//:all", - "@local_config_sh//:local_sh_toolchain" - ], - "extensionUsages": [ - { - "extensionBzlFile": "@bazel_tools//tools/cpp:cc_configure.bzl", - "extensionName": "cc_configure_extension", - "usingModule": "bazel_tools@_", - "location": { - "file": "@@bazel_tools//:MODULE.bazel", - "line": 17, - "column": 29 - }, - "imports": { - "local_config_cc": "local_config_cc", - "local_config_cc_toolchains": "local_config_cc_toolchains" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - }, - { - "extensionBzlFile": "@bazel_tools//tools/osx:xcode_configure.bzl", - "extensionName": "xcode_configure_extension", - "usingModule": "bazel_tools@_", - "location": { - "file": "@@bazel_tools//:MODULE.bazel", - "line": 21, - "column": 32 - }, - "imports": { - "local_config_xcode": "local_config_xcode" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - }, - { - "extensionBzlFile": "@rules_java//java:extensions.bzl", - "extensionName": "toolchains", - "usingModule": "bazel_tools@_", - "location": { - "file": "@@bazel_tools//:MODULE.bazel", - "line": 24, - "column": 32 - }, - "imports": { - "local_jdk": "local_jdk", - "remote_java_tools": "remote_java_tools", - "remote_java_tools_linux": "remote_java_tools_linux", - "remote_java_tools_windows": "remote_java_tools_windows", - "remote_java_tools_darwin_x86_64": "remote_java_tools_darwin_x86_64", - "remote_java_tools_darwin_arm64": "remote_java_tools_darwin_arm64" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - }, - { - "extensionBzlFile": "@bazel_tools//tools/sh:sh_configure.bzl", - "extensionName": "sh_configure_extension", - "usingModule": "bazel_tools@_", - "location": { - "file": "@@bazel_tools//:MODULE.bazel", - "line": 35, - "column": 39 - }, - "imports": { - "local_config_sh": "local_config_sh" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - }, - { - "extensionBzlFile": "@bazel_tools//tools/test:extensions.bzl", - "extensionName": "remote_coverage_tools_extension", - "usingModule": "bazel_tools@_", - "location": { - "file": "@@bazel_tools//:MODULE.bazel", - "line": 39, - "column": 48 - }, - "imports": { - "remote_coverage_tools": "remote_coverage_tools" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - }, - { - "extensionBzlFile": "@bazel_tools//tools/android:android_extensions.bzl", - "extensionName": "remote_android_tools_extensions", - "usingModule": "bazel_tools@_", - "location": { - "file": "@@bazel_tools//:MODULE.bazel", - "line": 42, - "column": 42 - }, - "imports": { - "android_gmaven_r8": "android_gmaven_r8", - "android_tools": "android_tools" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - } - ], - "deps": { - "rules_cc": "rules_cc@0.0.9", - "rules_java": "rules_java@7.1.0", - "rules_license": "rules_license@0.0.7", - "rules_proto": "rules_proto@4.0.0", - "rules_python": "rules_python@0.4.0", - "platforms": "platforms@0.0.7", - "com_google_protobuf": "protobuf@3.19.6", - "zlib": "zlib@1.3", - "build_bazel_apple_support": "apple_support@1.5.0", - "local_config_platform": "local_config_platform@_" - } - }, - "local_config_platform@_": { - "name": "local_config_platform", - "version": "", - "key": "local_config_platform@_", - "repoName": "local_config_platform", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [], - "extensionUsages": [], - "deps": { - "platforms": "platforms@0.0.7", - "bazel_tools": "bazel_tools@_" - } - }, - "rules_cc@0.0.9": { - "name": "rules_cc", - "version": "0.0.9", - "key": "rules_cc@0.0.9", - "repoName": "rules_cc", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [ - "@local_config_cc_toolchains//:all" - ], - "extensionUsages": [ - { - "extensionBzlFile": "@bazel_tools//tools/cpp:cc_configure.bzl", - "extensionName": "cc_configure_extension", - "usingModule": "rules_cc@0.0.9", - "location": { - "file": "https://bcr.bazel.build/modules/rules_cc/0.0.9/MODULE.bazel", - "line": 9, - "column": 29 - }, - "imports": { - "local_config_cc_toolchains": "local_config_cc_toolchains" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - } - ], - "deps": { - "platforms": "platforms@0.0.7", - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_cc~0.0.9", - "urls": [ - "https://github.com/bazelbuild/rules_cc/releases/download/0.0.9/rules_cc-0.0.9.tar.gz" - ], - "integrity": "sha256-IDeHW5pEVtzkp50RKorohbvEqtlo5lh9ym5k86CQDN8=", - "strip_prefix": "rules_cc-0.0.9", - "remote_patches": { - "https://bcr.bazel.build/modules/rules_cc/0.0.9/patches/module_dot_bazel_version.patch": "sha256-mM+qzOI0SgAdaJBlWOSMwMPKpaA9b7R37Hj/tp5bb4g=" - }, - "remote_patch_strip": 0 - } - } - }, - "rules_java@7.1.0": { - "name": "rules_java", - "version": "7.1.0", - "key": "rules_java@7.1.0", - "repoName": "rules_java", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [ - "//toolchains:all", - "@local_jdk//:runtime_toolchain_definition", - "@local_jdk//:bootstrap_runtime_toolchain_definition", - "@remotejdk11_linux_toolchain_config_repo//:all", - "@remotejdk11_linux_aarch64_toolchain_config_repo//:all", - "@remotejdk11_linux_ppc64le_toolchain_config_repo//:all", - "@remotejdk11_linux_s390x_toolchain_config_repo//:all", - "@remotejdk11_macos_toolchain_config_repo//:all", - "@remotejdk11_macos_aarch64_toolchain_config_repo//:all", - "@remotejdk11_win_toolchain_config_repo//:all", - "@remotejdk11_win_arm64_toolchain_config_repo//:all", - "@remotejdk17_linux_toolchain_config_repo//:all", - "@remotejdk17_linux_aarch64_toolchain_config_repo//:all", - "@remotejdk17_linux_ppc64le_toolchain_config_repo//:all", - "@remotejdk17_linux_s390x_toolchain_config_repo//:all", - "@remotejdk17_macos_toolchain_config_repo//:all", - "@remotejdk17_macos_aarch64_toolchain_config_repo//:all", - "@remotejdk17_win_toolchain_config_repo//:all", - "@remotejdk17_win_arm64_toolchain_config_repo//:all", - "@remotejdk21_linux_toolchain_config_repo//:all", - "@remotejdk21_linux_aarch64_toolchain_config_repo//:all", - "@remotejdk21_macos_toolchain_config_repo//:all", - "@remotejdk21_macos_aarch64_toolchain_config_repo//:all", - "@remotejdk21_win_toolchain_config_repo//:all" - ], - "extensionUsages": [ - { - "extensionBzlFile": "@rules_java//java:extensions.bzl", - "extensionName": "toolchains", - "usingModule": "rules_java@7.1.0", - "location": { - "file": "https://bcr.bazel.build/modules/rules_java/7.1.0/MODULE.bazel", - "line": 19, - "column": 27 - }, - "imports": { - "remote_java_tools": "remote_java_tools", - "remote_java_tools_linux": "remote_java_tools_linux", - "remote_java_tools_windows": "remote_java_tools_windows", - "remote_java_tools_darwin_x86_64": "remote_java_tools_darwin_x86_64", - "remote_java_tools_darwin_arm64": "remote_java_tools_darwin_arm64", - "local_jdk": "local_jdk", - "remotejdk11_linux_toolchain_config_repo": "remotejdk11_linux_toolchain_config_repo", - "remotejdk11_linux_aarch64_toolchain_config_repo": "remotejdk11_linux_aarch64_toolchain_config_repo", - "remotejdk11_linux_ppc64le_toolchain_config_repo": "remotejdk11_linux_ppc64le_toolchain_config_repo", - "remotejdk11_linux_s390x_toolchain_config_repo": "remotejdk11_linux_s390x_toolchain_config_repo", - "remotejdk11_macos_toolchain_config_repo": "remotejdk11_macos_toolchain_config_repo", - "remotejdk11_macos_aarch64_toolchain_config_repo": "remotejdk11_macos_aarch64_toolchain_config_repo", - "remotejdk11_win_toolchain_config_repo": "remotejdk11_win_toolchain_config_repo", - "remotejdk11_win_arm64_toolchain_config_repo": "remotejdk11_win_arm64_toolchain_config_repo", - "remotejdk17_linux_toolchain_config_repo": "remotejdk17_linux_toolchain_config_repo", - "remotejdk17_linux_aarch64_toolchain_config_repo": "remotejdk17_linux_aarch64_toolchain_config_repo", - "remotejdk17_linux_ppc64le_toolchain_config_repo": "remotejdk17_linux_ppc64le_toolchain_config_repo", - "remotejdk17_linux_s390x_toolchain_config_repo": "remotejdk17_linux_s390x_toolchain_config_repo", - "remotejdk17_macos_toolchain_config_repo": "remotejdk17_macos_toolchain_config_repo", - "remotejdk17_macos_aarch64_toolchain_config_repo": "remotejdk17_macos_aarch64_toolchain_config_repo", - "remotejdk17_win_toolchain_config_repo": "remotejdk17_win_toolchain_config_repo", - "remotejdk17_win_arm64_toolchain_config_repo": "remotejdk17_win_arm64_toolchain_config_repo", - "remotejdk21_linux_toolchain_config_repo": "remotejdk21_linux_toolchain_config_repo", - "remotejdk21_linux_aarch64_toolchain_config_repo": "remotejdk21_linux_aarch64_toolchain_config_repo", - "remotejdk21_macos_toolchain_config_repo": "remotejdk21_macos_toolchain_config_repo", - "remotejdk21_macos_aarch64_toolchain_config_repo": "remotejdk21_macos_aarch64_toolchain_config_repo", - "remotejdk21_win_toolchain_config_repo": "remotejdk21_win_toolchain_config_repo" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - } - ], - "deps": { - "platforms": "platforms@0.0.7", - "rules_cc": "rules_cc@0.0.9", - "bazel_skylib": "bazel_skylib@1.3.0", - "rules_proto": "rules_proto@4.0.0", - "rules_license": "rules_license@0.0.7", - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_java~7.1.0", - "urls": [ - "https://github.com/bazelbuild/rules_java/releases/download/7.1.0/rules_java-7.1.0.tar.gz" - ], - "integrity": "sha256-o3pOX2OrgnFuXdau75iO2EYcegC46TYnImKJn1h81OE=", - "strip_prefix": "", - "remote_patches": {}, - "remote_patch_strip": 0 - } - } - }, - "rules_license@0.0.7": { - "name": "rules_license", - "version": "0.0.7", - "key": "rules_license@0.0.7", - "repoName": "rules_license", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [], - "extensionUsages": [], - "deps": { - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_license~0.0.7", - "urls": [ - "https://github.com/bazelbuild/rules_license/releases/download/0.0.7/rules_license-0.0.7.tar.gz" - ], - "integrity": "sha256-RTHezLkTY5ww5cdRKgVNXYdWmNrrddjPkPKEN1/nw2A=", - "strip_prefix": "", - "remote_patches": {}, - "remote_patch_strip": 0 - } - } - }, - "rules_proto@4.0.0": { - "name": "rules_proto", - "version": "4.0.0", - "key": "rules_proto@4.0.0", - "repoName": "rules_proto", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [], - "extensionUsages": [], - "deps": { - "bazel_skylib": "bazel_skylib@1.3.0", - "rules_cc": "rules_cc@0.0.9", - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_proto~4.0.0", - "urls": [ - "https://github.com/bazelbuild/rules_proto/archive/refs/tags/4.0.0.zip" - ], - "integrity": "sha256-Lr5z6xyuRA19pNtRYMGjKaynwQpck4H/lwYyVjyhoq4=", - "strip_prefix": "rules_proto-4.0.0", - "remote_patches": { - "https://bcr.bazel.build/modules/rules_proto/4.0.0/patches/module_dot_bazel.patch": "sha256-MclJO7tIAM2ElDAmscNId9pKTpOuDGHgVlW/9VBOIp0=" - }, - "remote_patch_strip": 0 - } - } - }, - "rules_python@0.4.0": { - "name": "rules_python", - "version": "0.4.0", - "key": "rules_python@0.4.0", - "repoName": "rules_python", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [ - "@bazel_tools//tools/python:autodetecting_toolchain" - ], - "extensionUsages": [ - { - "extensionBzlFile": "@rules_python//bzlmod:extensions.bzl", - "extensionName": "pip_install", - "usingModule": "rules_python@0.4.0", - "location": { - "file": "https://bcr.bazel.build/modules/rules_python/0.4.0/MODULE.bazel", - "line": 7, - "column": 28 - }, - "imports": { - "pypi__click": "pypi__click", - "pypi__pip": "pypi__pip", - "pypi__pip_tools": "pypi__pip_tools", - "pypi__pkginfo": "pypi__pkginfo", - "pypi__setuptools": "pypi__setuptools", - "pypi__wheel": "pypi__wheel" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - } - ], - "deps": { - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "rules_python~0.4.0", - "urls": [ - "https://github.com/bazelbuild/rules_python/releases/download/0.4.0/rules_python-0.4.0.tar.gz" - ], - "integrity": "sha256-lUqom0kb5KCDMEosuDgBnIuMNyCnq7nEy4GseiQjDOo=", - "strip_prefix": "", - "remote_patches": { - "https://bcr.bazel.build/modules/rules_python/0.4.0/patches/propagate_pip_install_dependencies.patch": "sha256-v7S/dem/mixg63MF4KoRGDA4KEol9ab/tIVp+6Xq0D0=", - "https://bcr.bazel.build/modules/rules_python/0.4.0/patches/module_dot_bazel.patch": "sha256-kG4VIfWxQazzTuh50mvsx6pmyoRVA4lfH5rkto/Oq+Y=" - }, - "remote_patch_strip": 1 - } - } - }, - "platforms@0.0.7": { - "name": "platforms", - "version": "0.0.7", - "key": "platforms@0.0.7", - "repoName": "platforms", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [], - "extensionUsages": [], - "deps": { - "rules_license": "rules_license@0.0.7", - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "platforms", - "urls": [ - "https://github.com/bazelbuild/platforms/releases/download/0.0.7/platforms-0.0.7.tar.gz" - ], - "integrity": "sha256-OlYcmee9vpFzqmU/1Xn+hJ8djWc5V4CrR3Cx84FDHVE=", - "strip_prefix": "", - "remote_patches": {}, - "remote_patch_strip": 0 - } - } - }, - "protobuf@3.19.6": { - "name": "protobuf", - "version": "3.19.6", - "key": "protobuf@3.19.6", - "repoName": "protobuf", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [], - "extensionUsages": [], - "deps": { - "bazel_skylib": "bazel_skylib@1.3.0", - "zlib": "zlib@1.3", - "rules_python": "rules_python@0.4.0", - "rules_cc": "rules_cc@0.0.9", - "rules_proto": "rules_proto@4.0.0", - "rules_java": "rules_java@7.1.0", - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "protobuf~3.19.6", - "urls": [ - "https://github.com/protocolbuffers/protobuf/archive/refs/tags/v3.19.6.zip" - ], - "integrity": "sha256-OH4sVZuyx8G8N5jE5s/wFTgaebJ1hpavy/johzC0c4k=", - "strip_prefix": "protobuf-3.19.6", - "remote_patches": { - "https://bcr.bazel.build/modules/protobuf/3.19.6/patches/relative_repo_names.patch": "sha256-w/5gw/zGv8NFId+669hcdw1Uus2lxgYpulATHIwIByI=", - "https://bcr.bazel.build/modules/protobuf/3.19.6/patches/remove_dependency_on_rules_jvm_external.patch": "sha256-THUTnVgEBmjA0W7fKzIyZOVG58DnW9HQTkr4D2zKUUc=", - "https://bcr.bazel.build/modules/protobuf/3.19.6/patches/add_module_dot_bazel_for_examples.patch": "sha256-s/b1gi3baK3LsXefI2rQilhmkb2R5jVJdnT6zEcdfHY=", - "https://bcr.bazel.build/modules/protobuf/3.19.6/patches/module_dot_bazel.patch": "sha256-S0DEni8zgx7rHscW3z/rCEubQnYec0XhNet640cw0h4=" - }, - "remote_patch_strip": 1 - } - } - }, - "zlib@1.3": { - "name": "zlib", - "version": "1.3", - "key": "zlib@1.3", - "repoName": "zlib", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [], - "extensionUsages": [], - "deps": { - "platforms": "platforms@0.0.7", - "rules_cc": "rules_cc@0.0.9", - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "zlib~1.3", - "urls": [ - "https://github.com/madler/zlib/releases/download/v1.3/zlib-1.3.tar.gz" - ], - "integrity": "sha256-/wukwpIBPbwnUws6geH5qBPNOd4Byl4Pi/NVcC76WT4=", - "strip_prefix": "zlib-1.3", - "remote_patches": { - "https://bcr.bazel.build/modules/zlib/1.3/patches/add_build_file.patch": "sha256-Ei+FYaaOo7A3jTKunMEodTI0Uw5NXQyZEcboMC8JskY=", - "https://bcr.bazel.build/modules/zlib/1.3/patches/module_dot_bazel.patch": "sha256-fPWLM+2xaF/kuy+kZc1YTfW6hNjrkG400Ho7gckuyJk=" - }, - "remote_patch_strip": 0 - } - } - }, - "apple_support@1.5.0": { - "name": "apple_support", - "version": "1.5.0", - "key": "apple_support@1.5.0", - "repoName": "build_bazel_apple_support", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [ - "@local_config_apple_cc_toolchains//:all" - ], - "extensionUsages": [ - { - "extensionBzlFile": "@build_bazel_apple_support//crosstool:setup.bzl", - "extensionName": "apple_cc_configure_extension", - "usingModule": "apple_support@1.5.0", - "location": { - "file": "https://bcr.bazel.build/modules/apple_support/1.5.0/MODULE.bazel", - "line": 17, - "column": 35 - }, - "imports": { - "local_config_apple_cc": "local_config_apple_cc", - "local_config_apple_cc_toolchains": "local_config_apple_cc_toolchains" - }, - "devImports": [], - "tags": [], - "hasDevUseExtension": false, - "hasNonDevUseExtension": true - } - ], - "deps": { - "bazel_skylib": "bazel_skylib@1.3.0", - "platforms": "platforms@0.0.7", - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "apple_support~1.5.0", - "urls": [ - "https://github.com/bazelbuild/apple_support/releases/download/1.5.0/apple_support.1.5.0.tar.gz" - ], - "integrity": "sha256-miM41vja0yRPgj8txghKA+TQ+7J8qJLclw5okNW0gYQ=", - "strip_prefix": "", - "remote_patches": {}, - "remote_patch_strip": 0 - } - } - }, - "bazel_skylib@1.3.0": { - "name": "bazel_skylib", - "version": "1.3.0", - "key": "bazel_skylib@1.3.0", - "repoName": "bazel_skylib", - "executionPlatformsToRegister": [], - "toolchainsToRegister": [ - "//toolchains/unittest:cmd_toolchain", - "//toolchains/unittest:bash_toolchain" - ], - "extensionUsages": [], - "deps": { - "platforms": "platforms@0.0.7", - "bazel_tools": "bazel_tools@_", - "local_config_platform": "local_config_platform@_" - }, - "repoSpec": { - "bzlFile": "@bazel_tools//tools/build_defs/repo:http.bzl", - "ruleClassName": "http_archive", - "attributes": { - "name": "bazel_skylib~1.3.0", - "urls": [ - "https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz" - ], - "integrity": "sha256-dNVE2W9KW7Yw1GXKi7z+Ix41lOWq5X4e2/F6brPKJQY=", - "strip_prefix": "", - "remote_patches": {}, - "remote_patch_strip": 0 - } - } - } - }, - "moduleExtensions": {} -}