SeleniumHQ / SeleniumHQ/selenium

[🐛 Bug]: Can't build the (dotnet) project on a Windows machine without admin rights

Open
#16,349 13 comments 0 reactions 0 assignees View on GitHub
A-needs-triaging C-dotnet I-defect OS-windows
Dominant language
Java
Stars
34.5k
Forks
8.7k
Avg merge
2d 1h
Merged PRs (30d)
92

Description

### Description

I cloned the repo and tried to build the dotnet library (as I wanted to send a PR) according to this [README](https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/README.md) file, on my work machine which doesn't have admin privileges.

### Reproducible Code

```shell
bazel build dotnet/...
```

### Debugging Logs

```logs
INFO: Repository rules_rust instantiated at:
C:/temp/selenium/WORKSPACE:27:13: in
Repository rule http_archive defined at:
C:/users//_bazel_/tbbdyysj/external/bazel_tools/tools/build_defs/repo/http.bzl:387:31: in
INFO: repository @@rules_rust' used the following cache hits instead of downloading the corresponding file.
* Hash '7845e21d7486507eaa0f56dd23929767f074e26d302147a8c8cee99ae8f36db4' for https://github.com/bazelbuild/rules_rust/releases/download/0.55.5/rules_rust-0.55.5.tar.gz
If the definition of 'repository @@rules_rust' was updated, verify that the hashes were also updated.
ERROR: C:/users//_bazel_/tbbdyysj/external/bazel_tools/tools/build_defs/repo/http.bzl:136:45: An error occurred during the fetch of repository 'rules_rust':
Traceback (most recent call last):
File "C:/users//_bazel_/tbbdyysj/external/bazel_tools/tools/build_defs/repo/http.bzl", line 136, column 45, in _http_archive_impl
download_info = ctx.download_and_extract(
Error in download_and_extract: java.io.IOException: Error extracting C:/users//_bazel_/tbbdyysj/external/rules_rust/temp16874040712485521303/rules_rust-0.55.5.tar.gz to C:/users//_bazel_/tbbdyysj/external/rules_rust/temp16874040712485521303: Cannot create symlink (name=C:\users\\_bazel_\tbbdyysj\external\rules_rust\examples\bzlmod\all_crate_deps\.bazelversion, target=C:\users\\_bazel_\tbbdyysj\external\rules_rust\examples\bzlmod\.bazelversion): ERROR: src/main/native/windows/file-jni.cc(140): nativeCreateSymlink(\\?\C:\users\\_bazel_\tbbdyysj\external\rules_rust\examples\bzlmod\all_crate_deps\.bazelversion, \\?\C:\users\\_bazel_\tbbdyysj\external\rules_rust\examples\bzlmod\.bazelversion): ERROR: src/main/native/windows/file.cc(523): CreateSymlink(\\?\C:\users\\_bazel_\tbbdyysj\external\rules_rust\examples\bzlmod\.bazelversion): createSymbolicLinkW failed (permission denied). Either Windows developer mode or admin privileges are required.
ERROR: Error computing the main repository mapping: no such package '@@rules_rust//rust': java.io.IOException: Error extracting C:/users//_bazel_/tbbdyysj/external/rules_rust/temp16874040712485521303/rules_rust-0.55.5.tar.gz to C:/users//_bazel_/tbbdyysj/external/rules_rust/temp16874040712485521303: Cannot create symlink (name=C:\users\\_bazel_\tbbdyysj\external\rules_rust\examples\bzlmod\all_crate_deps\.bazelversion, target=C:\users\\_bazel_\tbbdyysj\external\rules_rust\examples\bzlmod\.bazelversion): ERROR: src/main/native/windows/file-jni.cc(140): nativeCreateSymlink(\\?\C:\users\\_bazel_\tbbdyysj\external\rules_rust\examples\bzlmod\all_crate_deps\.bazelversion, \\?\C:\users\\_bazel_\tbbdyysj\external\rules_rust\examples\bzlmod\.bazelversion): ERROR: src/main/native/windows/file.cc(523): CreateSymlink(\\?\C:\users\\_bazel_\tbbdyysj\external\rules_rust\examples\bzlmod\.bazelversion): createSymbolicLinkW failed (permission denied). Either Windows developer mode or admin privileges are required.
Computing main repo mapping:
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.