Skip to content

fix(devshell): expose python3 + pre-commit on dev-shell PATH (CI-safe) - #747

Merged
c-vigo merged 1 commit into
feature/625-nix-claude-migrationfrom
bugfix/729-devshell-python-parity
Jun 29, 2026
Merged

c-vigo merged 1 commit into
feature/625-nix-claude-migrationfrom
bugfix/729-devshell-python-parity

Conversation

@c-vigo

@c-vigo c-vigo commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

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 Nix python3.14, so CI's uv sync selected it instead of the downloaded managed CPython → pre-commit ran under the Nix interpreter → manylinux pyjson5 couldn't resolve libstdc++ on FHS (#698 rescue is /etc/NIXOS-gated, #703).

Fix: re-expose python3/pre-commit in mkProjectShell, and filter the Nix python3-<ver>/pre-commit out of the forwarded runner PATH (mirrors the existing podman exclusion) so CI keeps building the venv from the managed CPython. No new LD_LIBRARY_PATH → #703 leak-guard unaffected. Parity test + FHS leak-guard now run in Project Checks.

Closes #729

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
@c-vigo
c-vigo merged commit 7d9aadd into feature/625-nix-claude-migration Jun 29, 2026
10 checks passed
@c-vigo
c-vigo deleted the bugfix/729-devshell-python-parity branch June 29, 2026 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant