Skip to content

Commit

Permalink
use symlink for stdlib_list.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
hunshcn committed May 16, 2024
1 parent a0b0943 commit 5cfcf67
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gazelle/python/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
load("@bazel_gazelle//:def.bzl", "gazelle_binary")
load("@bazel_skylib//rules:copy_file.bzl", "copy_file")
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
load(":gazelle_test.bzl", "gazelle_test")

Expand Down Expand Up @@ -47,12 +48,11 @@ go_library(
],
)

genrule(
copy_file(
name = "stdlib_list",
srcs = ["@python_stdlib_list_3_11//file"],
outs = ["stdlib_list.txt"],
cmd_bash = "cat $(SRCS) > $@",
cmd_bat = "type $(SRCS) > $@",
src = "@python_stdlib_list_3_11//file",
out = "stdlib_list.txt",
allow_symlink = True,
)

# gazelle:exclude testdata/
Expand Down

0 comments on commit 5cfcf67

Please sign in to comment.