Skip to content
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] Support "disableBuildCache" option in phased command schema #4306

Merged
merged 2 commits into from
Sep 5, 2023

Conversation

dmichon-msft
Copy link
Contributor

@dmichon-msft dmichon-msft commented Sep 1, 2023

Summary

Adds the disableBuildCache option to the schema for phased commands (it is already present for bulk commands). Setting this flag opts out of both the build cache and the legacy skip logic.

Details

Also adds an internal property _runsBeforeInstall on PhasedScriptAction. Intended use case is for, e.g., #4229

How it was tested

Temporarily set up a custom command with the flag enabled and disabled and stepped through in the debugger to validate the code paths.

Impacted documentation

Docs for command-line.json for phased commands.

@chengcyber

@dmichon-msft
Copy link
Contributor Author

Might need to delve into ProjectChangeAnalyzer a bit more.

@dmichon-msft dmichon-msft changed the title [rush] Add "runsBeforeInstall" flag for phased commands [rush] Support "disableBuildCache" option in phased command schema Sep 1, 2023
Co-authored-by: Ian Clanton-Thuon <iclanton@users.noreply.github.com>
@dmichon-msft dmichon-msft merged commit 32ad677 into microsoft:main Sep 5, 2023
5 checks passed
@dmichon-msft dmichon-msft deleted the run-before-install branch September 5, 2023 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants