angular / angular/angular-cli

Failed update prevents further updates

未关闭
#16,020 0 条评论 11 个 reaction 已指派 0 人 在 GitHub 查看
area: @angular/cli freq2: medium severity3: broken type: bug/fix
主要语言
TypeScript
星标
27k
派生
11.8k
平均合并
14 小时 23 分钟
30 天内合并 PR
162

描述

This issue impacts 9.0.0-rc.0 and happened while updating https://github.com/vmware/clarity.

After a failed update such as described in https://github.com/angular/angular-cli/issues/16019, the project will have already been updated to the latest versions.

Attempting to update again will inform the user that everything is up to date.
```
kamik@RED-X1C6 MINGW64 /d/sandbox/clarity (update-9)
$ ng update @angular/cli @angular/core --next --force
Using package manager: 'npm'
Collecting installed dependencies...
Found 109 dependencies.
Fetching dependency metadata from registry...
Package '@angular/cli' is already up to date.
Package '@angular/core' is already up to date.
```

This is inaccurate as the update did not actually complete successfully. To redo the update, a user will have to manually undo commits and reinstall packages, and only then will they be able to attempt to update again.

贡献指南

打开贡献指南

调研方向

从 `ng update @angular/cli @angular/core --next --force` 命令开始,重现 issue #16019 中描述的更新失败序列。跟踪更新入口点,以确定为什么失败的运行会被报告为已是最新版本;当用户无需手动撤销提交或重新安装软件包即可重试更新时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
cli, tooling
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。