ERROR: [...]webdriver/BUILD.bazel:269:11: in src attribute of nuget_push rule //dotnet/src/webdriver:publish: '//dotnet/src/webdriver:package' must produce a single file #9730
=>Mon 08/09/2021 12:04:59.52=> d:\Src\Beta\selenium
bazel build //dotnet/...
Starting local Bazel server and connecting to it...
ERROR: D:/src/beta/selenium/dotnet/src/webdriver/BUILD.bazel:269:11: in src attribute of nuget_push rule //dotnet/src/webdriver:publish: '//dotnet/src/webdriver:package' must produce a single file
ERROR: D:/src/beta/selenium/dotnet/src/webdriver/BUILD.bazel:269:11: Analysis of target '//dotnet/src/webdriver:publish' failed
ERROR: Analysis of target '//dotnet/src/webdriver:publish' failed; build aborted:
INFO: Elapsed time: 13.222s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (358 packages loaded, 13105 targets configured)
=>Mon 08/09/2021 12:05:17.99=> d:\Src\Beta\selenium
🐛 Bug Report
I need to build selenium on windows, I followed the instructions and the build is failing. What do I need to do to resolve the error?
To Reproduce
Install bazel using instructions from https://docs.bazel.build/versions/4.1.0/install-windows.html Put bazel in the
PATH
Install msys2 using instructions from https://www.msys2.org/ and update the package database Set theBAZEL_SH
environment variable Runpacman -S zip unzip patch diffutils git
per bazel guidance Install ruby via pacman Install windows version of ruby Install Java JDK and set path or JAVA_HOME to the install directory wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://edelivery.oracle.com/otn-pub/java/jdk/8u301-b09/d3c52aa6bfa54d3ca74e617f18309292/jdk-8u301-windows-x64.exe Install python for windowscd d:\src\beta\selenium bazel build //dotnet/...
Results
dotnet/src/webdriver/BUILD.bazel:269 through 273
Environment
OS: Microsoft Windows [Version 10.0.19042.985]