Skip to content

poetry add fails to installation from a non-SSL server using the git+http protocol. #6982

@nutzwerk

Description

@nutzwerk
  • Poetry version: 1.2.2
  • Python version: 3.9.13
  • OS version and name: Windows10
  • pyproject.toml: any
  • I am on the latest stable Poetry version, installed using a recommended method.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions