dependabot-composer 0.124.4 → 0.125.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/helpers/bin/run +19 -15
- data/helpers/composer.lock +5 -5
- data/lib/dependabot/composer/update_checker/version_resolver.rb +4 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89424b97e7fe4cd7b4deed7e17d5daedc91a3a4bdb678434f5a68480c2e59094
|
4
|
+
data.tar.gz: 3c20c798d8f51f1ff9a3c294d215350eb3bfe221dc915b8842db2791f829d7ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b11054ecfd23a20c426f39a5e5e2fbdcd994f8b25779aa0201176fbb7dfaae74e82a6d9a121c354691a7f808b51d675cb3e29d0bf907d7dc4e6c8bd64a49350
|
7
|
+
data.tar.gz: 5b74ccdbc6bf5ba2f0b6af7c7f7e34a51cfba792996dc5af74ee9e2e2df7c1cd2f2e5af0acaa0323b4f9df05f620a78435af0560269ed4705f4de08c4162b72a
|
data/helpers/bin/run
CHANGED
@@ -11,25 +11,25 @@ require __DIR__ . '/../vendor/autoload.php';
|
|
11
11
|
// and an `args` method, as passed in by UpdateCheckers::Php
|
12
12
|
$request = json_decode(file_get_contents('php://stdin'), true);
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
$
|
17
|
-
|
18
|
-
$value
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
$value *= 1024;
|
25
|
-
}
|
14
|
+
function memoryInBytes($value) {
|
15
|
+
$unit = strtolower(substr($value, -1, 1));
|
16
|
+
$value = (int) $value;
|
17
|
+
if ($unit == 'g') {
|
18
|
+
$value *= (1024 * 1024 * 1024);
|
19
|
+
} elseif ($unit == 'm') {
|
20
|
+
$value *= (1024 * 1024);
|
21
|
+
} elseif ($unit == 'k') {
|
22
|
+
$value *= 1024;
|
23
|
+
}
|
26
24
|
|
27
|
-
|
28
|
-
|
25
|
+
return $value;
|
26
|
+
}
|
29
27
|
|
28
|
+
// Increase the default memory limit the same way Composer does (but clearer)
|
29
|
+
if (function_exists('ini_set')) {
|
30
30
|
$memoryLimit = trim(ini_get('memory_limit'));
|
31
31
|
// Increase memory_limit if it is lower than 1900MB
|
32
|
-
if ($memoryLimit != -1 &&
|
32
|
+
if ($memoryLimit != -1 && memoryInBytes($memoryLimit) < 1024 * 1024 * 1900) {
|
33
33
|
@ini_set('memory_limit', '1900M');
|
34
34
|
}
|
35
35
|
|
@@ -54,6 +54,10 @@ register_shutdown_function(function (): void {
|
|
54
54
|
}
|
55
55
|
});
|
56
56
|
|
57
|
+
if ($memoryAlloc = getenv('DEPENDABOT_TEST_MEMORY_ALLOCATION')) {
|
58
|
+
str_repeat('*', memoryInBytes($memoryAlloc));
|
59
|
+
}
|
60
|
+
|
57
61
|
try {
|
58
62
|
switch ($request['function']) {
|
59
63
|
case 'update':
|
data/helpers/composer.lock
CHANGED
@@ -1854,16 +1854,16 @@
|
|
1854
1854
|
},
|
1855
1855
|
{
|
1856
1856
|
"name": "phpstan/phpstan",
|
1857
|
-
"version": "0.12.
|
1857
|
+
"version": "0.12.53",
|
1858
1858
|
"source": {
|
1859
1859
|
"type": "git",
|
1860
1860
|
"url": "https://github.com/phpstan/phpstan.git",
|
1861
|
-
"reference": "
|
1861
|
+
"reference": "dbbdb0d7c2434ecd5289f6114d16473e694caa67"
|
1862
1862
|
},
|
1863
1863
|
"dist": {
|
1864
1864
|
"type": "zip",
|
1865
|
-
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/
|
1866
|
-
"reference": "
|
1865
|
+
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/dbbdb0d7c2434ecd5289f6114d16473e694caa67",
|
1866
|
+
"reference": "dbbdb0d7c2434ecd5289f6114d16473e694caa67",
|
1867
1867
|
"shasum": ""
|
1868
1868
|
},
|
1869
1869
|
"require": {
|
@@ -1906,7 +1906,7 @@
|
|
1906
1906
|
"type": "tidelift"
|
1907
1907
|
}
|
1908
1908
|
],
|
1909
|
-
"time": "2020-
|
1909
|
+
"time": "2020-11-01T14:51:50+00:00"
|
1910
1910
|
},
|
1911
1911
|
{
|
1912
1912
|
"name": "psr/event-dispatcher",
|
@@ -320,6 +320,10 @@ module Dependabot
|
|
320
320
|
elsif error.message.start_with?("Allowed memory size") ||
|
321
321
|
error.message.start_with?("Out of memory")
|
322
322
|
raise Dependabot::OutOfMemory
|
323
|
+
elsif error.error_context[:process_termsig] ==
|
324
|
+
Dependabot::SharedHelpers::SIGKILL
|
325
|
+
# If the helper was SIGKILL-ed, assume the OOMKiller did it
|
326
|
+
raise Dependabot::OutOfMemory
|
323
327
|
elsif error.message.start_with?("Package not found in updated") &&
|
324
328
|
!dependency.top_level?
|
325
329
|
# If we can't find the dependency in the composer.lock after an
|
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.125.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-05 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.125.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.125.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: byebug
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|