fix: allow empty glob for `testdata` in the Gazelle extension (#432)

Closes https://github.com/bazelbuild/bazel-skylib/issues/431
This commit is contained in:
Chuck Grindel 2023-02-08 11:08:56 -07:00 committed by GitHub
parent 9c7c45b876
commit facabc1db3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,5 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
load("@bazel_gazelle//:def.bzl", "gazelle", "gazelle_binary")
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
# gazelle:exclude testdata
@ -25,9 +25,12 @@ go_test(
srcs = ["gazelle_test.go"],
data = [
":gazelle-skylib",
] + glob([
] + glob(
[
"testdata/**",
]),
],
allow_empty = True,
),
embed = [":bzl"],
deps = [
"@bazel_gazelle//testtools:go_default_library",