From f8e903bdfe60400e80531d76e83f9ec3f5216183 Mon Sep 17 00:00:00 2001 From: Martin Medler Date: Sun, 17 Jul 2022 09:26:16 +0200 Subject: [PATCH] Make hermetic interpreters compatible to disallow_empty_glob 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. --- python/repositories.bzl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/repositories.bzl b/python/repositories.bzl index 1441432547..50610782e9 100644 --- a/python/repositories.bzl +++ b/python/repositories.bzl @@ -140,6 +140,8 @@ filegroup( "Scripts/**", "share/**", ], + # Platform-agnostic filegroup can't match on all patterns. + allow_empty = True, exclude = [ "**/* *", # Bazel does not support spaces in file names. ],