-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows: enable symlink support by default #8704
Comments
One other possible way to do this would be to check the registry. In pseudo-code:
|
Duplicate issue: #7954 |
It's been several years since this was filed. Are there plans to enable, or known blockers to enabling, symlinks on windows? Some light searching seems to indicate Windows has had this support for many years; perhaps long enough has passed that whatever versions had a problem aren't really supported anymore? In particular, i found #5807 which seems to indicate several language rules enable symlinks on windows. And the bazel docs seem to recommend enabling it (while simultaneously warning not to because they're "expensive"). In any case, it's looking like rules_python will join the set of rules that requires them to be enabled. cc @meteorcloudy (seems he was active on 5807, and it doesn't look like there are any current bazel members on this issue) |
Note that, here symlink actually means "file symlink", we use junction for directory symlink on Windows, it has always been working. But for creating file symlinks, the user still requires admin right (to run bazel or to enable developer mode). We don't want to add this hard requirement for Bazel users. |
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team ( |
This issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please post |
Windows 10 version 1703 (Creators Update) brought unprivileged symlink support to Windows. (After enabling Developer Mode.)
It might be time to enable symlink support in Bazel on Windows by default.
Bazel could possibly also detect if symlinks are supported (i.e. try to create one) and fall back to no support if that failed.
Version: 0.26.0
The text was updated successfully, but these errors were encountered: