Skip to content

[heft] Windows support regression #5373

@philippe-wm

Description

@philippe-wm

Summary

After upgrading Heft, rush build on Windows started failing with an IO error (couldn't repro with rushx build) happening with random projects, e.g. not consistently the same packages, which seems to indicate that it is a race condition. However it does always happen with /temp/build.

Repro steps

We upgraded Heft and related plugins:

-    "@rushstack/heft": "^0.68.2",
+    "@rushstack/heft": "0.74.5",

Expected result:

rush build still works on all machines

Actual result:

rush build fails on Windows with an IO error

Details

Rig changes:

Image

Build error:

A few projects fail to build with this error:

--[ FAILURE: @wbd/beam-dom-extensions (build) ]--------------[ 2.17 seconds ]--
...
[build:clean] Starting clean
[build:clean] Deleted folder "C:/Users/name/monorepo-root/libraries/beam-dom-extensions/dist".
[build:clean] Deleted folder "C:/Users/name/monorepo-root/libraries/beam-dom-extensions/temp/build".
EPERM: operation not permitted, rmdir 'C:\name\monorepo-root\libraries\beam-dom-extensions\temp\build'

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@rushstack/heft version? 0.74.5
Operating system? Windows
Would you consider contributing a PR? Yes (with solid pointers)
Node.js version (node -v)? 20.18.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Needs Investigation

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions