Skip to content

fix(@angular/cli): skip downloading temp CLI when running ng update without package names #24028

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
merged 1 commit into from
Oct 6, 2022

Conversation

alan-agius4
Copy link
Collaborator

@alan-agius4 alan-agius4 commented Oct 6, 2022

In the case when ng update is ran without a package name, an update is not be performed. In this case using the current installed version of the CLI is good enough.

Closes #24024

@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Oct 6, 2022
@alan-agius4 alan-agius4 requested a review from clydin October 6, 2022 15:02
@alan-agius4 alan-agius4 removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Oct 6, 2022
@alan-agius4 alan-agius4 removed the request for review from clydin October 6, 2022 16:58
@alan-agius4 alan-agius4 marked this pull request as draft October 6, 2022 16:58
… without package names

In the case when `ng update` is ran without a package name, an update is not be performed. In this case using the current installed version of the CLI is good enough.

Closes angular#24024
@alan-agius4 alan-agius4 force-pushed the update-temp-cli-no-packages branch from 380ac42 to d26fe37 Compare October 6, 2022 17:39
fullMetadata: true,
...npmrc,
...(registry ? { registry } : {}),
});

// TODO: find some way to test this
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure why this was here @clydin maybe you remember? This needs to be removed as otherwise certain errors are not fatal. Example: https://app.circleci.com/pipelines/github/angular/angular-cli/26850/workflows/10782a5e-36c3-4de6-ae85-0ebcfe456e4e/jobs/356140/parallel-runs/0/steps/0-105

The test previously failed because when trying to download the temp version of the CLI. This check is bypassed since pacote is not used.

Copy link
Member

Choose a reason for hiding this comment

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

May have been leftover from before the package names were validated to be registry names.

@alan-agius4 alan-agius4 requested a review from clydin October 6, 2022 17:43
@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label Oct 6, 2022
@alan-agius4 alan-agius4 marked this pull request as ready for review October 6, 2022 17:43
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 6, 2022
@clydin clydin merged commit 3202410 into angular:main Oct 6, 2022
@alan-agius4 alan-agius4 deleted the update-temp-cli-no-packages branch October 6, 2022 20:23
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Useless installation of temporary CLI
2 participants