Commit 4ff5f84 1 parent 0b15fa4 commit 4ff5f84 Copy full SHA for 4ff5f84
File tree 2 files changed +16
-0
lines changed
python/lib/dependabot/python
2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,11 @@ def updated_lockfile_content_for(pyproject_content)
177
177
"#{ NativeHelpers . python_requirements_path } " )
178
178
end
179
179
180
+ # use system git instead of the pure Python dulwich
181
+ unless python_version &.start_with? ( "3.6" )
182
+ run_poetry_command ( "pyenv exec poetry config experimental.system-git-client true" )
183
+ end
184
+
180
185
run_poetry_command ( poetry_update_command )
181
186
182
187
return File . read ( "poetry.lock" ) if File . exist? ( "poetry.lock" )
Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ class PoetryVersionResolver
28
28
'checkout',
29
29
'(?<tag>.+?)'
30
30
|
31
+ Failed to checkout
32
+ (?<tag>.+?)
33
+ (?<url>.+?).git at '(?<tag>.+?)'
34
+ |
31
35
...Failedtoclone
32
36
(?<url>.+?).gitat'(?<tag>.+?)',
33
37
verifyrefexistsonremote)
@@ -78,6 +82,7 @@ def resolvable?(version:)
78
82
79
83
private
80
84
85
+ # rubocop:disable Metrics/PerceivedComplexity
81
86
def fetch_latest_resolvable_version_string ( requirement :)
82
87
@latest_resolvable_version_string ||= { }
83
88
return @latest_resolvable_version_string [ requirement ] if @latest_resolvable_version_string . key? ( requirement )
@@ -97,6 +102,11 @@ def fetch_latest_resolvable_version_string(requirement:)
97
102
)
98
103
end
99
104
105
+ # use system git instead of the pure Python dulwich
106
+ unless python_version &.start_with? ( "3.6" )
107
+ run_poetry_command ( "pyenv exec poetry config experimental.system-git-client true" )
108
+ end
109
+
100
110
# Shell out to Poetry, which handles everything for us.
101
111
run_poetry_command ( poetry_update_command )
102
112
@@ -113,6 +123,7 @@ def fetch_latest_resolvable_version_string(requirement:)
113
123
end
114
124
end
115
125
end
126
+ # rubocop:enable Metrics/PerceivedComplexity
116
127
117
128
def fetch_version_from_parsed_lockfile ( updated_lockfile )
118
129
version =
You can’t perform that action at this time.
0 commit comments