Skip to content

Commit

Permalink
Be explicit about alowing empty globs (fourth part)
Browse files Browse the repository at this point in the history
There are several globs that are empty and this prevents building with the incompatible flag #8195.
This commit just makes it explicit that empty is allowed.

Closes #16468.

PiperOrigin-RevId: 481086464
Change-Id: I3497e917f2bf1cd329e327403c528cbd7efe599d
  • Loading branch information
limdor authored and copybara-github committed Oct 14, 2022
1 parent ca1feb1 commit 7ae9ad6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/build_defs/pkg/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ py_library(

filegroup(
name = "archive_testdata",
srcs = glob(["testdata/**"]),
srcs = glob(
["testdata/**"],
allow_empty = True,
),
)

py_test(
Expand Down
1 change: 1 addition & 0 deletions tools/jdk/jdk.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ filegroup(
name = "jdk-lib",
srcs = glob(
["lib/**"],
allow_empty = True,
exclude = [
"lib/missioncontrol/**",
"lib/visualvm/**",
Expand Down

0 comments on commit 7ae9ad6

Please sign in to comment.