Skip to content

recursive glob in top-level package follows "bazel-*" symlinks #6350

@laszlocsomor

Description

@laszlocsomor

Description of the problem / feature request:

A glob in the top-level package will follow the "bazel-*" convenience symlinks and pick up sources from them.

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

  1. git clone https://github.com/laszlocsomor/projects
  2. cd bazel/examples/glob_in_root_pkg
  3. bazel build -- just do a blank build so we have the "bazel-*" symlinks created
  4. bazel build //:x --spawn_strategy=standalone
  5. cat bazel-genfiles/x.txt

This builds happily on Windows, and the x.txt output will list not only "a.txt" but also files under "bazel-out".

On Linux, this fails at Step 4, but because the files under "bazel-out" are not inputs of the genrule action. However, it still shows that the glob picked up the files.

What operating system are you running Bazel on?

Linux / Windows 10

What's the output of bazel info release?

release 0.17.2

Metadata

Metadata

Assignees

Labels

P1I'll work on this now. (Assignee required)type: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions