-
Notifications
You must be signed in to change notification settings - Fork 604
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] Add support for specifying a system-wide build cache location. #2405
Conversation
Ideally this file should be called However I think we made a mistake by designing 🤔 @iclanton What if we call the file |
7370116
to
9d6af55
Compare
It seems like a logical place. Would you imagine a structured config file for specifying options that are normally in a |
@iclanton similar? PNPM uses Though, that would likely fragment over time with the different capabilities of different package managers. So maybe a structured config file where you can provide a list of arbitrary CLI args to append to the package manager call? Then we're getting into territory where the user could easily mess up their installs. I believe this is how we came to the idea of an "allow list" in the original issue, to avoid broken installs. However, the list would need to be kept up to date with package manager tweaks to newer versions over time, which isn't great. Maybe we do the allow list and allow arbitrary args if the user sets some |
This is one of the TODO items listed in #2393 (comment)
This change introduces an
~/.rushrc.json
file that allows a"buildCacheFolder"
to be specified. If this is provided, the cache is stored in this location instead of in each repo's/common/temp/build-cache
folder.