dependabot-cargo 0.111.46 → 0.111.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56dc84d179ea12d6753028e43e6414004f4ec969c446bcf835c7f1391f59f751
4
- data.tar.gz: 7e02f9502dbb71fcb14aa0f43b78a1aa7eadcddd6077094fa176667f28090d2b
3
+ metadata.gz: 3839e89e789268568d39deaa96362fff50327856c4662c19c93ac329edbbb085
4
+ data.tar.gz: e8c83fecc4be80a8f7e64a4adeecc418f63bae9a46093213e59c68b8e0e820a0
5
5
  SHA512:
6
- metadata.gz: c5826e256f9cb1e65ddd2de718dc4878122273fe6963f74aa47eeddc871e8b509d81c68777055896fb215b433a2bb706cd42e5e9939bd7fb6505002b7b837186
7
- data.tar.gz: 7c01ac19348b638f8a9ed1c94315b60fa971a52a895e47054f03ef6e6d69d693dfda472f91d491a77211de08438fed83ffbef67e4205078870000152f4cfed5e
6
+ metadata.gz: '06961bbf93e08aaaa89ea693e55dfdf9c9952eac3d29734d08fc5e3bf22ed5202a22634016712e5add4598d6ba9fce5ff2ad900dd77979ce7a64b78b43f48776'
7
+ data.tar.gz: 1cd517640b92822284891950bee3c6ed92e4c0499da36a3bb3aab4c54ef8b389d07ae0b544063f5c3f5e4311cb0602c25627ebf517c3631d8b40606d61aa51d5
@@ -219,6 +219,14 @@ module Dependabot
219
219
  raise Dependabot::DependencyFileNotResolvable, error.message
220
220
  end
221
221
 
222
+ if workspace_native_library_update_error?(error.message)
223
+ # This happens when we're updating one part of a workspace which
224
+ # triggers an update of a subdependency that uses a native library,
225
+ # whilst leaving another part of the workspace using an older
226
+ # version. Ideally we would prevent the subdependency update.
227
+ return nil
228
+ end
229
+
222
230
  if git_dependency? && error.message.include?("no matching package")
223
231
  # This happens when updating a git dependency whose version has
224
232
  # changed from a release to a pre-release version
@@ -308,6 +316,19 @@ module Dependabot
308
316
  false
309
317
  end
310
318
 
319
+ def workspace_native_library_update_error?(message)
320
+ return unless message.include?("native library")
321
+
322
+ library_count = prepared_manifest_files.count do |file|
323
+ package_name = TomlRB.parse(file.content).dig("package", "name")
324
+ next false unless package_name
325
+
326
+ message.include?("depended on by `#{package_name} ")
327
+ end
328
+
329
+ library_count >= 2
330
+ end
331
+
311
332
  def write_manifest_files(prepared: true)
312
333
  manifest_files = if prepared then prepared_manifest_files
313
334
  else original_manifest_files
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-cargo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.111.46
4
+ version: 0.111.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-04 00:00:00.000000000 Z
11
+ date: 2019-08-05 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.111.46
19
+ version: 0.111.47
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.111.46
26
+ version: 0.111.47
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: byebug
29
29
  requirement: !ruby/object:Gem::Requirement