Skip to content

[rush] RUSH_GLOBAL_FOLDER not ised #5252

Open
@kkazala

Description

@kkazala

Summary

I have a GPO policy that limits locations from where the scripts can be executed.
I want to make sure that alls scripts called by rush are executed from C:\Apps folder.

I set RUSH_GLOBAL_FOLDER and RUSH_PNPM_STORE_PATH environment variables. to ensure that all the packages are installed in C:\Apps folder

Image

However, when I run rush update I see that the temporary files are still created in the default c:\users\ location:

Image

I did restart the computer :)

We temporarirly made an exemption in GPO and rush update succeeded.
Then, when runing rush build, which in my case executes gulp bundle, I see another error.
The "D:\folderpath\projectName\NODE_MODULES\.BIN\GULP.CMD is blocked.

Repro steps

I need to build my project using rush.
It all worked before I moved to a managed computer with GPO

I want to make sure that rush only executes files in c:\apps folder

Expected result: rush update and rush build should succeed without creating exemptions in Group policies

Actual result:

After creating exception for C:\Users\YourName folder, I can run rush update but rush build returns

"Returned error code: 1, "spfx-utils" failed to build."

Image

Standard questions

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

Question Answer
@microsoft/rush globally installed version? 5.154.0
rushVersion from rush.json? 5.154.0
useWorkspaces from rush.json? true
Operating system? Windows
Would you consider contributing a PR? No
Node.js version (node -v)? 22.16.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Waiting for Author

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions