-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Useless installation of temporary CLI #24024
Comments
Primarily The temporary CLI is installed when an outdated version is used to perform the update. The latest version is always used as the update runner. This is extremely important when there are fixes and features that target the update process, as otherwise during the update the old version with potential bugs is used which might cause updates to fail. As such downloading the temporary version is definitely the better DX. |
Which means that a batch file doing: ng update @angular/cli Would be the faster way to weekly check for updates of your system... That CLI system is outdated every week. |
I strongly belief that developers should not perform dependency updates themselves (At least for non major versions). There are a number of excellent tools that automate this, like RenovateBot which can also be self hosted and thus ideal for corp environments and DependaBot. |
Following a convo with @clydin we decided that we will disable downloading a temporary version of the Angular CLI when running |
… 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
… 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
… 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 #24024
… 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
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. |
Command
update
Is this a regression?
The previous version in which this bug was not present was
No response
Description
I'm not sure if this should be a bug or a feature, it's more of an annoyance.
Every week when I check with 'ng update' it first complains that the CLI is outdated and starts installing a temporary CLI version, which takes a while. Then it tells me there is a new CLI version and I have to install it again with 'ng update @angular/cli', this time for real. Next time I do a 'ng update' it quickly shows me, without the delay.
Is it really necessary to install a new temporary cli version every week ?
Or maybe if there is a new one, can't we have question or a parameter to install the new CLI version (automatically), instead of installing it temporarily (and thus twice)? Just like when you type 'ng new' you also get a question.
Minimal Reproduction
The installed Angular CLI version is outdated.
Installing a temporary Angular CLI versioned 14.2.5 to perform the update.
√ Packages successfully installed.
Exception or Error
No response
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: