dependabot-cargo 0.279.0 → 0.281.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: '0871338b76428223cb98db714e184c15f4be9e2ee1cc2531a4b8e214459dea6a'
4
- data.tar.gz: a4840387735a066650131dbc216be3d2e81252ac3507bf83768190a3d8d12ef7
3
+ metadata.gz: ce1545319c2890f13ef33d55ea3f98cb4b87c8a0ff19a306ed21e9ab7edc1b1f
4
+ data.tar.gz: 0bba8d8904e3db5c3308ffb3ac3aa417ed36175ef75a12a41e27fd6b00570720
5
5
  SHA512:
6
- metadata.gz: c49729555adaefc767a1260cc5853e398ab46f5adef2cb85bff6625520cd13f00daa0505427ef8381b64111989263ebe8a0f87ab06f512580de30876dbc40b6a
7
- data.tar.gz: e8f00f80d174e66ea91c39f5ef4ae01beb98c07da9ac489399e6e8accf040914d14da4b2c428bbd79f3bbc079a619ba4be17159be93968fbb0279af0d1e06653
6
+ metadata.gz: 566f753bed9c80b614d243df61f8801f01e2f302a5630d06fee69ccffafe9c7a504c623b27baab5e113a350675d67cf301ac4937c9630eca52f0e94f5b8e0107
7
+ data.tar.gz: 8662d058892236edce20db993393b70a1110796b8062a843eaa97d2a9b3298afbc510554c874ae074e928acb06e1cb02f6fc277aaf8a409e7ab79982e59b9d58
@@ -20,6 +20,12 @@ module Dependabot
20
20
  REF_NOT_FOUND_REGEX = /#{UNABLE_TO_UPDATE}.*(#{REVSPEC_PATTERN}|#{OBJECT_PATTERN})/m
21
21
  GIT_REF_NOT_FOUND_REGEX = /Updating git repository `(?<url>[^`]*)`.*fatal: couldn't find remote ref/m
22
22
 
23
+ # Note that as of Rust 1.80, git error message handling in the `cargo update` command changed.
24
+ # This change causes the NOT_OUR_REF error to appear *before* the UNABLE_TO_UPDATE error.
25
+ # Issue filed in Cargo project: https://github.com/rust-lang/cargo/issues/14621
26
+ NOT_OUR_REF = /fatal: remote error: upload-pack: not our ref/
27
+ NOT_OUR_REF_REGEX = /#{NOT_OUR_REF}.*#{UNABLE_TO_UPDATE}/m
28
+
23
29
  def initialize(dependency:, credentials:,
24
30
  original_dependency_files:, prepared_dependency_files:)
25
31
  @dependency = dependency
@@ -223,7 +229,7 @@ module Dependabot
223
229
  raise Dependabot::GitDependenciesNotReachable, urls
224
230
  end
225
231
 
226
- [BRANCH_NOT_FOUND_REGEX, REF_NOT_FOUND_REGEX, GIT_REF_NOT_FOUND_REGEX].each do |regex|
232
+ [BRANCH_NOT_FOUND_REGEX, REF_NOT_FOUND_REGEX, GIT_REF_NOT_FOUND_REGEX, NOT_OUR_REF_REGEX].each do |regex|
227
233
  next unless error.message.match?(regex)
228
234
 
229
235
  dependency_url = error.message.match(regex).named_captures.fetch("url").split(/[#?]/).first
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.279.0
4
+ version: 0.281.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-03 00:00:00.000000000 Z
11
+ date: 2024-10-17 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.279.0
19
+ version: 0.281.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.279.0
26
+ version: 0.281.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: debug
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 0.8.1
159
+ version: 0.8.5
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 0.8.1
166
+ version: 0.8.5
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: simplecov
169
169
  requirement: !ruby/object:Gem::Requirement
@@ -263,7 +263,7 @@ licenses:
263
263
  - MIT
264
264
  metadata:
265
265
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
266
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.279.0
266
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.281.0
267
267
  post_install_message:
268
268
  rdoc_options: []
269
269
  require_paths: