dependabot-composer 0.291.0 → 0.292.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/helpers/v2/composer.json +1 -1
- data/helpers/v2/composer.lock +7 -7
- data/lib/dependabot/composer/file_parser.rb +3 -2
- data/lib/dependabot/composer/file_updater/lockfile_updater.rb +0 -8
- data/lib/dependabot/composer/language.rb +3 -5
- data/lib/dependabot/composer/package_manager.rb +12 -6
- data/lib/dependabot/composer/update_checker/version_resolver.rb +0 -1
- 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: a5b18f569628d859443c19310162b313bd37341928d2e287b1ee9c33b8c7186a
|
4
|
+
data.tar.gz: a5c9a4e5e08b3d00d6f9970c535b61682151a2acb5bfd54d5056531b4a747893
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9186f5abde9f582f32d2c70603ebe2fde54ed14534ace2f58d0ac1cfbb3b5f784a2385fb76418ae8bed75abe6754835d3d9f2a9e805abe6c622d97ce8aa9d1c
|
7
|
+
data.tar.gz: bde562d186042da9b0011ecdc062104fa6bcca82417ca61f51d3d7b199fceec59977005f86b64e7b657d4331f86481bcc5f20289b85a58e8428903c5ebeb4dcd
|
data/helpers/v2/composer.json
CHANGED
data/helpers/v2/composer.lock
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
5
5
|
"This file is @generated automatically"
|
6
6
|
],
|
7
|
-
"content-hash": "
|
7
|
+
"content-hash": "f4796b6b337d1572402dac1f9c94c69b",
|
8
8
|
"packages": [
|
9
9
|
{
|
10
10
|
"name": "composer/ca-bundle",
|
@@ -2406,20 +2406,20 @@
|
|
2406
2406
|
},
|
2407
2407
|
{
|
2408
2408
|
"name": "phpstan/phpstan",
|
2409
|
-
"version": "
|
2409
|
+
"version": "2.0.4",
|
2410
2410
|
"source": {
|
2411
2411
|
"type": "git",
|
2412
2412
|
"url": "https://github.com/phpstan/phpstan.git",
|
2413
|
-
"reference": "
|
2413
|
+
"reference": "50d276fc3bf1430ec315f2f109bbde2769821524"
|
2414
2414
|
},
|
2415
2415
|
"dist": {
|
2416
2416
|
"type": "zip",
|
2417
|
-
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/
|
2418
|
-
"reference": "
|
2417
|
+
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/50d276fc3bf1430ec315f2f109bbde2769821524",
|
2418
|
+
"reference": "50d276fc3bf1430ec315f2f109bbde2769821524",
|
2419
2419
|
"shasum": ""
|
2420
2420
|
},
|
2421
2421
|
"require": {
|
2422
|
-
"php": "^7.
|
2422
|
+
"php": "^7.4|^8.0"
|
2423
2423
|
},
|
2424
2424
|
"conflict": {
|
2425
2425
|
"phpstan/phpstan-shim": "*"
|
@@ -2460,7 +2460,7 @@
|
|
2460
2460
|
"type": "github"
|
2461
2461
|
}
|
2462
2462
|
],
|
2463
|
-
"time": "2024-
|
2463
|
+
"time": "2024-12-17T17:14:01+00:00"
|
2464
2464
|
},
|
2465
2465
|
{
|
2466
2466
|
"name": "psr/event-dispatcher",
|
@@ -59,11 +59,12 @@ module Dependabot
|
|
59
59
|
def package_manager
|
60
60
|
if composer_version == Helpers::V1
|
61
61
|
return PackageManager.new(
|
62
|
-
composer_version
|
62
|
+
detected_version: composer_version
|
63
63
|
)
|
64
64
|
end
|
65
65
|
PackageManager.new(
|
66
|
-
|
66
|
+
detected_version: composer_version,
|
67
|
+
raw_version: env_versions[:composer]
|
67
68
|
)
|
68
69
|
end
|
69
70
|
|
@@ -204,14 +204,6 @@ module Dependabot
|
|
204
204
|
raise PrivateSourceAuthenticationFailure, source
|
205
205
|
end
|
206
206
|
|
207
|
-
# NOTE: This error is raised by composer v1
|
208
|
-
if error.message.include?("Argument 1 passed to Composer")
|
209
|
-
msg = "One of your Composer plugins is not compatible with the " \
|
210
|
-
"latest version of Composer. Please update Composer and " \
|
211
|
-
"try running `composer update` to debug further."
|
212
|
-
raise DependencyFileNotResolvable, msg
|
213
|
-
end
|
214
|
-
|
215
207
|
# NOTE: This error is raised by composer v2 and includes helpful
|
216
208
|
# information about which plugins or dependencies are not compatible
|
217
209
|
if error.message.include?("Your requirements could not be resolved")
|
@@ -16,11 +16,9 @@ module Dependabot
|
|
16
16
|
sig { params(raw_version: String, requirement: T.nilable(Requirement)).void }
|
17
17
|
def initialize(raw_version, requirement: nil)
|
18
18
|
super(
|
19
|
-
NAME,
|
20
|
-
Version.new(raw_version),
|
21
|
-
|
22
|
-
[],
|
23
|
-
requirement
|
19
|
+
name: NAME,
|
20
|
+
version: Version.new(raw_version),
|
21
|
+
requirement: requirement
|
24
22
|
)
|
25
23
|
end
|
26
24
|
|
@@ -33,13 +33,19 @@ module Dependabot
|
|
33
33
|
# DEPRECATED_COMPOSER_VERSIONS = T.let([Version.new("1")].freeze, T::Array[Dependabot::Version])
|
34
34
|
DEPRECATED_COMPOSER_VERSIONS = T.let([].freeze, T::Array[Dependabot::Version])
|
35
35
|
|
36
|
-
sig
|
37
|
-
|
36
|
+
sig do
|
37
|
+
params(
|
38
|
+
detected_version: String,
|
39
|
+
raw_version: T.nilable(String)
|
40
|
+
).void
|
41
|
+
end
|
42
|
+
def initialize(detected_version:, raw_version: nil)
|
38
43
|
super(
|
39
|
-
NAME,
|
40
|
-
Version.new(
|
41
|
-
|
42
|
-
|
44
|
+
name: NAME,
|
45
|
+
detected_version: Version.new(detected_version),
|
46
|
+
version: raw_version ? Version.new(raw_version) : nil,
|
47
|
+
deprecated_versions: DEPRECATED_COMPOSER_VERSIONS,
|
48
|
+
supported_versions: SUPPORTED_COMPOSER_VERSIONS
|
43
49
|
)
|
44
50
|
end
|
45
51
|
end
|
@@ -34,7 +34,6 @@ module Dependabot
|
|
34
34
|
MISSING_IMPLICIT_PLATFORM_REQ_REGEX =
|
35
35
|
%r{
|
36
36
|
(?<!with|for|by)\sext\-[^\s\/]+\s.*?\s(?=->)|
|
37
|
-
(?<=requires\s)php(?:\-[^\s\/]+)?\s.*?\s(?=->)| # composer v1
|
38
37
|
(?<=require\s)php(?:\-[^\s\/]+)?\s.*?\s(?=->) # composer v2
|
39
38
|
}x
|
40
39
|
VERSION_REGEX = /[0-9]+(?:\.[A-Za-z0-9\-_]+)*/
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-composer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.292.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-01-09 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.
|
19
|
+
version: 0.292.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.
|
26
|
+
version: 0.292.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -276,7 +276,7 @@ licenses:
|
|
276
276
|
- MIT
|
277
277
|
metadata:
|
278
278
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
279
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
279
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.292.0
|
280
280
|
post_install_message:
|
281
281
|
rdoc_options: []
|
282
282
|
require_paths:
|
@@ -292,7 +292,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
292
292
|
- !ruby/object:Gem::Version
|
293
293
|
version: 3.1.0
|
294
294
|
requirements: []
|
295
|
-
rubygems_version: 3.5.
|
295
|
+
rubygems_version: 3.5.22
|
296
296
|
signing_key:
|
297
297
|
specification_version: 4
|
298
298
|
summary: Provides Dependabot support for PHP (composer)
|