Skip to content

Commit 7c6b109

Browse files
authored
tests: set --windows_enable_symlinks in bzlmod example (#3409)
The `//tests:version_test_binary_*` targets fail when run on Bazel 8 with Windows with a "permission denied" error with the Python executable. The notable thing about these tests is they're shell tests with a data dependency on the Python program, so a symlink is created to refer to the Python program. As best I can tell, Bazel 8 isn't creating the symlink quite right, so Windows considers the file non-executable. Setting `--windows_enable_symlinks` fixes this, but it isn't clear why. Presumably it's telling Bazel to create symlinks more properly.
1 parent 179e2cb commit 7c6b109

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/bzlmod/.bazelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Starting with Bazel 8, Windows requires this flag in order
2+
# for symlinks to work properly (namely, so that sh_test with
3+
# py_binary as a data dependency gets symlinks that are executable)
4+
startup --windows_enable_symlinks
5+
16
common --enable_bzlmod
27
common --lockfile_mode=update
38

0 commit comments

Comments
 (0)