Reputation: 44403
While running yarn run devtools:test
inside my Angular development fork on Windows 11 I got the following error output:
Process exited with status 1: Process exited with status 1
build-runfiles error: CreateSymbolicLinkW failed:
Bazel needs to create symlinks to build the runfiles tree.
Creating symlinks on Windows requires one of the following:
1. Bazel is run with administrator privileges.
2. The system version is Windows 10 Creators Update (1703) or later and developer mode is enabled.
Bazel is ran using Bazelisk in this particular case.
I tried lifting the privileges of my terminal to administator rights. Tried different shell tools (cmd, Windows PowerShell) with raised privileges, but the error persisted.
Nothing worked out. How can I resolve this Bazel symlink issue?
Upvotes: 0
Views: 11
Reputation: 44403
Turns out there is a For Developers panel in Windows 11 where you can push a switch and everything starts working magically.
I found this solution thanks to a post here on GitHub.
On Windows 11 it is in:
settings -> Privacy & security -> For developers -> Install apps from any source, including loose files
Or just search "For developers" in start.
After switching this "on" the issue was resolved and I could run the test.
https://github.com/bazelRio/bazelRio/issues/84
Upvotes: 0