Repository navigation
fix(devshell): expose python3 + pre-commit on dev-shell PATH (CI-safe) - #747
Merged
c-vigo merged 1 commit intoJun 29, 2026
Merged
Conversation
Re-expose a bare python3/pre-commit in mkProjectShell for dev-shell<->image parity. The prior attempt regressed CI because the dev-shell->runner PATH forwarding leaked the Nix CPython, so uv built the venv from it and pre-commit's manylinux pymarkdown hook failed on FHS. Fix at the right layer: setup-env filters the Nix python3-<ver>/pre-commit out of the forwarded PATH so CI keeps the downloaded managed CPython. No LD_LIBRARY_PATH change (#703 leak-guard intact). Re-add the parity test and run it + the FHS leak-guard in Project Checks. Refs: #729
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #729 (the host-safe re-implementation after the 8f778f5 revert).
Root cause of the revert: the dev-shell→runner PATH forwarding (
setup-env) leaked the Nixpython3.14, so CI'suv syncselected it instead of the downloaded managed CPython → pre-commit ran under the Nix interpreter → manylinuxpyjson5couldn't resolvelibstdc++on FHS (#698 rescue is/etc/NIXOS-gated, #703).Fix: re-expose
python3/pre-commitinmkProjectShell, and filter the Nixpython3-<ver>/pre-commitout of the forwarded runner PATH (mirrors the existing podman exclusion) so CI keeps building the venv from the managed CPython. No newLD_LIBRARY_PATH→ #703 leak-guard unaffected. Parity test + FHS leak-guard now run in Project Checks.Closes #729