pixi icon indicating copy to clipboard operation
pixi copied to clipboard

ssh passphrase prompt not showing when installing ssh dependency

Open Ehab-Ibrahim opened this issue 1 year ago • 1 comments

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:

Image

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:

Image

Ehab-Ibrahim avatar Apr 30 '25 09:04 Ehab-Ibrahim

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" }

nichtmacho avatar May 15 '25 15:05 nichtmacho