ssh passphrase prompt not showing when installing ssh dependency
Checks
-
[x] I have checked that this issue has not already been reported.
-
[x] I have confirmed this bug exists on the latest version of pixi, using
pixi --version.
Reproducible example
pyproject:
# pyproject.toml
[project]
name = "foo"
# Add a dependency using SSH URL
dependencies = [
"pytest @ git+ssh://[email protected]:pytest-dev/pytest.git",
]
Bash:
# Using a git SSH key with a passphrase
# Make sure the SSH key is not added to your ssh-agent
pixi install
Issue description
Currently, I use an ssh key with a passphrase for Github. When installing a dependency using ssh, the prompt to enter a passphrase is not shown, and the environment installation appears to be stuck:
However, if at this point I enter my passphrase and press "Enter", then the environment installation resumes.
Expected behavior
It would be helpful to show a prompt that a passphrase is needed when running into this case:
I've made a small example how to reproduce it for both pyproject.toml and pixi-git.
pyproject.toml
[project]
name = "uv-ssh"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"pytest @ git+ssh://[email protected]/pytest-dev/pytest.git",
]
pixi.toml
[workspace]
authors = ["nichmor <[email protected]>"]
channels = ["conda-forge"]
name = "uv-ssh"
platforms = ["osx-arm64"]
version = "0.1.0"
preview = ["pixi-build"]
[tasks]
[dependencies]
build-rust = { git = "ssh://[email protected]/wolfv/pixi-build-examples", subdirectory = "build-rust" }