dependabot-cargo 0.279.0 → 0.280.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: d4fdfd6dd91f79a57fc97cc455e468e1a2302c815ef4ab6b6d0eea5cd7e2b017
4
+ data.tar.gz: 6ef55c25d4ad9505af7d6d50dc09c58b7fe589d9518f85007ecd9882912f4588
5
5
  SHA512:
6
- metadata.gz: c49729555adaefc767a1260cc5853e398ab46f5adef2cb85bff6625520cd13f00daa0505427ef8381b64111989263ebe8a0f87ab06f512580de30876dbc40b6a
7
- data.tar.gz: e8f00f80d174e66ea91c39f5ef4ae01beb98c07da9ac489399e6e8accf040914d14da4b2c428bbd79f3bbc079a619ba4be17159be93968fbb0279af0d1e06653
6
+ metadata.gz: 2d8400d75449aeca27bbb472ffd63528a69d743849d795c14d0c878bf718b98cd77750880065b4e70b34523094a79bc04f7f08c69844441700be92715792ef7a
7
+ data.tar.gz: 0dd3a891b71f08afcea0b608b0fd0e06464b5a49261917b3f8d502271be8934298c7bb60fb3eb71bd8f7db5cb06fa75410a7852722c887136b2d57256d7caa45
@@ -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.280.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-03 00:00:00.000000000 Z
11
+ date: 2024-10-10 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.280.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.280.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,8 +263,8 @@ 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
267
- post_install_message:
266
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.280.0
267
+ post_install_message:
268
268
  rdoc_options: []
269
269
  require_paths:
270
270
  - lib
@@ -280,7 +280,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
280
280
  version: 3.1.0
281
281
  requirements: []
282
282
  rubygems_version: 3.5.9
283
- signing_key:
283
+ signing_key:
284
284
  specification_version: 4
285
285
  summary: Provides Dependabot support for Rust (Cargo)
286
286
  test_files: []