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

perf(cli): minimize resolvePackageManager calls #3853

Merged
merged 8 commits into from
Feb 15, 2025

Conversation

erickzhao
Copy link
Member

@erickzhao erickzhao commented Feb 14, 2025

Follow-up PR to #3822

This PR aims to minimize our usage of the resolvePackageManager utility by resolving the package manager once at the start of any API command and passing it through the Listr2 context.

It also saves a boolean to see if we've warned about the NODE_INSTALLER deprecation at any point in the module's lifecycle so that we don't print excessive amounts of warnings.

@erickzhao erickzhao requested a review from a team as a code owner February 14, 2025 02:01
@erickzhao erickzhao changed the title fix(cli): cache package manager result fix(core-utils): cache package manager result Feb 14, 2025
@erickzhao erickzhao force-pushed the cli/only-emit-warning-once branch from 4ca98d7 to b590144 Compare February 14, 2025 17:41
@erickzhao erickzhao marked this pull request as draft February 14, 2025 18:44
@erickzhao erickzhao marked this pull request as ready for review February 14, 2025 22:19
@erickzhao erickzhao changed the title fix(core-utils): cache package manager result perf(cli): minimize resolvePackageManager calls Feb 14, 2025
@VerteDinde VerteDinde added this pull request to the merge queue Feb 14, 2025
Merged via the queue into main with commit e5a78d1 Feb 15, 2025
13 checks passed
@VerteDinde VerteDinde deleted the cli/only-emit-warning-once branch February 15, 2025 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants