dependabot-python 0.125.5 → 0.125.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 586c89791e3907d5be1c9048e9576394cb599122197622ae699c8e3a57f06884
4
- data.tar.gz: b9eb6f6155ba98bc6b3bbebf2b56795f106afb08f43651fe20bba5566c1399bc
3
+ metadata.gz: e7961c9171af4382c7e680aae485124295f7cec0e7b49fa8d25028a65c092c6f
4
+ data.tar.gz: b84f1b200e407f41fadf21404107ce43adb4524381cca644eea380a5e9adef23
5
5
  SHA512:
6
- metadata.gz: 360a48d1b31c5a26f3729107d3458213167a83ac370ace55e4e8c96c2835077f81056496ec2b001e4b3da58b0d62a2ec83c320d4bcd9575f385c1948578a9478
7
- data.tar.gz: b4be4aad4fd7f0957e220c8ccfc28274376f1e3655cd30c0a6ff4b6483cfc57803a5adf975e04154975953c696e9c4526508cbf0b77b559a87bc0ed1ef1a3d4a
6
+ metadata.gz: b811806ef5e299be4c9fffc2efbb247e5501b54b2f7486d6448c2ab858b38e7dda0922557e4c76973abfccedf2864f0a85142027556970541a6402c38faa20f4
7
+ data.tar.gz: 436d03634257d3da1440f1cc5b92b797c305e4e730e6ba3c469f4e8f0f0a48567fc7aea2aa3d77c74d5d929173082a4b7d10e06383c7469e2dc7def5bce85199
@@ -162,15 +162,16 @@ module Dependabot
162
162
 
163
163
  true
164
164
  rescue SharedHelpers::HelperSubprocessFailed => e
165
- unless e.message.include?("Could not find a version") ||
166
- e.message.include?("UnsupportedConstraint")
167
- raise
165
+ # Pick the error message that includes resolvability errors, this might be the cause from
166
+ # handle_pip_compile_errors (it's unclear if we should always pick the cause here)
167
+ error_message = [e.message, e.cause&.message].compact.find do |msg|
168
+ ["UnsupportedConstraint", "Could not find a version"].any? { |err| msg.include?(err) }
168
169
  end
169
170
 
170
- msg = clean_error_message(e.message)
171
- raise if msg.empty?
171
+ cleaned_message = clean_error_message(error_message || "")
172
+ raise if cleaned_message.empty?
172
173
 
173
- raise DependencyFileNotResolvable, msg
174
+ raise DependencyFileNotResolvable, cleaned_message
174
175
  end
175
176
  end
176
177
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-python
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.125.5
4
+ version: 0.125.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-25 00:00:00.000000000 Z
11
+ date: 2020-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dependabot-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.125.5
19
+ version: 0.125.6
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.125.5
26
+ version: 0.125.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement