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.

@katre

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 24 (24 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks! I’ll take care of cleaning up this (and combiners_test) after the release.