-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix Poetry not using system git #5688
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this config option was added in poetry 1.2.0 and we still support poetry 1.1.15 for python 3.6 compat, I think we'll need to conditionally alter this command based on python version.
@@ -177,6 +177,11 @@ def updated_lockfile_content_for(pyproject_content) | |||
"#{NativeHelpers.python_requirements_path}") | |||
end | |||
|
|||
# use system git instead of the pure Python dulwich | |||
unless python_version&.start_with?("3.6") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦 so looking forward to dropping 3.6
and then we don't have to maintain these...
7b50dc7
to
040882b
Compare
040882b
to
4ff5f84
Compare
fixes #5655
Poetry recently released 1.2.0 which uses dulwich, a pure Python implementation of Git. Like other ecosystems, we actually want to use the system Git with Dependabot so the Git shim will rewrite URLs to be HTTPS.
But also, in #5655 we are probably seeing a bug in dulwich that doesn't honor proxy authentication settings in the
http_proxy
environment variables. I tested this change locally and it fixed my reproduction repo.