dependabot-cargo 0.278.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: 7139df27d0d816d049f9b634ea6bb07dd9d218115d516bd1fd246656a896a9c7
4
- data.tar.gz: 830646109c386121beeb7f3882a071f881d077ccd96bfed48041f68425951094
3
+ metadata.gz: d4fdfd6dd91f79a57fc97cc455e468e1a2302c815ef4ab6b6d0eea5cd7e2b017
4
+ data.tar.gz: 6ef55c25d4ad9505af7d6d50dc09c58b7fe589d9518f85007ecd9882912f4588
5
5
  SHA512:
6
- metadata.gz: ae95d1ec74da990eca665f5c35e122534439ebad8cc3be419462f167c3f9d2c90838ae2078f490f8082a6834f50e45f98f815c2cb3c592d299f573c285ee50b2
7
- data.tar.gz: d12dbd6f6702fc8ec5154f811fbd93336ecc2bf01f58b08705df70ee3436b67a631a148be810fe8f06cc27059b6942c8ed8a8fb65ece777a2b0d5d8e121c12cd
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.278.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-09-26 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.278.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.278.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.278.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: []