You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the developers in my team is using Windows, and while the new ts_project transpiler option is working just file with Linux and macOS, it fails with The command line is too long. on Windows.
The .bazelrc contains the relevant option that was supposed to make a param become a file as this issue on Bazel repo says, but it has no effect here:
_cli_launcher.bat failed: error executing command
cd C:/users/my_user/_bazel_my_user/x3g4wn4v/execroot/my-service
SET SWC_BINARY_PATH=external/swc_win32-x64-msvc/swc.win32-x64-msvc.node
bazel-out/x64_windows-opt-exec-2B5CBBC6/bin/external/aspect_rules_swc/swc/_cli_launcher.bat --no-swcrc my-service/src/@types/AuthState.ts --out-file bazel-out/x64_windows-fastbuild/bin/my-service/src/@types/AuthState.js -q --no-swcrc my-service/src/@types/Identifiers.ts --out-file bazel-out/x64_windows-fastbuild/bin/my-service/src/@types/Identifiers.js -q --no-swcrc my-service/src/@types/Logger.ts [...] (all the other files here, making the command line long enough for Windows to complaint....)
Execution platform: @local_config_platform//:host
The command line is too long.
🌍 Your Environment
Operating System:
Windows 10
Output of bazel version:
4.2.2
Rules_nodejs version:
4.6.1. Issue also happens when testing with the latest as now (5.1.0).
The text was updated successfully, but these errors were encountered:
This doesn't seem like an rnj issue, but a bug in rules_swc.
The swc rule incorrect reuses the same args object for each iteration when transpiling src files. I'll close this issue and open one on rules_swc and put in a fix.
🐞 bug report
Affected Rule
ts_project
Is this a regression?
No
Description
One of the developers in my team is using Windows, and while the new ts_project transpiler option is working just file with Linux and macOS, it fails with
The command line is too long.
on Windows.The .bazelrc contains the relevant option that was supposed to make a param become a file as this issue on Bazel repo says, but it has no effect here:
🔬 Minimal Reproduction
Any ts_project that sets the transpiler as the following and has enough source files to cause the command line to get too big:
🔥 Exception or Error
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_nodejs version:
The text was updated successfully, but these errors were encountered: