Skip to content

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

@arnonax-tr

Description

@arnonax-tr

Description

I cloned the repo and tried to build the dotnet library (as I wanted to send a PR) according to this README file, on my work machine which doesn't have admin privileges.

Reproducible Code

bazel build dotnet/...

Debugging Logs

INFO: Repository rules_rust instantiated at:
  C:/temp/selenium/WORKSPACE:27:13: in <toplevel>
Repository rule http_archive defined at:
  C:/users/<username>/_bazel_<username>/tbbdyysj/external/bazel_tools/tools/build_defs/repo/http.bzl:387:31: in <toplevel>
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/<username>/_bazel_<username>/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/<username>/_bazel_<username>/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/<username>/_bazel_<username>/tbbdyysj/external/rules_rust/temp16874040712485521303/rules_rust-0.55.5.tar.gz to C:/users/<username>/_bazel_<username>/tbbdyysj/external/rules_rust/temp16874040712485521303: Cannot create symlink (name=C:\users\<username>\_bazel_<username>\tbbdyysj\external\rules_rust\examples\bzlmod\all_crate_deps\.bazelversion, target=C:\users\<username>\_bazel_<username>\tbbdyysj\external\rules_rust\examples\bzlmod\.bazelversion): ERROR: src/main/native/windows/file-jni.cc(140): nativeCreateSymlink(\\?\C:\users\<username>\_bazel_<username>\tbbdyysj\external\rules_rust\examples\bzlmod\all_crate_deps\.bazelversion, \\?\C:\users\<username>\_bazel_<username>\tbbdyysj\external\rules_rust\examples\bzlmod\.bazelversion): ERROR: src/main/native/windows/file.cc(523): CreateSymlink(\\?\C:\users\<username>\_bazel_<username>\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/<username>/_bazel_<username>/tbbdyysj/external/rules_rust/temp16874040712485521303/rules_rust-0.55.5.tar.gz to C:/users/<username>/_bazel_<username>/tbbdyysj/external/rules_rust/temp16874040712485521303: Cannot create symlink (name=C:\users\<username>\_bazel_<username>\tbbdyysj\external\rules_rust\examples\bzlmod\all_crate_deps\.bazelversion, target=C:\users\<username>\_bazel_<username>\tbbdyysj\external\rules_rust\examples\bzlmod\.bazelversion): ERROR: src/main/native/windows/file-jni.cc(140): nativeCreateSymlink(\\?\C:\users\<username>\_bazel_<username>\tbbdyysj\external\rules_rust\examples\bzlmod\all_crate_deps\.bazelversion, \\?\C:\users\<username>\_bazel_<username>\tbbdyysj\external\rules_rust\examples\bzlmod\.bazelversion): ERROR: src/main/native/windows/file.cc(523): CreateSymlink(\\?\C:\users\<username>\_bazel_<username>\tbbdyysj\external\rules_rust\examples\bzlmod\.bazelversion): createSymbolicLinkW failed (permission denied). Either Windows developer mode or admin privileges are required.
Computing main repo mapping:

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs-triagingA Selenium member will evaluate this soon!C-dotnet.NET BindingsI-defectSomething is not working as intendedOS-windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions