OPINIONATED OMARCHY
TROUBLESHOOTING CORPUS
790
RECORDS
790
AUDITED
0
UNCHECKED
2388
SOURCES
LIVE
pacman-aur medium occasional DISPUTE

Stop mise shims breaking AUR builds that need Python, Node or Go

omarchyarchdesktoplaptop
AUDITED Audited against its sources and confirmed accurate.

Symptom

On Omarchy (which ships mise), AUR builds that need Python, Node or Go fail with errors like:


/home/user/.local/share/mise/installs/python/3.14.0/bin/python: No module named build

The same PKGBUILD builds fine on a plain Arch box.

Cause

mise injects its shim directory ahead of /usr/bin in PATH. makepkg inherits that environment, so the build calls mise's managed Python/Node/Go instead of the system interpreter the PKGBUILD's makedepends installed, and the required build modules are absent.

Fix

Build with mise deactivated for that shell:


mise deactivate
yay -S the-package

Or strip the shims from PATH for a single build:


env PATH="$(echo "$PATH" | tr ':' '\n' | grep -v mise | paste -sd:)" yay -S the-package

The durable fix is to build in a clean chroot, which has no user environment at all:


sudo pacman -S --needed devtools
cd /tmp && git clone https://aur.archlinux.org/the-package.git && cd the-package
extra-x86_64-build
sudo pacman -U the-package-*.pkg.tar.zst

Verify

which python inside the build shell resolves to /usr/bin/python, and the build completes and installs.

Sources

mise-shims-break-aur-builds