dependabot-composer 0.171.3 → 0.172.1
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.lock +56 -56
- data/helpers/v2/src/UpdateChecker.php +3 -12
- data/helpers/v2/src/Updater.php +1 -0
- metadata +4 -5
- data/helpers/v2/src/DependabotInstallationManager.php +0 -74
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 729e5c195bf328c042ad0194b9d3d96c136da9a31ef3d4b1df41ad1ffc4919c9
|
4
|
+
data.tar.gz: 8167f5e28733aced75960640261b8675118a4179bcf02647a1612a06c5346ffb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a6d378d54db390205c7a39871c8661a3d5d6aa0d8148b6942f4bb64208b5c4e0a53114516181db5acc880a3224aa8e3f67ad3676ad35f4ee7a9760a0e7f5c8a
|
7
|
+
data.tar.gz: '0059cef5a42eb6439f2f0626a03f55e653f38bfe3fe021cc2a2e961b0089e9fd930ced3cde6133fae2bcb06b7fa57b849143d395b55604678f5bc3c4825a1bfd'
|
data/helpers/v2/composer.lock
CHANGED
@@ -79,16 +79,16 @@
|
|
79
79
|
},
|
80
80
|
{
|
81
81
|
"name": "composer/composer",
|
82
|
-
"version": "2.2.
|
82
|
+
"version": "2.2.6",
|
83
83
|
"source": {
|
84
84
|
"type": "git",
|
85
85
|
"url": "https://github.com/composer/composer.git",
|
86
|
-
"reference": "
|
86
|
+
"reference": "ce785a18c0fb472421e52d958bab339247cb0e82"
|
87
87
|
},
|
88
88
|
"dist": {
|
89
89
|
"type": "zip",
|
90
|
-
"url": "https://api.github.com/repos/composer/composer/zipball/
|
91
|
-
"reference": "
|
90
|
+
"url": "https://api.github.com/repos/composer/composer/zipball/ce785a18c0fb472421e52d958bab339247cb0e82",
|
91
|
+
"reference": "ce785a18c0fb472421e52d958bab339247cb0e82",
|
92
92
|
"shasum": ""
|
93
93
|
},
|
94
94
|
"require": {
|
@@ -169,7 +169,7 @@
|
|
169
169
|
"type": "tidelift"
|
170
170
|
}
|
171
171
|
],
|
172
|
-
"time": "2022-
|
172
|
+
"time": "2022-02-04T16:00:38+00:00"
|
173
173
|
},
|
174
174
|
{
|
175
175
|
"name": "composer/metadata-minifier",
|
@@ -305,23 +305,23 @@
|
|
305
305
|
},
|
306
306
|
{
|
307
307
|
"name": "composer/semver",
|
308
|
-
"version": "3.2.
|
308
|
+
"version": "3.2.9",
|
309
309
|
"source": {
|
310
310
|
"type": "git",
|
311
311
|
"url": "https://github.com/composer/semver.git",
|
312
|
-
"reference": "
|
312
|
+
"reference": "a951f614bd64dcd26137bc9b7b2637ddcfc57649"
|
313
313
|
},
|
314
314
|
"dist": {
|
315
315
|
"type": "zip",
|
316
|
-
"url": "https://api.github.com/repos/composer/semver/zipball/
|
317
|
-
"reference": "
|
316
|
+
"url": "https://api.github.com/repos/composer/semver/zipball/a951f614bd64dcd26137bc9b7b2637ddcfc57649",
|
317
|
+
"reference": "a951f614bd64dcd26137bc9b7b2637ddcfc57649",
|
318
318
|
"shasum": ""
|
319
319
|
},
|
320
320
|
"require": {
|
321
321
|
"php": "^5.3.2 || ^7.0 || ^8.0"
|
322
322
|
},
|
323
323
|
"require-dev": {
|
324
|
-
"phpstan/phpstan": "^
|
324
|
+
"phpstan/phpstan": "^1.4",
|
325
325
|
"symfony/phpunit-bridge": "^4.2 || ^5"
|
326
326
|
},
|
327
327
|
"type": "library",
|
@@ -377,7 +377,7 @@
|
|
377
377
|
"type": "tidelift"
|
378
378
|
}
|
379
379
|
],
|
380
|
-
"time": "2022-
|
380
|
+
"time": "2022-02-04T13:58:43+00:00"
|
381
381
|
},
|
382
382
|
{
|
383
383
|
"name": "composer/spdx-licenses",
|
@@ -694,12 +694,12 @@
|
|
694
694
|
},
|
695
695
|
"type": "library",
|
696
696
|
"autoload": {
|
697
|
-
"psr-4": {
|
698
|
-
"React\\Promise\\": "src/"
|
699
|
-
},
|
700
697
|
"files": [
|
701
698
|
"src/functions_include.php"
|
702
|
-
]
|
699
|
+
],
|
700
|
+
"psr-4": {
|
701
|
+
"React\\Promise\\": "src/"
|
702
|
+
}
|
703
703
|
},
|
704
704
|
"notification-url": "https://packagist.org/downloads/",
|
705
705
|
"license": [
|
@@ -823,16 +823,16 @@
|
|
823
823
|
},
|
824
824
|
{
|
825
825
|
"name": "symfony/console",
|
826
|
-
"version": "v5.4.
|
826
|
+
"version": "v5.4.3",
|
827
827
|
"source": {
|
828
828
|
"type": "git",
|
829
829
|
"url": "https://github.com/symfony/console.git",
|
830
|
-
"reference": "
|
830
|
+
"reference": "a2a86ec353d825c75856c6fd14fac416a7bdb6b8"
|
831
831
|
},
|
832
832
|
"dist": {
|
833
833
|
"type": "zip",
|
834
|
-
"url": "https://api.github.com/repos/symfony/console/zipball/
|
835
|
-
"reference": "
|
834
|
+
"url": "https://api.github.com/repos/symfony/console/zipball/a2a86ec353d825c75856c6fd14fac416a7bdb6b8",
|
835
|
+
"reference": "a2a86ec353d825c75856c6fd14fac416a7bdb6b8",
|
836
836
|
"shasum": ""
|
837
837
|
},
|
838
838
|
"require": {
|
@@ -915,7 +915,7 @@
|
|
915
915
|
"type": "tidelift"
|
916
916
|
}
|
917
917
|
],
|
918
|
-
"time": "
|
918
|
+
"time": "2022-01-26T16:28:35+00:00"
|
919
919
|
},
|
920
920
|
{
|
921
921
|
"name": "symfony/deprecation-contracts",
|
@@ -983,16 +983,16 @@
|
|
983
983
|
},
|
984
984
|
{
|
985
985
|
"name": "symfony/filesystem",
|
986
|
-
"version": "v5.4.
|
986
|
+
"version": "v5.4.3",
|
987
987
|
"source": {
|
988
988
|
"type": "git",
|
989
989
|
"url": "https://github.com/symfony/filesystem.git",
|
990
|
-
"reference": "
|
990
|
+
"reference": "0f0c4bf1840420f4aef3f32044a9dbb24682731b"
|
991
991
|
},
|
992
992
|
"dist": {
|
993
993
|
"type": "zip",
|
994
|
-
"url": "https://api.github.com/repos/symfony/filesystem/zipball/
|
995
|
-
"reference": "
|
994
|
+
"url": "https://api.github.com/repos/symfony/filesystem/zipball/0f0c4bf1840420f4aef3f32044a9dbb24682731b",
|
995
|
+
"reference": "0f0c4bf1840420f4aef3f32044a9dbb24682731b",
|
996
996
|
"shasum": ""
|
997
997
|
},
|
998
998
|
"require": {
|
@@ -1040,20 +1040,20 @@
|
|
1040
1040
|
"type": "tidelift"
|
1041
1041
|
}
|
1042
1042
|
],
|
1043
|
-
"time": "
|
1043
|
+
"time": "2022-01-02T09:53:40+00:00"
|
1044
1044
|
},
|
1045
1045
|
{
|
1046
1046
|
"name": "symfony/finder",
|
1047
|
-
"version": "v5.4.
|
1047
|
+
"version": "v5.4.3",
|
1048
1048
|
"source": {
|
1049
1049
|
"type": "git",
|
1050
1050
|
"url": "https://github.com/symfony/finder.git",
|
1051
|
-
"reference": "
|
1051
|
+
"reference": "231313534dded84c7ecaa79d14bc5da4ccb69b7d"
|
1052
1052
|
},
|
1053
1053
|
"dist": {
|
1054
1054
|
"type": "zip",
|
1055
|
-
"url": "https://api.github.com/repos/symfony/finder/zipball/
|
1056
|
-
"reference": "
|
1055
|
+
"url": "https://api.github.com/repos/symfony/finder/zipball/231313534dded84c7ecaa79d14bc5da4ccb69b7d",
|
1056
|
+
"reference": "231313534dded84c7ecaa79d14bc5da4ccb69b7d",
|
1057
1057
|
"shasum": ""
|
1058
1058
|
},
|
1059
1059
|
"require": {
|
@@ -1100,7 +1100,7 @@
|
|
1100
1100
|
"type": "tidelift"
|
1101
1101
|
}
|
1102
1102
|
],
|
1103
|
-
"time": "
|
1103
|
+
"time": "2022-01-26T16:34:36+00:00"
|
1104
1104
|
},
|
1105
1105
|
{
|
1106
1106
|
"name": "symfony/polyfill-ctype",
|
@@ -1212,12 +1212,12 @@
|
|
1212
1212
|
}
|
1213
1213
|
},
|
1214
1214
|
"autoload": {
|
1215
|
-
"psr-4": {
|
1216
|
-
"Symfony\\Polyfill\\Intl\\Grapheme\\": ""
|
1217
|
-
},
|
1218
1215
|
"files": [
|
1219
1216
|
"bootstrap.php"
|
1220
|
-
]
|
1217
|
+
],
|
1218
|
+
"psr-4": {
|
1219
|
+
"Symfony\\Polyfill\\Intl\\Grapheme\\": ""
|
1220
|
+
}
|
1221
1221
|
},
|
1222
1222
|
"notification-url": "https://packagist.org/downloads/",
|
1223
1223
|
"license": [
|
@@ -1290,12 +1290,12 @@
|
|
1290
1290
|
}
|
1291
1291
|
},
|
1292
1292
|
"autoload": {
|
1293
|
-
"psr-4": {
|
1294
|
-
"Symfony\\Polyfill\\Intl\\Normalizer\\": ""
|
1295
|
-
},
|
1296
1293
|
"files": [
|
1297
1294
|
"bootstrap.php"
|
1298
1295
|
],
|
1296
|
+
"psr-4": {
|
1297
|
+
"Symfony\\Polyfill\\Intl\\Normalizer\\": ""
|
1298
|
+
},
|
1299
1299
|
"classmap": [
|
1300
1300
|
"Resources/stubs"
|
1301
1301
|
]
|
@@ -1448,12 +1448,12 @@
|
|
1448
1448
|
}
|
1449
1449
|
},
|
1450
1450
|
"autoload": {
|
1451
|
-
"psr-4": {
|
1452
|
-
"Symfony\\Polyfill\\Php73\\": ""
|
1453
|
-
},
|
1454
1451
|
"files": [
|
1455
1452
|
"bootstrap.php"
|
1456
1453
|
],
|
1454
|
+
"psr-4": {
|
1455
|
+
"Symfony\\Polyfill\\Php73\\": ""
|
1456
|
+
},
|
1457
1457
|
"classmap": [
|
1458
1458
|
"Resources/stubs"
|
1459
1459
|
]
|
@@ -1524,12 +1524,12 @@
|
|
1524
1524
|
}
|
1525
1525
|
},
|
1526
1526
|
"autoload": {
|
1527
|
-
"psr-4": {
|
1528
|
-
"Symfony\\Polyfill\\Php80\\": ""
|
1529
|
-
},
|
1530
1527
|
"files": [
|
1531
1528
|
"bootstrap.php"
|
1532
1529
|
],
|
1530
|
+
"psr-4": {
|
1531
|
+
"Symfony\\Polyfill\\Php80\\": ""
|
1532
|
+
},
|
1533
1533
|
"classmap": [
|
1534
1534
|
"Resources/stubs"
|
1535
1535
|
]
|
@@ -1578,16 +1578,16 @@
|
|
1578
1578
|
},
|
1579
1579
|
{
|
1580
1580
|
"name": "symfony/process",
|
1581
|
-
"version": "v5.4.
|
1581
|
+
"version": "v5.4.3",
|
1582
1582
|
"source": {
|
1583
1583
|
"type": "git",
|
1584
1584
|
"url": "https://github.com/symfony/process.git",
|
1585
|
-
"reference": "
|
1585
|
+
"reference": "553f50487389a977eb31cf6b37faae56da00f753"
|
1586
1586
|
},
|
1587
1587
|
"dist": {
|
1588
1588
|
"type": "zip",
|
1589
|
-
"url": "https://api.github.com/repos/symfony/process/zipball/
|
1590
|
-
"reference": "
|
1589
|
+
"url": "https://api.github.com/repos/symfony/process/zipball/553f50487389a977eb31cf6b37faae56da00f753",
|
1590
|
+
"reference": "553f50487389a977eb31cf6b37faae56da00f753",
|
1591
1591
|
"shasum": ""
|
1592
1592
|
},
|
1593
1593
|
"require": {
|
@@ -1633,7 +1633,7 @@
|
|
1633
1633
|
"type": "tidelift"
|
1634
1634
|
}
|
1635
1635
|
],
|
1636
|
-
"time": "
|
1636
|
+
"time": "2022-01-26T16:28:35+00:00"
|
1637
1637
|
},
|
1638
1638
|
{
|
1639
1639
|
"name": "symfony/service-contracts",
|
@@ -1717,16 +1717,16 @@
|
|
1717
1717
|
},
|
1718
1718
|
{
|
1719
1719
|
"name": "symfony/string",
|
1720
|
-
"version": "v5.4.
|
1720
|
+
"version": "v5.4.3",
|
1721
1721
|
"source": {
|
1722
1722
|
"type": "git",
|
1723
1723
|
"url": "https://github.com/symfony/string.git",
|
1724
|
-
"reference": "
|
1724
|
+
"reference": "92043b7d8383e48104e411bc9434b260dbeb5a10"
|
1725
1725
|
},
|
1726
1726
|
"dist": {
|
1727
1727
|
"type": "zip",
|
1728
|
-
"url": "https://api.github.com/repos/symfony/string/zipball/
|
1729
|
-
"reference": "
|
1728
|
+
"url": "https://api.github.com/repos/symfony/string/zipball/92043b7d8383e48104e411bc9434b260dbeb5a10",
|
1729
|
+
"reference": "92043b7d8383e48104e411bc9434b260dbeb5a10",
|
1730
1730
|
"shasum": ""
|
1731
1731
|
},
|
1732
1732
|
"require": {
|
@@ -1796,7 +1796,7 @@
|
|
1796
1796
|
"type": "tidelift"
|
1797
1797
|
}
|
1798
1798
|
],
|
1799
|
-
"time": "
|
1799
|
+
"time": "2022-01-02T09:53:40+00:00"
|
1800
1800
|
}
|
1801
1801
|
],
|
1802
1802
|
"packages-dev": [
|
@@ -2477,12 +2477,12 @@
|
|
2477
2477
|
}
|
2478
2478
|
},
|
2479
2479
|
"autoload": {
|
2480
|
-
"psr-4": {
|
2481
|
-
"Symfony\\Polyfill\\Php81\\": ""
|
2482
|
-
},
|
2483
2480
|
"files": [
|
2484
2481
|
"bootstrap.php"
|
2485
2482
|
],
|
2483
|
+
"psr-4": {
|
2484
|
+
"Symfony\\Polyfill\\Php81\\": ""
|
2485
|
+
},
|
2486
2486
|
"classmap": [
|
2487
2487
|
"Resources/stubs"
|
2488
2488
|
]
|
@@ -8,7 +8,6 @@ use Composer\DependencyResolver\Request;
|
|
8
8
|
use Composer\Factory;
|
9
9
|
use Composer\Installer;
|
10
10
|
use Composer\Package\PackageInterface;
|
11
|
-
use Composer\Util\Filesystem;
|
12
11
|
|
13
12
|
final class UpdateChecker
|
14
13
|
{
|
@@ -48,15 +47,6 @@ final class UpdateChecker
|
|
48
47
|
$io->loadConfiguration($config);
|
49
48
|
}
|
50
49
|
|
51
|
-
$installationManager = new DependabotInstallationManager($composer->getLoop(), $io);
|
52
|
-
|
53
|
-
$fs = new Filesystem(null);
|
54
|
-
$binaryInstaller = new Installer\BinaryInstaller($io, rtrim($composer->getConfig()->get('bin-dir'), '/'), $composer->getConfig()->get('bin-compat'), $fs);
|
55
|
-
|
56
|
-
$installationManager->addInstaller(new Installer\LibraryInstaller($io, $composer, null, $fs, $binaryInstaller));
|
57
|
-
$installationManager->addInstaller(new Installer\PluginInstaller($io, $composer, $fs, $binaryInstaller));
|
58
|
-
$installationManager->addInstaller(new Installer\MetapackageInstaller($io));
|
59
|
-
|
60
50
|
$install = new Installer(
|
61
51
|
$io,
|
62
52
|
$config,
|
@@ -64,7 +54,7 @@ final class UpdateChecker
|
|
64
54
|
$composer->getDownloadManager(),
|
65
55
|
$composer->getRepositoryManager(),
|
66
56
|
$composer->getLocker(),
|
67
|
-
$
|
57
|
+
$composer->getInstallationManager(),
|
68
58
|
$composer->getEventDispatcher(),
|
69
59
|
$composer->getAutoloadGenerator()
|
70
60
|
);
|
@@ -72,6 +62,7 @@ final class UpdateChecker
|
|
72
62
|
// For all potential options, see UpdateCommand in composer
|
73
63
|
$install
|
74
64
|
->setUpdate(true)
|
65
|
+
->setInstall(false)
|
75
66
|
->setDevMode(true)
|
76
67
|
->setUpdateAllowTransitiveDependencies(Request::UPDATE_LISTED_WITH_TRANSITIVE_DEPS)
|
77
68
|
->setDumpAutoloader(false)
|
@@ -86,7 +77,7 @@ final class UpdateChecker
|
|
86
77
|
|
87
78
|
$install->run();
|
88
79
|
|
89
|
-
$installedPackages = $
|
80
|
+
$installedPackages = $composer->getLocker()->getLockedRepository(true)->getPackages();
|
90
81
|
|
91
82
|
$updatedPackage = current(array_filter($installedPackages, static function (PackageInterface $package) use ($dependencyName): bool {
|
92
83
|
return $package->getName() === $dependencyName;
|
data/helpers/v2/src/Updater.php
CHANGED
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.172.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-02-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.172.1
|
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.172.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: debug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -203,7 +203,6 @@ files:
|
|
203
203
|
- helpers/v2/composer.json
|
204
204
|
- helpers/v2/composer.lock
|
205
205
|
- helpers/v2/phpstan.neon
|
206
|
-
- helpers/v2/src/DependabotInstallationManager.php
|
207
206
|
- helpers/v2/src/DependabotPluginManager.php
|
208
207
|
- helpers/v2/src/ExceptionIO.php
|
209
208
|
- helpers/v2/src/Hasher.php
|
@@ -1,74 +0,0 @@
|
|
1
|
-
<?php
|
2
|
-
|
3
|
-
declare(strict_types=1);
|
4
|
-
|
5
|
-
namespace Dependabot\Composer;
|
6
|
-
|
7
|
-
use Composer\DependencyResolver\Operation\InstallOperation;
|
8
|
-
use Composer\DependencyResolver\Operation\UninstallOperation;
|
9
|
-
use Composer\DependencyResolver\Operation\UpdateOperation;
|
10
|
-
use Composer\Installer\InstallationManager;
|
11
|
-
use Composer\Package\PackageInterface;
|
12
|
-
use Composer\Repository\InstalledRepositoryInterface;
|
13
|
-
use React\Promise\PromiseInterface;
|
14
|
-
|
15
|
-
final class DependabotInstallationManager extends InstallationManager
|
16
|
-
{
|
17
|
-
private array $installed = [];
|
18
|
-
private array $updated = [];
|
19
|
-
private array $uninstalled = [];
|
20
|
-
|
21
|
-
public function execute(InstalledRepositoryInterface $repo, array $operations, $devMode = true, $runScripts = true): void
|
22
|
-
{
|
23
|
-
foreach ($operations as $operation) {
|
24
|
-
$method = $operation->getOperationType();
|
25
|
-
// NOTE: skipping download() step
|
26
|
-
$this->$method($repo, $operation);
|
27
|
-
}
|
28
|
-
}
|
29
|
-
|
30
|
-
public function install(InstalledRepositoryInterface $repo, InstallOperation $operation): ?PromiseInterface
|
31
|
-
{
|
32
|
-
$this->installed[] = $operation->getPackage();
|
33
|
-
|
34
|
-
return null;
|
35
|
-
}
|
36
|
-
|
37
|
-
public function update(InstalledRepositoryInterface $repo, UpdateOperation $operation): ?PromiseInterface
|
38
|
-
{
|
39
|
-
$this->updated[] = [$operation->getInitialPackage(), $operation->getTargetPackage()];
|
40
|
-
|
41
|
-
return null;
|
42
|
-
}
|
43
|
-
|
44
|
-
public function uninstall(InstalledRepositoryInterface $repo, UninstallOperation $operation): ?PromiseInterface
|
45
|
-
{
|
46
|
-
$this->uninstalled[] = $operation->getPackage();
|
47
|
-
|
48
|
-
return null;
|
49
|
-
}
|
50
|
-
|
51
|
-
/**
|
52
|
-
* @return PackageInterface[]
|
53
|
-
*/
|
54
|
-
public function getInstalledPackages(): array
|
55
|
-
{
|
56
|
-
return $this->installed;
|
57
|
-
}
|
58
|
-
|
59
|
-
/**
|
60
|
-
* @return PackageInterface[]
|
61
|
-
*/
|
62
|
-
public function getUpdatedPackages(): array
|
63
|
-
{
|
64
|
-
return $this->updated;
|
65
|
-
}
|
66
|
-
|
67
|
-
/**
|
68
|
-
* @return PackageInterface[]
|
69
|
-
*/
|
70
|
-
public function getUninstalledPackages(): array
|
71
|
-
{
|
72
|
-
return $this->uninstalled;
|
73
|
-
}
|
74
|
-
}
|