Skip to content

Commit

Permalink
fix: allow empty glob for testdata in the Gazelle extension (#432)
Browse files Browse the repository at this point in the history
Closes #431
  • Loading branch information
cgrindel authored Feb 8, 2023
1 parent 9c7c45b commit facabc1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions gazelle/bzl/BUILD
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -25,9 +25,12 @@ go_test(
srcs = ["gazelle_test.go"],
data = [
":gazelle-skylib",
] + glob([
"testdata/**",
]),
] + glob(
[
"testdata/**",
],
allow_empty = True,
),
embed = [":bzl"],
deps = [
"@bazel_gazelle//testtools:go_default_library",
Expand Down

0 comments on commit facabc1

Please sign in to comment.