From 86faa07fef8731b82344489174ce910f7e140cb5 Mon Sep 17 00:00:00 2001 From: hunshcn Date: Thu, 16 May 2024 12:02:52 +0800 Subject: [PATCH] fix buildifier lint --- gazelle/deps.bzl | 1 + gazelle/python/BUILD.bazel | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gazelle/deps.bzl b/gazelle/deps.bzl index 45369c5f44..f4f4c24fc7 100644 --- a/gazelle/deps.bzl +++ b/gazelle/deps.bzl @@ -25,6 +25,7 @@ def go_repository(name, **kwargs): _go_repository(name = name, **kwargs) def python_stdlib_list_deps(): + "Fetch python stdlib list dependencies" http_file( name = "python_stdlib_list_3_8", sha256 = "ee6dc367011ff298b906dbaab408940aa57086d5f8f47278f4b7523b9aa13ae3", diff --git a/gazelle/python/BUILD.bazel b/gazelle/python/BUILD.bazel index 09f0bf5b65..195c77623d 100644 --- a/gazelle/python/BUILD.bazel +++ b/gazelle/python/BUILD.bazel @@ -52,11 +52,11 @@ copy_file( name = "stdlib_list", src = select( { - "@rules_python//python/config_settings:is_python_3.8": "@python_stdlib_list_3_8//file", - "@rules_python//python/config_settings:is_python_3.9": "@python_stdlib_list_3_9//file", "@rules_python//python/config_settings:is_python_3.10": "@python_stdlib_list_3_10//file", "@rules_python//python/config_settings:is_python_3.11": "@python_stdlib_list_3_11//file", "@rules_python//python/config_settings:is_python_3.12": "@python_stdlib_list_3_12//file", + "@rules_python//python/config_settings:is_python_3.8": "@python_stdlib_list_3_8//file", + "@rules_python//python/config_settings:is_python_3.9": "@python_stdlib_list_3_9//file", # This is the same behaviour as previously "//conditions:default": "@python_stdlib_list_3_11//file", },