2020-11-26 10:27:44 +00:00
|
|
|
--TEST--
|
|
|
|
Update mirrors with a new root require which is not yet in lock should simply ignore it
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{"name": "a/a", "version": "1.0.0"},
|
|
|
|
{"name": "a/a", "version": "1.1.0"},
|
|
|
|
{"name": "b/b", "version": "1.0.0"},
|
|
|
|
{"name": "b/b", "version": "1.1.0"},
|
|
|
|
{"name": "new/req", "version": "1.0.0"},
|
|
|
|
{"name": "new/req", "version": "1.1.0"}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"a/a": "1.*",
|
|
|
|
"new/req": "1.*"
|
|
|
|
},
|
|
|
|
"require-dev": {
|
|
|
|
"b/b": "1.*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
|
|
|
{"name": "a/a", "version": "1.0.0"},
|
|
|
|
{"name": "b/b", "version": "1.0.0"}
|
|
|
|
]
|
|
|
|
--LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{"name": "a/a", "version": "1.0.0", "type": "library"}
|
|
|
|
],
|
|
|
|
"packages-dev": [
|
|
|
|
{"name": "b/b", "version": "1.0.0", "type": "library"}
|
|
|
|
],
|
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "dev",
|
2024-09-18 14:32:40 +00:00
|
|
|
"stability-flags": {},
|
2020-11-26 10:27:44 +00:00
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false,
|
2024-09-18 14:32:40 +00:00
|
|
|
"platform": {},
|
|
|
|
"platform-dev": {}
|
2020-11-26 10:27:44 +00:00
|
|
|
}
|
|
|
|
--RUN--
|
|
|
|
update mirrors
|
|
|
|
--EXPECT-LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{"name": "a/a", "version": "1.0.0", "type": "library"}
|
|
|
|
],
|
|
|
|
"packages-dev": [
|
|
|
|
{"name": "b/b", "version": "1.0.0", "type": "library"}
|
|
|
|
],
|
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "stable",
|
2024-09-18 14:32:40 +00:00
|
|
|
"stability-flags": {},
|
2020-11-26 10:27:44 +00:00
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false,
|
2024-09-18 14:32:40 +00:00
|
|
|
"platform": {},
|
|
|
|
"platform-dev": {}
|
2020-11-26 10:27:44 +00:00
|
|
|
}
|
|
|
|
--EXPECT--
|