Race condition with runfiles tree creation on Windows #12033
Labels
area-Windows
Windows-specific issues and feature requests.
P3
We're not considering working on this, but happy to review a PR. (No assignee)
team-Rules-Server
Issues for serverside rules included with Bazel
type: bug
Description of the problem / feature request:
There is a race condition on Windows where Bazel can create the runfiles tree before the runfiles dependencies, leading to runfiles containing file symlinks even when the actual dependency is a directory (and a directory symlink is expected).
This manifests when running with
--experimental_enable_runfiles
.This prevents reliable use of directories in runfiles trees.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Needs some custom rules, so I've created this repository, which should be usable out of the box. Please see the README in the repository for details steps to reproduce.
https://github.com/nikhilm/demo-runfiles-dir/
What operating system are you running Bazel on?
Windows 10
What's the output of
bazel info release
?release 3.4.1
Have you found anything relevant by searching the web?
No
Any other information, logs, or outputs that you want to share?
Please see the README in the repository.
The text was updated successfully, but these errors were encountered: