Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
4 tasks done
nutzwerk opened this issue Nov 6, 2022 · 2 comments
Closed
4 tasks done
Labels
status/duplicate Duplicate issues

Comments

@nutzwerk
Copy link

nutzwerk commented Nov 6, 2022

  • 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)
@nutzwerk nutzwerk added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Nov 6, 2022
@nutzwerk nutzwerk mentioned this issue Nov 6, 2022
2 tasks
@dimbleby
Copy link
Contributor

dimbleby commented Nov 6, 2022

duplicate #4236

@nutzwerk nutzwerk closed this as completed Nov 6, 2022
@neersighted neersighted added status/duplicate Duplicate issues and removed kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Nov 6, 2022
@neersighted neersighted closed this as not planned Won't fix, can't repro, duplicate, stale Nov 6, 2022
Copy link

github-actions bot commented Mar 1, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/duplicate Duplicate issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants