bazel: Windows: Flipping --incompatible_auto_configure_host_platform flag causes "failed to delete output files before executing action" error
Related https://github.com/bazelbuild/bazel/issues/7081
To reproduce:
git clone https://github.com/bazelbuild/rules_nodejs.git
cd rules_nodejs
bazel build //e2e:e2e_karma
...
bazel build --incompatible_auto_configure_host_platform //e2e:e2e_karma
ERROR: C:/users/pcloudy/_bazel_pcloudy/owxwy7oq/external/build_bazel_rules_typescript/internal/BUILD.bazel:80:1: failed to delete output files before executing action
Target //e2e:e2e_karma failed to build
ERROR: C:/tools/msys64/home/pcloudy/workspace/rules_nodejs/packages/karma/BUILD.bazel:38:1 failed to delete output files before executing action
This affects project like rules_nodejs where worker is used during the build. If I manually kill the worker after the first build, the second build with the flag won’t fail to delete the outputs.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 24 (24 by maintainers)
Commits related to this issue
- Disable //src/test/res:res_test temporally https://github.com/bazelbuild/bazel/issues/9104#issuecomment-521231693 RELNOTES: None PiperOrigin-RevId: 263339618 — committed to bazelbuild/bazel by meteorcloudy 5 years ago
Thanks! I’ll take care of cleaning up this (and combiners_test) after the release.
@katre : https://docs.google.com/document/d/1sEa9cGcLwr0aYGNrhGy8rrNxtLjEzKhh0FGcDlm0ymU/edit