Skip to content

[docs] Migrations cope with packages the user removed in App Center 1.0 - #121

Draft
mrd9999 wants to merge 1 commit into
mainfrom
docs-migrations-removed-packages
Draft

mrd9999 wants to merge 1 commit into
mainfrom
docs-migrations-removed-packages

Conversation

@mrd9999

@mrd9999 mrd9999 commented Dec 5, 2026 •

Copy link
Copy Markdown
Member

Tóm tắt (tiếng Việt)

Thêm một mục cho người viết migration vào packages/caramos-ota/MIGRATIONS.md. Từ App Center 1.0, người dùng gỡ được phần lớn gói trên máy, trừ những gì App Center khóa. Vì vậy, migration phải chịu được việc một gói đã bị gỡ: kiểm tra trước, rồi cài lại hoặc bỏ qua, và không bao giờ lỗi. Một migration lỗi chặn mọi bản cập nhật sau nó.

PR cũng thêm hai dòng vào checklist, và nhắc người viết migration thêm tên gói mới cài vào caramos_update_added của App Center.

Chỉ sửa tài liệu, không đổi code caramos-ota. PR này để nháp và sẽ được gộp cùng lúc với App Center 1.0.

Summary

Adds a section to packages/caramos-ota/MIGRATIONS.md. From App Center 1.0 on, people can remove most packages on their computer, except what the App Center locks. So a migration that touches a package that was already installed must cope with the package being gone. It checks first, then reinstalls the package or skips the step, and never fails, because a failed migration blocks every later update. The section points to an existing migration that does this check.

Two checklist lines are added. One of them asks migrations that install a new package to add it to the App Center's caramos_update_added list, so that the App Center shows it as part of CaramOS.

Docs only, no caramos-ota code change. This PR stays a draft until App Center 1.0 is merged.

Screenshots

Mục mới trong MIGRATIONS.md (render tại máy)

How it was tested

  • Docs only.
  • I rendered the new section locally with python-markdown to check the formatting.
  • The example migration named in the text, 20261120100300_external_monitor_brightness, does the check shown and logs and goes on when the reinstall fails.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant