Open lingithub1 opened 1 year ago
Now that --incompatible_disallow_empty_glob
is being flipped in Bazel 8.0, this needs to be a higher priority than P3. I was about to file a bug on incorrect allow_empty
behavior, since it was surprising that it was erroring on patterns instead of the overall result being empty.
Page link:
https://bazel.build/reference/be/functions
Problem description (include actual vs expected text, if applicable):
A part of the effect of
allow_empty
is missing in the description:Where do you see this issue? (include link to specific section of the page, if applicable)
https://bazel.build/reference/be/functions#glob_example states:
https://github.com/bazelbuild/bazel/issues/8195 states:
Therefor, the documentation is missing that
allow_empty = True
will error out not only if the result is empty but also if any of the patterns does not match a single file (or directory, depending on exclude_directories).Any other information you'd like to share?
No response