Skip to content

Commit 32e331b

Browse files
authored
chore!: enable --windows_enable_symlinks by default (bazel-contrib#3663)
Supporting Windows without full symlink support is quite difficult because we rely on symlinks in many places. Since Windows support is mediocre already, just require symlinks to be enabled. Symlink support in Windows has been around for a long time now and is available via non-admin mechanisms such as DevMode.
1 parent d1279c3 commit 32e331b

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

.bazelrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
# To update the file, execute
66
import %workspace%/.bazelrc.deleted_packages
77

8+
# Symlinks are used extensively because of runfiles, venvs, and other reasons.
9+
# Supporting otherwise is very complex with little benefit.
10+
startup --windows_enable_symlinks
11+
812
test --test_output=errors
913

1014
# Do NOT implicitly create empty __init__.py files in the runfiles tree.

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ END_UNRELEASED_TEMPLATE
5858

5959
{#v0-0-0-changed}
6060
### Changed
61+
62+
**Breaking**
63+
* {obj}`--windows_enable_symlinks` is required. Add `startup
64+
--windows_enable_symlinks` to your `.bazelrc` to enable Bazel using full
65+
symlink support on Windows.
66+
67+
Other changes:
6168
* (pypi) Update dependencies used for `compile_pip_requirements`, building
6269
sdists in the `whl_library` rule and fetching wheels using `pip`.
6370

0 commit comments

Comments
 (0)