Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions agents/skills/migrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ New migration format:
- Use `$OMARCHY_PATH` to reference the Omarchy directory.
- Be idempotent. Check existing state before changing it.
- Migrations are strictly ordered and synchronous. A migration that cannot finish must exit non-zero, remain pending, and stop the queue; never mark later migrations complete against state an earlier migration has not established.
- Any package other than `omarchy` may have been removed, even a default one. A migration that depends on one checks it is installed and exits 0 when it is not. A config file left in the home directory is not proof the package is still installed.
- Use helper commands such as `omarchy-cmd-present`, `omarchy-cmd-missing`,
`omarchy-pkg-add`, `omarchy-pkg-drop`, `omarchy-pkg-present`, and
`omarchy-pkg-missing` when appropriate.
Expand Down
9 changes: 8 additions & 1 deletion migrations/1788996284.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,16 @@ case ${provider_hash%% *} in
;;
esac

# omarchy-nvim is optional. A removed package can leave this config behind.
# There is no corrected provider to install, so leave the file alone instead
# of stopping every later migration.
if ! nvim_package=$(pacman -Q omarchy-nvim 2>/dev/null); then
echo "Skipping Neovim provider repair: omarchy-nvim is not installed."
exit 0
fi

# Updates install packages before migrations. Refuse an older package so this
# migration remains pending instead of installing the provider it must repair.
nvim_package=$(pacman -Q omarchy-nvim)
if [[ $(vercmp "${nvim_package#* }" "2026.9.21-2") == -* ]] || [[ ! -f $provider_source ]]; then
echo "Update omarchy-nvim to 2026.9.21-2 or newer before rerunning this migration." >&2
exit 1
Expand Down