Skip to content

Commit 4b3c2b3

Browse files
authored
Make hermetic interpreters compatible to disallow_empty_glob (bazel-contrib#761)
A single filegroup is used to aggregate the interpreter files. Its platform specific regex patterns are not compatible to the flag `--incompatible_disallow_empty_glob` which forbids any pattern to return an empty list. For example, on a Linux host the `"*.exe",` will be empty.
1 parent f400682 commit 4b3c2b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/repositories.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ filegroup(
140140
"Scripts/**",
141141
"share/**",
142142
],
143+
# Platform-agnostic filegroup can't match on all patterns.
144+
allow_empty = True,
143145
exclude = [
144146
"**/* *", # Bazel does not support spaces in file names.
145147
],

0 commit comments

Comments
 (0)