We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The issue is caused by the rule: nodejs_binary
No
Failed to build nodejs_binary on Windows when using linux_amd64 target.
It looks like nodejs_binary_macro is trying to run @nodejs_linux_amd64//:bin/nodejs/node.exe
@nodejs_linux_amd64//:bin/nodejs/node.exe
Use this repo to reproduce:
cd %TEMP% git clone git@github.com:scalio/bazel-nestjs-starter.git cd bazel-nestjs-starter git checkout 92f3ffe573136776d71a1bc42630fe5c1b4700bb bazel build --platforms=@build_bazel_rules_nodejs//toolchains/node:linux_amd64 //src:docker
or
bazel build --platforms=@build_bazel_rules_nodejs//toolchains/node:linux_amd64 //src:server
INFO: Analyzed target //src:docker (656 packages loaded, 19072 targets configured). INFO: Found 1 target... ERROR: missing input file '@nodejs_linux_amd64//:bin/nodejs/node.exe' ERROR: C:/users/root/appdata/local/temp/bazel-nestjs-starter/src/BUILD.bazel:37:1: //src:docker: missing input file '@nodejs_linux_amd64//:bin/nodejs/node.exe' Target //src:docker failed to build ERROR: C:/users/root/appdata/local/temp/bazel-nestjs-starter/src/BUILD.bazel:37:1 1 input file(s) do not exist INFO: Elapsed time: 560.307s, Critical Path: 0.21s INFO: 0 processes. FAILED: Build did NOT complete successfully
Operating System:
Windows 10 Pro version 1903 (build 18362.207)
Output of bazel version:
bazel version
0.27.0
Rules version (SHA):
0.33.0 (937b9f3dd2cc95941d9989e1292656c57912f096a1541d7dc17683622501fe11)
The text was updated successfully, but these errors were encountered:
/cc @Globegitter
Sorry, something went wrong.
Thanks for the clean repro. I have a fix and will post a PR shortly.
fix: fix for node windows cross-compile
4b791da
Fixes issue bazel-contrib#909: Toolchains support: Failed to build on Windows for Linux
67b2520
001d945
Fixes issue #909: Toolchains support: Failed to build on Windows for Linux
Successfully merging a pull request may close this issue.
🐞 bug report
Affected Rule
The issue is caused by the rule: nodejs_binary
Is this a regression?
No
Description
Failed to build nodejs_binary on Windows when using linux_amd64 target.
It looks like nodejs_binary_macro is trying to run
@nodejs_linux_amd64//:bin/nodejs/node.exe
🔬 Minimal Reproduction
Use this repo to reproduce:
or
🔥 Exception or Error
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules version (SHA):
The text was updated successfully, but these errors were encountered: