dependabot-cargo 0.217.0 → 0.219.0

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: d740f0d7d8a7ff60db32e174a9d297011ed4f9ecf61e2925f4adabd489e7eb29
4
- data.tar.gz: 2da87dcfafed33ebe9baa38510979aceb65709cbc5c61f4b3bcce1d0745073d1
3
+ metadata.gz: 33ddeb2c70d7f88bcc6bf1eaa7321359b614fa6923ceb4d90d0f0220e2c62bba
4
+ data.tar.gz: 83d265622cb5bdc8df6872136d11df30cd652b9e0e52520731070bc12c9a24a2
5
5
  SHA512:
6
- metadata.gz: 9155ddc61023423975a9f4fe294a94e8234dd709192fdae64dafc97b58d1cf4c2186814f78bb9d682541921a0779069575dd41f1f0b144e84188825997b05d58
7
- data.tar.gz: 508ad779126cf1a7722a538f79597949745c9bf328aaa6ea21e1f48afa351be04fcf8e4f936ad99d9181bbb6ebb214b537bfc2c3ce8c88fb07e45aacf95b40ef
6
+ metadata.gz: f07d54ad45fc07179e99ecc01db1d3e6292f8407738d4fe6ae80b8afe0dfac74e24c48d4a344598a5ecf5856d9c9ff6f6ff4c668d65f0f5f05a98643bc762d80
7
+ data.tar.gz: 47e213a1d957c2230083aee316a711044bf4cf2f04f12d3f05189d5249229ee78d327fc540642de826765b39ca5a3a844a8b54f7059c9f73e2e30abd3a0c3ca6
@@ -18,7 +18,7 @@ module Dependabot
18
18
 
19
19
  VERSION_REGEX = /[0-9]+(?:\.[A-Za-z0-9\-*]+)*/
20
20
  ALLOWED_UPDATE_STRATEGIES =
21
- %i(bump_versions bump_versions_if_necessary).freeze
21
+ %i(lockfile_only bump_versions bump_versions_if_necessary).freeze
22
22
 
23
23
  def initialize(requirements:, updated_source:, update_strategy:,
24
24
  target_version:)
@@ -34,6 +34,8 @@ module Dependabot
34
34
  end
35
35
 
36
36
  def updated_requirements
37
+ return requirements if update_strategy == :lockfile_only
38
+
37
39
  # NOTE: Order is important here. The FileUpdater needs the updated
38
40
  # requirement at index `i` to correspond to the previous requirement
39
41
  # at the same index.
@@ -237,6 +237,10 @@ module Dependabot
237
237
  return nil
238
238
  end
239
239
 
240
+ if error.message.include?("usage of sparse registries requires `-Z sparse-registry`")
241
+ raise Dependabot::DependencyFileNotEvaluatable, "Dependabot only supports toolchain 1.68 and up."
242
+ end
243
+
240
244
  raise Dependabot::DependencyFileNotResolvable, error.message if resolvability_error?(error.message)
241
245
 
242
246
  raise error
@@ -75,7 +75,15 @@ module Dependabot
75
75
  ).updated_requirements
76
76
  end
77
77
 
78
+ def requirements_unlocked_or_can_be?
79
+ requirements_update_strategy != :lockfile_only
80
+ end
81
+
78
82
  def requirements_update_strategy
83
+ # If passed in as an option (in the base class) honour that option
84
+ return @requirements_update_strategy.to_sym if @requirements_update_strategy
85
+
86
+ # Otherwise, widen ranges for libraries and bump versions for apps
79
87
  library? ? :bump_versions_if_necessary : :bump_versions
80
88
  end
81
89
 
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.217.0
4
+ version: 0.219.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-24 00:00:00.000000000 Z
11
+ date: 2023-06-12 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.217.0
19
+ version: 0.219.0
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.217.0
26
+ version: 0.219.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -232,8 +232,8 @@ homepage: https://github.com/dependabot/dependabot-core
232
232
  licenses:
233
233
  - Nonstandard
234
234
  metadata:
235
- issue_tracker_uri: https://github.com/dependabot/dependabot-core/issues
236
- changelog_uri: https://github.com/dependabot/dependabot-core/blob/main/CHANGELOG.md
235
+ bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
236
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.219.0
237
237
  post_install_message:
238
238
  rdoc_options: []
239
239
  require_paths: