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
{{ message }}
Repository navigation
setup-devkit-toolchain strips project withPackages Python from PATH on non-NixOS runners #2099
setup-devkit-toolchain strips an explicitly supplied project Nix Python withPackages environment from the PATH exported through GITHUB_PATH on non-NixOS runners when pyproject.toml exists. The *-python3-<version>*/bin exclusion intended for uv/manylinux Python also matches python3-<version>-env/bin.
Related issue #1360 is closed and addressed NixOS runner detection; this case occurs with Runner is NixOS: false for a project that intentionally uses Nix dependencies on every platform. Searches of open issues for python3 PATH, PATH filter, withPackages, CPython exclusion, and setup-devkit-toolchain Python did not find this case.
Downstream evidence
MorePET/dogplet-histo run 46511231229 reported Runner is NixOS: false. After the managed setup action exported its filtered PATH, the next host-Bash just sync failed with command not found because there was no ambient Python. The workflow runs steps after setup on host Bash, rather than nesting every later step in nix develop.
The downstream workaround is a named dogplet-python executable selecting the absolute withPackages interpreter and its library closure. Its bin path survives the managed filter. It also removes Nix-store PYTHONPATH entries that otherwise inject the devkit's different Python ABI, preserving explicit project paths such as src. An integration test reproduces the filtered PATH in non-login Bash and verifies dependency imports. Runtime dependencies remain in pyproject.toml; Nix pins their versions.
Preserve explicitly supplied project withPackages interpreters, or provide an explicit Nix-only Python export mode, independently of the runner's NixOS status. Continue supporting the default uv/manylinux workflow without removing the project's chosen interpreter.
Activity