-
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
ng update assumes incorrect version present #25925
Comments
Dupicate of #22162 |
Why are you closing this, especially as completed, @alan-agius4 ? In the other issue, this was mistakenly treated as feature request and subjected to some vote. This is clearly unintended behaviour when an updating fails and should be treated as a bug. This issue still persists. |
That issue was wrongly labelled. |
thank you for taking care of it. |
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
After a failed run of
ng update
, successive runs will assume the presence of the version I tried updating to.Repro:
$ ng update @angular/cli@12
fail for some dependency reasons$ ng update @angular/cli@12
and getPackage '@angular/cli' is already up to date.
It basically forgets about the current project not being updated yet and the migration scripts it still needs to run:Bonus: I think angular CLI is so excited to be updated globally (which makes no sense when just trying to upgrade a project) that it totally forgets to check if the angular project you're in right now actually needs an upgrade ?
none of which actually applies to the project of course.
Minimal Reproduction
Repro:
$ ng update @angular/cli@12
fail for some dependency reasons$ ng update @angular/cli@12
and getPackage '@angular/cli' is already up to date.
althoughException or Error
Your Environment
The text was updated successfully, but these errors were encountered: