Open baszalmstra opened 1 year ago
I think you can enable the "Developer Mode" on Windows and then you don't need a privilege to create symlinks.
https://learn.microsoft.com/en-us/windows/apps/get-started/developer-mode-features-and-debugging
I just ran into the same problem (or at least similar, bazel fails to extract the rules_rust tarball due to contained symlinks). On my company-managed laptop, I would need admin privileges to enable "Developer Mode", but I don't have admin privileges. So the workaround doesn't work for me.
This could probably be solved by updating @rules_rust//crate_universe/src/utils/symlink.rs to create junctions instead of symlinking on Windows. I'm unfortunately not very familiar with windows so would need the help of the community to drive such a change 😅
Happy to review a pull-request though!
Relates to https://github.com/bazelbuild/rules_rust/issues/1156
When trying out this project I immediately ran into an issue on Windows:
Looks like
cargo-bazel
tries to create a symlink which is only allowed in rare circumstances on Windows. Hard-links would usually work though?