Skip to content

Skip a retired platform keyring and drop the Apple Silicon GitHub note - #21038

Merged
maralcbr merged 3 commits into
quattrofrom
omacom/asahi-alarm-followups
Dec 1, 2026
Merged

maralcbr merged 3 commits into
quattrofrom
omacom/asahi-alarm-followups

Conversation

@maralcbr

@maralcbr maralcbr commented Dec 1, 2026

Copy link
Copy Markdown
Member

Summary

Two follow-ups to omarchy#19261.

Keyring refresh. A Mac can have a pacman.conf without [asahi-alarm] (from omarchy-refresh-pacman or a channel switch whose upgrade then failed) while an omarchy-mac older than 0.2.8 still lists asahi-alarm-keyring in /usr/share/omarchy-platform/keyrings. omarchy-update-keyring asked pacman for that keyring, got target not found, and stopped omarchy-update before it could upgrade the omarchy-mac that cleans this up.

 omarchy-update-keyring
   keyrings=(archlinux-keyring omarchy-keyring [archlinuxarm-keyring])
-  for each installed platform keyring: keyrings+=(it)
+  platform=(installed platform keyrings, valid names, deduped)
+  if platform:
+    sudo pacman -Sy
+    for each: pacman -Si -- it && keyrings+=(it) || warn "no configured repository carries it"
   sudo pacman -Sy --needed --noconfirm "${keyrings[@]}"

Without a platform keyrings list (x86, and Macs on omarchy-mac 0.2.8 or later), nothing changes. docs/file-layout.md describes the new skip.

Docs. docs/regions.md and manual/02-getting-started.md still said Apple Silicon needs GitHub to update. Every Apple Silicon repository now has a China replica. English only, as docs/i18n.md says.

Evidence

update-keyring-test.sh in an Arch Linux ARM container:

  • Before: 16/16 pass, with no case for a platform keyring that no repository carries.
  • After: 18/18. New cases:
    • a retired platform keyring is skipped with a warning, and the others still refresh;
    • all of them retired, only Arch's and Omarchy's keyrings refresh;
    • the sync happens before any lookup;
    • without platform keyrings there's no extra sync or lookup;
    • pacman is never called for anything else.
  • Mutation check: without the sync, the suite fails.

Merge Danger

Door: two-way

Blast Radius: Mac keyring refresh

Only machines with a platform keyrings list take the new path. A retired keyring now warns instead of stopping the update.

Without [asahi-alarm], every Apple Silicon repository has a China replica,
so the regions doc and the getting-started manual no longer need the caveat.
A Mac whose pacman.conf already lacks [asahi-alarm] while its omarchy-mac
still lists asahi-alarm-keyring made the keyring refresh fail with target
not found, stopping omarchy-update before it could upgrade omarchy-mac.
@maralcbr
maralcbr marked this pull request as ready for review December 1, 2026 04:36
Copilot AI balanced review requested due to automatic review settings December 1, 2026 04:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the platform-keyring handling and documentation changes.

No open issues 🎉

What changed in this PR

This PR prevents retired platform keyrings from blocking Omarchy updates and removes outdated documentation about Apple Silicon updates requiring GitHub access.

Changes:

  • Sync package databases before checking platform keyring availability, warning and skipping keyrings no configured repository carries.
  • Extend regression coverage for retired keyrings, sync ordering, and the unchanged path without platform keyrings.
  • Document the skip behavior and remove obsolete GitHub-access caveats.
File Description
test/​shell.d/​update-keyring-test.sh Adds coverage for retired keyrings and database sync ordering.
manual/​02-getting-started.md Removes the Apple Silicon GitHub-access caveat.
docs/​regions.md Removes outdated Asahi ALARM repository availability information.
docs/​file-layout.md Documents skipping unavailable platform keyrings with a warning.
bin/​omarchy-update-keyring Checks repository availability before refreshing platform keyrings.

Review effort: Balanced

@greptile-apps

greptile-apps Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Summary

Skips installed platform keyrings that configured repositories no longer carry, and removes the outdated Apple Silicon GitHub warning.

  • The keyring updater skips platform keyrings that no repository carries.
  • Apple Silicon update guides no longer say China users need GitHub.

No new actionable issues were found. Focused tests were inspected but not run.

Reviews (2) · Last reviewed commit: "Localize retired platform keyring warnin..." · Reviewed by Greptile

Comment thread bin/omarchy-update-keyring Resolved
Print the unavailable platform keyring warning through omarchy-i18n
(update.keyringUnavailable) to match docs/i18n.md, pass --noconfirm to
the pre-lookup pacman -Sy, and reuse that sync (-S) for the subsequent
keyring install instead of syncing twice. Tighten update-keyring-test.sh
to assert single-sync ordering, failed pre-sync abort, distinct
unterminated last line, and installed-vs-available filtering.
@maralcbr
maralcbr merged commit dfc140f into quattro Dec 1, 2026
6 checks passed
@maralcbr
maralcbr deleted the omacom/asahi-alarm-followups branch December 1, 2026 04:58
cursor Bot pushed a commit to mark-groves/omarchy that referenced this pull request Dec 1, 2026
omacom#21038)

* Stop saying Apple Silicon needs GitHub to update

Without [asahi-alarm], every Apple Silicon repository has a China replica,
so the regions doc and the getting-started manual no longer need the caveat.

* Skip a platform keyring no configured repository carries

A Mac whose pacman.conf already lacks [asahi-alarm] while its omarchy-mac
still lists asahi-alarm-keyring made the keyring refresh fail with target
not found, stopping omarchy-update before it could upgrade omarchy-mac.

* Localize retired platform keyring warning and avoid double pacman -Sy

Print the unavailable platform keyring warning through omarchy-i18n
(update.keyringUnavailable) to match docs/i18n.md, pass --noconfirm to
the pre-lookup pacman -Sy, and reuse that sync (-S) for the subsequent
keyring install instead of syncing twice. Tighten update-keyring-test.sh
to assert single-sync ordering, failed pre-sync abort, distinct
unterminated last line, and installed-vs-available filtering.
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.

2 participants