fix: serialize installation updates and recover interrupted adoption and rollback

This commit is contained in:
Sycun committed 2026-10-09 10:58:12 +08:00
1 parent 54d8f1187d
commit e8a5392b37
30 files changed
+1250 -124

No files matched your search

+3
View File
@@ -45,6 +45,9 @@ func updateCommandIfNeeded(configPath string, check, apply, rollback bool) (bool
return true, 1
}
printSnapshot(snap)
if !snap.Installed || snap.CheckError != "" {
return true, 1
}
return true, 0
case apply:
res, err := update.Apply(ctx, opts, func(s update.Step) {