I am trying to add depedency from git to poetry using SSH ( I am not interested in HTTPS version). The but I get an error whether I use poetry add
...
poetry add git+ssh://[email protected]:myorg/myproj.git
...or if I add it manually...
# Entry in pyproject.toml
myproj = { git = "[email protected]:myorg/myproj.git" }
# cmd
poetry install
In both cases, I get the following output:
Stack trace:
11 ~\AppData\Roaming\pypoetry\venv\lib\site-packages\clikit\console_application.py:131 in run
status_code = command.handle(parsed_args, io)
10 ~\AppData\Roaming\pypoetry\venv\lib\site-packages\clikit\api\command\command.py:120 in handle
status_code = self._do_handle(args, io)
9 ~\AppData\Roaming\pypoetry\venv\lib\site-packages\clikit\api\command\command.py:171 in _do_handle
return getattr(handler, handler_method)(args, io, self)
8 ~\AppData\Roaming\pypoetry\venv\lib\site-packages\cleo\commands\command.py:92 in wrap_handle
return self.handle()
7 ~\AppData\Roaming\pypoetry\venv\lib\site-packages\poetry\console\commands\add.py:106 in handle
requirements = self._determine_requirements(
6 ~\AppData\Roaming\pypoetry\venv\lib\site-packages\poetry\console\commands\init.py:320 in _determine_requirements
requires = self._parse_requirements(requires)
5 ~\AppData\Roaming\pypoetry\venv\lib\site-packages\poetry\console\commands\init.py:410 in _parse_requirements
package = Provider.get_package_from_vcs(
4 ~\AppData\Roaming\pypoetry\venv\lib\site-packages\poetry\puzzle\provider.py:193 in get_package_from_vcs
git.clone(url, tmp_dir)
3 ~\AppData\Roaming\pypoetry\venv\lib\site-packages\poetry\core\vcs\git.py:262 in clone
return self.run("clone", "--recurse-submodules", "--", repository, str(dest))
2 ~\AppData\Roaming\pypoetry\venv\lib\site-packages\poetry\core\vcs\git.py:356 in run
subprocess.check_output(
1 ~\AppData\Local\Programs\Python\Python310\lib\subprocess.py:420 in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
CalledProcessError
Command '['C:\\Program Files\\Git\\cmd\\git.exe', 'clone', '--recurse-submodules', '--', '[email protected]:myorg/myproj.git', 'C:\\Users\\Adeom\\AppData\\Local\\Temp\\pypoetry-git-myprojwhjkd872g']' returned non-zero exit status 128.
at ~\AppData\Roaming\pypoetry\venv\lib\site-packages\poetry\utils\_compat.py:217 in run
213│ process.wait()
214│ raise
215│ retcode = process.poll()
216│ if check and retcode:
→ 217│ raise CalledProcessError(
218│ retcode, process.args, output=stdout, stderr=stderr
219│ )
220│ finally:
221│ # None because our context manager __exit__ does not use them.
Poetry never asks for my SSH key password. I have tested cloning via git from commandline using ssh, and it works fine.
What am I doing incorrectly?