-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
P2We'll consider working on this in future. (Assignee optional)We'll consider working on this in future. (Assignee optional)type: documentation (cleanup)
Description
Description of the problem / feature request:
https://docs.bazel.build/versions/master/be/functions.html#glob says:
If a rule and a source file with the same name both exist in the package, the glob will return the outputs of the rule instead of the source file.
This isn't correct in the current version of Bazel (nor any I can remember using). Given the following workspace:
$ touch WORKSPACE
$ touch hello.c
$ cat >BUILD <<'EOF'
genrule(
name = "hello.c",
outs = ["hello-gen.c"],
cmd = "touch $@",
)
print("glob: ", glob(["*"]))
EOF
Running bazel build
will print out hello.c
, not hello-gen.c
.
What operating system are you running Bazel on?
macOS
What's the output of bazel info release
?
release 1.2.1
Metadata
Metadata
Assignees
Labels
P2We'll consider working on this in future. (Assignee optional)We'll consider working on this in future. (Assignee optional)type: documentation (cleanup)