Skip to content

[rush] Fix an issue where incremental building (with LegacySkipPlugin) would not work when no-op operations were present in the process #4993

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

Merged

Conversation

witcher112
Copy link
Contributor

Summary

In our project we have a several packages that are "buildless" and we enable "ignoreMissingScript" for build command through command-line.json (we don't use phased commands).

After upgrading to latest version of Rush, I discovered that incremental building stopped working in random scenarios.

Details

I've tracked down the issue to LegacySkipPlugin beforeExecuteOperations hook. Turns out that "for" loop inside that hook used "return" statements instead of "continue" to skip registering operations as incremental. I've replaced all of them and verified that fix is working.

How it was tested

Tested on repository with multiple "no-op" build packages.

Impacted documentation

Copy link
Contributor

@dmichon-msft dmichon-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Thanks!

@dmichon-msft dmichon-msft merged commit a4e9c24 into microsoft:main Nov 6, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

2 participants