glob is unable to exclude recursive symlinks from evaluation
#13950
Labels
glob is unable to exclude recursive symlinks from evaluation
#13950
Description of the problem / feature request:
globthrows an evaluation error when it detects an infinite recursion in adirectory traversal. However, it detects this recursion even if the specific
subpath leading to that recursion is excluded via the
exclude=[]argument.This means that recursive symlinks cannot be ignored in glob expressions,
even if they occur in subtrees that bazel does not need to be evaluating.
It may also suggest that unnecessary directory tree evaluation is being
performed when using glob expressions.
Consider the following structure:
The following glob expression will fail to evaluate, even though several wildcards
are provided to
exclude=[]indicating that thefoo/barsymlink doesn't need to be followed.Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
I have created a minimal example here:
https://github.com/psigen/bazel-issue-13950
What operating system are you running Bazel on?
Ubuntu 20.04
What's the output of
bazel info release?Have you found anything relevant by searching the web?
I have not found references to this specific issue
The text was updated successfully, but these errors were encountered: