-
Notifications
You must be signed in to change notification settings - Fork 94
Worker mode holds bad state for missing dependency #381
Comments
I confirmed that commenting out the programCache, by setting oldProgram to
causes the issue to no longer be reproducible |
This is not reproducible in google3. This is because the google3 generated tsconfig lists all files that were in the Under Bazel, though, we filter out fine-grained npm rules_typescript/internal/build_defs.bzl Line 243 in 0f7c6f6
to avoid an error
Instead we just stitch the files into the action inputs here rules_typescript/internal/build_defs.bzl Lines 102 to 106 in 0f7c6f6
That means that the The right fix is for the target |
Should be resolved by bazel-contrib/rules_nodejs#726 which was just merged. Will leave this open until this is verified after the next rules_nodejs release since CI does not test for this. |
These were missing from node_module_library and break downstream ts_library which should include them in files[] Fixes bazelbuild/rules_typescript#381
These were missing from node_module_library and break downstream ts_library which should include them in files[] Fixes bazelbuild/rules_typescript#381
These were missing from node_module_library and break downstream ts_library which should include them in files[] Fixes bazelbuild/rules_typescript#381
Thanks to @petebacondarwin for isolating this bug.
Create a vanilla TS project containing:
/BUILD.bazel
thing.ts
package.json
Then build:
So far this is WAI because the needed deps are commented out. So uncomment them, which should make the build succeed. However, it still does this:
But if you make no changes and immediately re-build without using the persistent worker, it succeeds.
That means the persistent worker got stuck in a bad state.
The text was updated successfully, but these errors were encountered: