You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Split out of #1358 (found during the #1353 audit). The direnv-mode setup-devkit-toolchain PATH filter (#1028) removes the bare Nix CPython from the exported dev-shell PATH whenever pyproject.toml is present — unconditionally. On a hosted (FHS) runner that is correct: uv downloads a managed manylinux CPython. On a NixOS self-hosted runner it is wrong by design: after #1353 (UV_PYTHON no longer forwarded), uv downloads a managed CPython that NixOS cannot execute, so uv sync fails. Before #1353 the forwarded UV_PYTHON pin masked the gap.
No current consumer matches the combination (the only NixOS self-hosted runner consumer has no pyproject.toml), so nothing is broken today — this is a landmine for the first Python consumer that targets a NixOS runner.
Expected
Make the exclusion NixOS-aware: keep the Nix CPython on PATH (and skip the managed-download path, e.g. keep/restore the uv pins) when the runner is NixOS — [ -e /etc/NIXOS ] is the established probe (mkProjectShell's own shellHook uses it for LD_LIBRARY_PATH).
Fixed on dev by PR #1363: the step probes the runner host once (/etc/NIXOS; DEVKIT_NIXOS_MARKER overrides it for the test harness only) and on NixOS keeps the Nix CPython on PATH AND lets the UV_PYTHON/UV_PYTHON_DOWNLOADS pins forward — both halves needed, since uv's python-preference could otherwise still pick an unrunnable managed download. FHS runners are byte-identical to before, now pinned by a regression-bar test (the #1028 exclusion previously had no coverage). Ships with 1.6.1.
Downstream evidence from MorePET/dogplet-histo#25: the same exclusion also removes a project's explicitly provisioned Nix python3-<version>-env withPackages environment on a non-NixOS runner. The existing NixOS guard does not address that case.
In run 46511231229, setup-devkit-toolchain reported Runner is NixOS: false. With a pyproject.toml present, its *-python3-<version>*/bin PATH filter removed the project interpreter before exporting GITHUB_PATH. The subsequent host-Bash just sync failed because no ambient python remained. This project intentionally uses Nix dependencies in both local development and CI, rather than uv/manylinux Python.
Current downstream workaround: a named dogplet-python wrapper selects the absolute withPackages interpreter and library closure, so its bin path survives the export filter. It also removes Nix-store PYTHONPATH entries that can inject the devkit interpreter's different Python ABI; explicit project paths such as src remain. An integration test reproduces the filtered PATH in non-login Bash and checks dependency imports. Runtime dependencies remain declared in pyproject.toml, with versions pinned by Nix.
Activity
fix(action): strip store paths and stdenv machinery from the env forw…
test(action): pin NixOS-runner Python toolchain through PATH and uv pins
fix(action): keep the Nix CPython and uv pins on NixOS runners
fix(action): keep the Nix CPython and uv pins on NixOS runners (#1363)
c-vigo commentedon Aug 7, 2026
Fixed on dev by PR #1363: the step probes the runner host once (/etc/NIXOS; DEVKIT_NIXOS_MARKER overrides it for the test harness only) and on NixOS keeps the Nix CPython on PATH AND lets the UV_PYTHON/UV_PYTHON_DOWNLOADS pins forward — both halves needed, since uv's python-preference could otherwise still pick an unrunnable managed download. FHS runners are byte-identical to before, now pinned by a regression-bar test (the #1028 exclusion previously had no coverage). Ships with 1.6.1.
docs(migration): point the env-forward denylist at its source of truth (
chore: release 1.7.0 (#350)
chore: release 1.7.0 (#1385)
gerchowl commentedon Dec 1, 2026
Downstream evidence from MorePET/dogplet-histo#25: the same exclusion also removes a project's explicitly provisioned Nix
python3-<version>-envwithPackages environment on a non-NixOS runner. The existing NixOS guard does not address that case.In run 46511231229,
setup-devkit-toolchainreportedRunner is NixOS: false. With a pyproject.toml present, its*-python3-<version>*/binPATH filter removed the project interpreter before exporting GITHUB_PATH. The subsequent host-Bashjust syncfailed because no ambientpythonremained. This project intentionally uses Nix dependencies in both local development and CI, rather than uv/manylinux Python.Current downstream workaround: a named
dogplet-pythonwrapper selects the absolute withPackages interpreter and library closure, so its bin path survives the export filter. It also removes Nix-store PYTHONPATH entries that can inject the devkit interpreter's different Python ABI; explicit project paths such as src remain. An integration test reproduces the filtered PATH in non-login Bash and checks dependency imports. Runtime dependencies remain declared in pyproject.toml, with versions pinned by Nix.Please preserve explicitly supplied project withPackages interpreters, or provide an explicit Nix-only Python export mode, in addition to the existing NixOS detection. Diagnosis and workaround: https://github.com/MorePET/dogplet-histo/blob/main/schemas/README.md#ci-python-environment