From 262d6f0681ce27abbb10587b794f22d58bdbcec8 Mon Sep 17 00:00:00 2001 From: Omarchybot Date: Mon, 17 Aug 2026 11:11:56 +0200 Subject: [PATCH] Switch to the mise-bin package (#7244) * Switch to the mise-bin package mise-bin carries mise's own release artifacts from the Omarchy repo -- PGO+BOLT-optimized on x86_64, glibc-native on both arches -- instead of Arch's mise, and tracks jdx/mise releases directly. Existing installs need a migration because the two packages conflict, and omarchy-pkg-add cannot make the swap: pacman answers its own conflict question with No under --noconfirm and fails the transaction. --ask=4 answers that one question, so mise-bin replaces mise in a single transaction -- which is also what keeps omarchy-zsh and omarchy-fish, both of which depend on mise, satisfied through the swap by its provides. * Guard the swap with a conditional instead of an early exit Two-path control flow takes an if, per the style guide; the early exit only made the swap line unreachable from a distance. --- install/omarchy-base.packages | 2 +- migrations/1786952219.sh | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 migrations/1786952219.sh diff --git a/install/omarchy-base.packages b/install/omarchy-base.packages index 08968b2d..7d8a1553 100644 --- a/install/omarchy-base.packages +++ b/install/omarchy-base.packages @@ -78,7 +78,7 @@ lua51 luarocks man-db mariadb-libs -mise +mise-bin moonlight-qt mpv mpv-mpris diff --git a/migrations/1786952219.sh b/migrations/1786952219.sh new file mode 100644 index 00000000..c862ee0d --- /dev/null +++ b/migrations/1786952219.sh @@ -0,0 +1,17 @@ +echo "Switch mise to the mise-bin package from the Omarchy repo" + +# mise-bin carries mise's own release artifacts -- PGO+BOLT-optimized on x86_64, +# glibc-native on both arches -- and takes over from Arch's mise, which it both +# provides and conflicts with. +# +# The swap has to happen in one transaction. Removing mise first breaks +# omarchy-zsh and omarchy-fish, which depend on it; the provides is what keeps +# them satisfied when mise-bin lands in the same transaction that drops mise. +# +# omarchy-pkg-add cannot do that swap: pacman answers its own conflict question +# with No under --noconfirm and fails the whole transaction ("unresolvable +# package conflicts detected"). --ask=4 is that one question, answered yes. + +if omarchy-pkg-missing mise-bin; then + sudo pacman -S --noconfirm --ask=4 mise-bin +fi