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
{{ message }}
Repository navigation
windows: drop the js_binary build-tool shim once bazel-lib or rules_js export the runfiles manifest again (part of #13788) #13889
Part of #13788. The fix for #13788 adds a rules_dx shim for Windows js_binary build tools. It brings back the RUNFILES_MANIFEST_FILE export that bazel_lib 3.7.3+ dropped. The shim should be removed once upstream fixes the bug.
Upstream cause: bazel-lib lib/windows_utils.bzlcreate_windows_native_launcher_script. Since bazel-lib#1296 (v3.7.3) it runs the sibling .sh without calling :rlocation, so it no longer exports RUNFILES_MANIFEST_FILE. rules_js js/private/bash.bzlBASH_INITIALIZE_RUNFILES then looks for tsc.sh.runfiles, does not find it, and fails with RUNFILES environment variable is not set in every build action.
Floor: MODULE.bazel:431bazel_dep(name = "bazel_lib", version = "3.8.0").
Fix
Report the bug to bazel-lib. Have the sibling-.sh branch also set RUNFILES_MANIFEST_FILE (%~f0.runfiles\MANIFEST, else %~f0.runfiles_manifest) when it is unset. Alternatively, have the rules_js launcher fall back to ${0%.sh}.bat.runfiles.
Once a bazel_lib or rules_js release with the fix is the floor (or rules_js makes the hermetic launcher the default with Windows arm64 toolchains), delete js_build_tool and point the labels back at @npm_typescript//:tsc and @npm_typescript//:validator.
Verify by running //examples/adopt-polyglot:consumer_test through evidence.yml on windows_x86_64 and windows_arm64.
Wrappers to drop with the shim (from #13927): //javascript/private:vite_build_tool, //astro/private:astro_build_tool, //javascript/private/quality/bin:{astro,mdx,svelte,vue}_tsc_tool, //typescript/private/quality:tsc_gate_tool (plus //typescript/private:tsc/validator from #13857). Removal is a revert of their callers to the js_binary targets.
Tripwire added in #14260 (//typescript/tests:windows_tool_tests_upstream_launcher). Remaining: report the bug to bazel-lib (maintainer); once the tripwire fires on a fixed release, delete js_build_tool plus every caller from git grep js_build_tool, the tripwire test and the typescript/private/proto.bzl:46 note; verify //examples/adopt-polyglot:consumer_test via evidence.yml on windows_x86_64 and windows_arm64.
Tripwire now also watches rules_js's bash {{initialize_runfiles}} (#14488). Remaining: report the bug to bazel-lib (maintainer); once the tripwire fires, delete js_build_tool plus callers (git grep js_build_tool), the tripwire tests and the typescript/private/proto.bzl:46 note; verify //examples/adopt-polyglot:consumer_test via evidence.yml on windows_x86_64 and windows_arm64.
Blocked: removal needs a bazel_lib or rules_js release that restores RUNFILES_MANIFEST_FILE (tripwire //typescript/tests:windows_tool_tests_upstream_launcher has not fired), and the bazel-lib bug report is a maintainer step.
Next slice: once the tripwire fires on a new floor, delete js_build_tool and its callers (git grep js_build_tool), the tripwire tests and the typescript/private/proto.bzl:46 note, then run //examples/adopt-polyglot:consumer_test through evidence on windows_x86_64 and windows_arm64.
Activity
TrapsterDK commentedon Nov 19, 2026
Wrappers to drop with the shim (from #13927):
//javascript/private:vite_build_tool,//astro/private:astro_build_tool,//javascript/private/quality/bin:{astro,mdx,svelte,vue}_tsc_tool,//typescript/private/quality:tsc_gate_tool(plus//typescript/private:tsc/validatorfrom #13857). Removal is a revert of their callers to thejs_binarytargets.TrapsterDK commentedon Nov 20, 2026
Tripwire added in #14260 (
//typescript/tests:windows_tool_tests_upstream_launcher). Remaining: report the bug to bazel-lib (maintainer); once the tripwire fires on a fixed release, deletejs_build_toolplus every caller fromgit grep js_build_tool, the tripwire test and thetypescript/private/proto.bzl:46note; verify//examples/adopt-polyglot:consumer_testvia evidence.yml on windows_x86_64 and windows_arm64.typescript: tripwire test for the upstream Windows js_binary launcher…
typescript: tripwire test for the upstream Windows js_binary launcher…
TrapsterDK commentedon Nov 21, 2026
Tripwire now also watches rules_js's bash
{{initialize_runfiles}}(#14488). Remaining: report the bug to bazel-lib (maintainer); once the tripwire fires, deletejs_build_toolplus callers (git grep js_build_tool), the tripwire tests and thetypescript/private/proto.bzl:46note; verify//examples/adopt-polyglot:consumer_testvia evidence.yml on windows_x86_64 and windows_arm64.typescript: tripwire also watches rules_js bash runfiles init (part of …
typescript: tripwire also watches rules_js bash runfiles init (part of …
TrapsterDK commentedon Nov 21, 2026
cloud-claim 927c03f8
Generated by Claude Code
TrapsterDK commentedon Nov 21, 2026
Blocked: removal needs a bazel_lib or rules_js release that restores
RUNFILES_MANIFEST_FILE(tripwire//typescript/tests:windows_tool_tests_upstream_launcherhas not fired), and the bazel-lib bug report is a maintainer step.Next slice: once the tripwire fires on a new floor, delete
js_build_tooland its callers (git grep js_build_tool), the tripwire tests and thetypescript/private/proto.bzl:46note, then run//examples/adopt-polyglot:consumer_testthrough evidence on windows_x86_64 and windows_arm64.Generated by Claude Code