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 摘要。