-
Notifications
You must be signed in to change notification settings - Fork 599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[rush] Feature request for RUSH_TEMP_FOLDER support when pnpm useWorkspaces is true #4974
Comments
Do you want to just move the virtual store folder? We could probably include something similar to It'd require a fair bit of testing, though. |
I'm trying to get all written files by the build out of the git source directory. I'm using RUSH_PNPM_STORE_PATH successfully, so something similar to that would work. |
@SquGus I mean I think this is a quick fix from my perspective. Should just be allowing us to modify the default virtual store directory that we use. We don't manually touch anything in the virtual store I don't believe, so it should just be specifying the override via env var and passing it through. We could possibly do a pre-release of the change to see if it works for what you need? @iclanton thoughts? |
@D4N14L why is it that What @timmydo and I were hoping to do is to set an alternative location for the files placed in While I wait for your response, I will experiment by removing the error thrown at |
@SquGus The reason for this limitation is because the |
Summary
We're trying to reduce
git clean
time for our developers. We have a C# repo used by hundreds of developers that invokes rush build to build 80+ rush projects. Long story short, git clean is part of their workflow due to a full build with caching being faster than incremental rebuilds when switching branches.Currently, git clean can take 5 to 10 minutes to run. From what I can tell, git spends most of the time enumerating files in common/temp.
rushstack/libraries/rush-lib/src/logic/installManager/WorkspaceInstallManager.ts
Line 86 in 681f718
Repro steps
The symlinks created point to the virtual store in common/temp, which is indistinguishable from regular files to git. Just enumerating the files takes a while.
Expected result:
I'd like to specify an environment variable when running rush commands or installing rush that basically has the effect of RUSH_TEMP_FOLDER. Then I would set this environment variable to a location outside of the git repository.
The text was updated successfully, but these errors were encountered: