Repository navigation
Skip Elsewhen migration on unpackaged Omarchy installs - #12532
paulogeyer wants to merge 1 commit into
Conversation
Migration 1789581661 always runs omarchy-pkg-add elsewhen. On WSL/dev checkouts there is no omarchy pacman package, and elsewhen Depends: omarchy, so pacman tries to install the packaged desktop and conflicts with the checkout symlink at /usr/share/omarchy. The migration fails, no marker is written, and every later omarchy update re-fails. If pacman -Q omarchy fails, exit 0 instead of installing the package. Fixes omacom#12531
Automated AI review
Outcome: The guard is correct against the base this PR was written on. However, the migration it edits no longer exists on current Verified (from source, with pacman 7.1.0 source and public Omarchy package recipes):
The edited migration was renamed on
|
|
Thanks for tracking this down, @paulogeyer. Against the base it was written on, the guard is correct and proportionate:
What was checked: the diff, the history of both migrations on This now waits on the maintainer, and the recommendation is to close it as already fixed on |
|
Thank you for this, @paulogeyer. Closed at the maintainer's request. The review comment above has the details; it was done by Claude Opus 5.5 with Codex Medium as a second opinion, whose agreement is not independent. |
Summary
Migration
1789581661always runsomarchy-pkg-add elsewhen. On WSL/dev checkouts there is noomarchypacman package (/usr/share/omarchyis a symlink into the checkout). BecauseelsewhenDepends:omarchy, pacman resolves the packaged desktop and conflicts with that symlink, abortingomarchy update. The migration marker is never written, so every later update fails the same way.Guard: if
pacman -Q omarchyfails, skip the migration cleanly (exit 0).Fixes #12531
Test plan
prs/12531-elsewhen-wsl-migration/smoke-test.sh)omarchy updateafter this migration no longer wedges on elsewhen