dependabot-cargo 0.217.0 → 0.218.0

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: d740f0d7d8a7ff60db32e174a9d297011ed4f9ecf61e2925f4adabd489e7eb29
4
- data.tar.gz: 2da87dcfafed33ebe9baa38510979aceb65709cbc5c61f4b3bcce1d0745073d1
3
+ metadata.gz: 2c83798b8a90a4313601ee5f327fa0dd66484a043db61ad3c57aa86426271595
4
+ data.tar.gz: 49a71d28c9286c8e2f24bfd26b18ee56d43c42c3a13acaf03035e2d4d44bf674
5
5
  SHA512:
6
- metadata.gz: 9155ddc61023423975a9f4fe294a94e8234dd709192fdae64dafc97b58d1cf4c2186814f78bb9d682541921a0779069575dd41f1f0b144e84188825997b05d58
7
- data.tar.gz: 508ad779126cf1a7722a538f79597949745c9bf328aaa6ea21e1f48afa351be04fcf8e4f936ad99d9181bbb6ebb214b537bfc2c3ce8c88fb07e45aacf95b40ef
6
+ metadata.gz: b7d18918a78419993518c36bbe58ced8fdc0a63bc770cf4f76861dd481d03019506c26594bd888440a8c0e56d5435abfd6ee012dfc7f3bd15afc7ac3c43c8ef9
7
+ data.tar.gz: 83cbb618d7d6bbc1c6af007e5f5d90e4a30a257820adad8e9c08eb8cbdaca569321c9bdd0e1e01eb115115e1576b803750b48ed1a9d562a3417dbadd9300c072
@@ -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.218.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-05-22 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.218.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.218.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.218.0
237
237
  post_install_message:
238
238
  rdoc_options: []
239
239
  require_paths: