dependabot-uv 0.406.0 → 0.407.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 +4 -4
- data/lib/dependabot/uv/file_updater/compile_file_updater.rb +17 -7
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 96db61c0a3743fab13760da71d50bea3a7a9ae3a96d0646f3110684ed5e4568d
|
|
4
|
+
data.tar.gz: 2c0d98c3b133431319115c65456f70e339c1404ea8301fa63decafa9681e7ad4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 886da63cb5a29da717b08070c1976053a99faf9c29f105f2c61c7ff0f915c4e8ed843feb604af57b44e0527c26b0d71d9bacd567b2b53db87db2bf1663c99f9d
|
|
7
|
+
data.tar.gz: d540a63f591ccf802af195f46c4aad03ab9e87bfad0052fee2332d7498990779074454c410521cd045239bbc0615c8b6917a7cf1eb84a282190ec1bb73b0a98e
|
|
@@ -202,7 +202,8 @@ module Dependabot
|
|
|
202
202
|
removed: dep.removed?
|
|
203
203
|
)],
|
|
204
204
|
dependency_files: files,
|
|
205
|
-
credentials: credentials
|
|
205
|
+
credentials: credentials,
|
|
206
|
+
index_urls: @index_urls
|
|
206
207
|
).updated_dependency_files
|
|
207
208
|
end
|
|
208
209
|
sig do
|
|
@@ -420,15 +421,16 @@ module Dependabot
|
|
|
420
421
|
changed_hashes_deps = []
|
|
421
422
|
|
|
422
423
|
new_matches.each do |mtch|
|
|
423
|
-
|
|
424
|
-
old_match = old_matches.find { |m| m.named_captures["name"] == nm }
|
|
424
|
+
old_match = matching_old_requirement(old_matches, mtch)
|
|
425
425
|
|
|
426
426
|
next new_deps << mtch unless old_match
|
|
427
|
-
next unless old_match.named_captures["hashes"]
|
|
428
427
|
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
428
|
+
old_hashes = old_match.named_captures["hashes"]
|
|
429
|
+
new_hashes = mtch.named_captures["hashes"]
|
|
430
|
+
# `uv export` writes an entry without hashes when the package's index publishes none
|
|
431
|
+
next unless old_hashes && new_hashes
|
|
432
|
+
|
|
433
|
+
changed_hashes_deps << mtch if new_hashes.split("--hash").count < old_hashes.split("--hash").count
|
|
432
434
|
end
|
|
433
435
|
|
|
434
436
|
return [] if changed_hashes_deps.none?
|
|
@@ -436,6 +438,14 @@ module Dependabot
|
|
|
436
438
|
[*new_deps, *changed_hashes_deps]
|
|
437
439
|
end
|
|
438
440
|
|
|
441
|
+
# A package can be listed more than once, for example once per platform when each platform resolves from its
|
|
442
|
+
# own index, so compare with the entry for the same version before falling back to the first one of that name.
|
|
443
|
+
sig { params(old_matches: T::Array[MatchData], mtch: MatchData).returns(T.nilable(MatchData)) }
|
|
444
|
+
def matching_old_requirement(old_matches, mtch)
|
|
445
|
+
same_name = old_matches.select { |m| m.named_captures["name"] == mtch.named_captures["name"] }
|
|
446
|
+
same_name.find { |m| m.named_captures["version"] == mtch.named_captures["version"] } || same_name.first
|
|
447
|
+
end
|
|
448
|
+
|
|
439
449
|
sig { params(name: String, version: String, algorithm: String).returns(T::Array[String]) }
|
|
440
450
|
def package_hashes_for(name:, version:, algorithm:)
|
|
441
451
|
index_urls = @index_urls || [nil]
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dependabot-uv
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.407.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dependabot
|
|
@@ -15,28 +15,28 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - '='
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.
|
|
18
|
+
version: 0.407.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - '='
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.
|
|
25
|
+
version: 0.407.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: dependabot-python
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
29
29
|
requirements:
|
|
30
30
|
- - '='
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 0.
|
|
32
|
+
version: 0.407.0
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - '='
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 0.
|
|
39
|
+
version: 0.407.0
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: debug
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -303,7 +303,7 @@ licenses:
|
|
|
303
303
|
- MIT
|
|
304
304
|
metadata:
|
|
305
305
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
|
306
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
|
306
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.407.0
|
|
307
307
|
rdoc_options: []
|
|
308
308
|
require_paths:
|
|
309
309
|
- lib
|