- Poetry version: 1.2.2
- Python version: 3.9.13
- OS version and name: Windows10
- pyproject.toml: any
Issue
poetry add fails to installation from a non-SSL server using the git+http protocol.
$ poetry add git+http://mygitlab-server/groupname/myproject.git
Could not parse version constraint: //mygitlab-server/groupname/myproject.git
However, after adding the following line in a pyproject.toml,
and execute poetry update command is success.
[tool.poetry.dependencies]
myproject = {git = "http://mygitlab-server/groupname/myproject.git", branch = "main"}
$ poetry update
Updating dependencies
Resolving dependencies...
Writing lock file
Package operations: 1 install, 0 updates, 0 removals
• Installing myproject (0.1.0 fd675eb)
-vvvoption) and have included the output below.Issue
poetry add fails to installation from a non-SSL server using the git+http protocol.
However, after adding the following line in a pyproject.toml,
and execute poetry update command is success.