Open delchiaro opened 4 hours ago
because by default is relying on system git to pull the repo
this is backwards, in fact poetry config experimental.system-git-client true
is what turns on the system git client
in general the best way to get docs improvements done is to contribute them yourself - but do be careful that you understand what you are writing!
Issue Kind
Improving documentation
Existing Link
https://python-poetry.org/docs/configuration/#certificatesnamecert
Description
I struggled several time trying to install python packages from git repository hosted on private company github or gitlab servers.
Specifically, with pip I can simply install a self-hosted gitlab repo with:
And to avoid SSL errors in the HTTPS connection, in the worst case I would just have to set the correct certificates bundle with:
Sadly this does not work with poetry, because by default is relying on system git to pull the repo (not on a python tool based on
requests
library).This is very subtle and the documentation is not clear, and cannot find anything mentioning this in the documentation related to configuration of certificates or repository certificates
The only way I found to fix this is setting the correct certificate to the global git configuration with the following before using poetry:
This is very similar to #2475 and related issues, with the difference that the github/gitlab is a company one (so using different certificate), moreover #5428 + setting
REQUESTS_CA_BUNDLE
is still a possible solution, i.e.:I think at least one of the two solution should be added to the documentation.