Repository navigation
Conversation
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; no actionable defects were found. SummaryAUR installs and updates now run through
Reviews (3) · Last reviewed commit: "Keep clearing GOROOT and GOBIN, and drop..." · Reviewed by Greptile |
|
Recommend: Hold — both GitHub workflows need maintainer approval, and the fix still needs worker verification. This covers user-pinned Mise Python in AUR builds, which #11435 leaves exposed. The wrapper can pass a foreign GPT-6 High in Codex, Opus 5.5 High and muse-wonder via pi, thinking high reviewed the build paths against |
A runtime installed from Install > Development is pinned with `mise use --global`, which puts mise's python ahead of /usr/bin. yay hands that PATH to makepkg, so Python PKGBUILDs fail with "No module named build" or "No module named installer". Run every yay build through a new omarchy-cmd-system-toolchain, which drops mise from PATH and unsets the GOROOT, GOBIN and JAVA_HOME it points into its installs. This replaces the Go-only `unset GOROOT GOBIN` in omarchy-update-aur-pkgs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The session puts MISE_SHIMS_DIR ahead of /usr/bin wherever it points, so a shims dir moved out of the data dir still put mise's python first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GOROOT and GOBIN were cleared only when they pointed into mise, but the updater cleared them unconditionally before: any GOROOT steers Arch's go to another toolchain. Login shells also add ~/.local/share/mise/shims whatever MISE_DATA_DIR says, so drop that dir and anything under it as well. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11a25dc to
5bf3129
Compare
|
Both points are addressed in 5bf3129: |
What changes
Installing a runtime from Install > Development pins it with
mise use --global, so mise's python comes before/usr/binin every shell.omarchy-update-aur-pkgs,omarchy-pkg-aur-addandomarchy-pkg-aur-installhand that PATH to yay. A Python PKGBUILD then runs mise's interpreter, which has none of the system's modules, and fails withNo module named buildinbuild()orNo module named installerinpackage(). Since #17000 removed the PATH reset fromomarchy-update, a fullomarchy updatehits this as well as menu installs. It comes back every time mise moves to a new Python version.This PR adds
omarchy-cmd-system-toolchain <command...>(hidden), which removes mise from PATH (everything under mise's data dir and the default~/.local/share/misethat login shells add, plusMISE_SHIMS_DIR), unsetsGOROOTandGOBINas the updater already did, unsetsJAVA_HOMEwhen it points into mise, and then execs the command. All three yay calls go through it. It replaces the Go-onlyunset GOROOT GOBINinomarchy-update-aur-pkgs(#16387) with one fix that also covers Python and Java, and it applies toaur-addandaur-install, which that fix didn't reach.This is not instead of #11435; the two work together. #11435 stops Omarchy from pinning mise's Python globally. This PR keeps AUR builds working for anyone who pins it on purpose, or in a project
.mise.tomlin the directory yay runs from. That's the scoping @csfh asked for on #11435. Users' mise config is left alone.Fixes #3528
Verification
python = "latest"(3.15) in~/.config/mise/config.tomland system Python 3.14. A fullomarchy updatefailed rebuildingpython-eduvpn_common5.0.4-1:.../mise/installs/python/latest/bin/python3: No module named build.yay -G python-eduvpn_common), I ranmakepkg -ffrom the same shell, withXDG_CONFIG_HOMEpointed at an empty dir so no usermakepkg.confcould mask the result. Without the helper it exits 4 with the same error. Withbin/omarchy-cmd-system-toolchain makepkg -fit exits 0 and builds the package.test/shell.d/cmd-system-toolchain-test.sh: PATH loses every mise entry (including a movedMISE_SHIMS_DIRand the default shims dir afterMISE_DATA_DIRmoves) and keeps the rest in order;GOROOT/GOBINare unset wherever they point; aJAVA_HOMEoutside mise is kept. It fails on the base branch, where the command doesn't exist.update-hook-security-test.shcopies the realomarchy-update-aur-pkgsinto its sandbox, so it now copies the helper too../test/cli, and thecmd-system-toolchain,update-hook-security,command-operand-boundaries,update-sequence,update-lock,update-disk-spaceandupdate-boot-verifyshell tests.GOROOT/GOBINare unset unconditionally, exactly asomarchy-update-aur-pkgsdid before.GOROOT/GOBINare cleared whatever they point to again, and the default shims dir is dropped even whenMISE_DATA_DIRmoves. The test covers both and fails on the previous helper. Rebased on currentquattro; the eduvpn build above passes again with the updated helper.Screenshots
No visible change: only the environment AUR builds run in.
🤖 Generated with Claude Code