-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
fix(ngcc): do not lock if the target is not compiled by Angular #35057
Conversation
This PR looks a lot more complicated than it is. Mostly it is just a refactoring - moving the |
b2d8894
to
ed60dbe
Compare
To support parallel CLI builds we instruct developers to pre-process their node_modules via ngcc at the command line. Despite doing this ngcc was still trying to set a lock when it was being triggered by the CLI for packages that are not going to be processed, since they are not compiled by Angular for instance. This commit checks whether a target package needs to be compiled at all before attempting to set the lock. Fixes angular#35000
ed60dbe
to
8faa7aa
Compare
packages/compiler-cli/ngcc/src/entry_point_finder/targeted_entry_point_finder.ts
Outdated
Show resolved
Hide resolved
packages/compiler-cli/ngcc/src/entry_point_finder/targeted_entry_point_finder.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of minor (and few super-minor) comments. Otherwise lgtm 👌
packages/compiler-cli/ngcc/src/entry_point_finder/targeted_entry_point_finder.ts
Outdated
Show resolved
Hide resolved
packages/compiler-cli/ngcc/test/entry_point_finder/targeted_entry_point_finder_spec.ts
Outdated
Show resolved
Hide resolved
packages/compiler-cli/ngcc/test/entry_point_finder/targeted_entry_point_finder_spec.ts
Show resolved
Hide resolved
packages/compiler-cli/ngcc/test/entry_point_finder/targeted_entry_point_finder_spec.ts
Outdated
Show resolved
Hide resolved
packages/compiler-cli/ngcc/test/entry_point_finder/targeted_entry_point_finder_spec.ts
Outdated
Show resolved
Hide resolved
packages/compiler-cli/ngcc/test/entry_point_finder/targeted_entry_point_finder_spec.ts
Outdated
Show resolved
Hide resolved
packages/compiler-cli/ngcc/test/entry_point_finder/targeted_entry_point_finder_spec.ts
Outdated
Show resolved
Hide resolved
To support parallel CLI builds we instruct developers to pre-process their node_modules via ngcc at the command line. Despite doing this ngcc was still trying to set a lock when it was being triggered by the CLI for packages that are not going to be processed, since they are not compiled by Angular for instance. This commit checks whether a target package needs to be compiled at all before attempting to set the lock. Fixes #35000 PR Close #35057
Since angular#35057, the `markNonAngularPackageAsProcessed()` function is no longer used and can be removed.
…lar#35057) To support parallel CLI builds we instruct developers to pre-process their node_modules via ngcc at the command line. Despite doing this ngcc was still trying to set a lock when it was being triggered by the CLI for packages that are not going to be processed, since they are not compiled by Angular for instance. This commit checks whether a target package needs to be compiled at all before attempting to set the lock. Fixes angular#35000 PR Close angular#35057
Since angular#35057, the `markNonAngularPackageAsProcessed()` function is no longer used and can be removed. PR Close angular#35122
…lar#35057) To support parallel CLI builds we instruct developers to pre-process their node_modules via ngcc at the command line. Despite doing this ngcc was still trying to set a lock when it was being triggered by the CLI for packages that are not going to be processed, since they are not compiled by Angular for instance. This commit checks whether a target package needs to be compiled at all before attempting to set the lock. Fixes angular#35000 PR Close angular#35057
Since angular#35057, the `markNonAngularPackageAsProcessed()` function is no longer used and can be removed. PR Close angular#35122
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
To support parallel CLI builds we instruct developers to pre-process
their node_modules via ngcc at the command line.
Despite doing this ngcc was still trying to set a lock when it was being
triggered by the CLI for packages that are not going to be processed,
since they are not compiled by Angular for instance.
This commit checks whether a target package needs to be compiled
at all before attempting to set the lock.
Fixes #35000