2023-05-02 19:39:45 +00:00
|
|
|
--TEST--
|
|
|
|
Ensure that a package gets loaded which was previously skipped due to replacement
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{"name": "root/dep", "version": "1.2.0", "require": {"replacer/pkg": ">=1.1.0"}},
|
|
|
|
{"name": "replacer/pkg", "version": "1.0.0", "replace": {"replaced/pkg": "1.0.0"}},
|
|
|
|
{"name": "replacer/pkg", "version": "1.1.0"},
|
|
|
|
{"name": "replaced/pkg", "version": "1.0.0"},
|
|
|
|
{"name": "root/no-update", "version": "1.0.0", "require": {"replaced/pkg": "1.0.0"}}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"root/dep": "*",
|
|
|
|
"root/no-update": "*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{"name": "root/dep", "version": "1.1.0", "require": {"replacer/pkg": "1.*"}},
|
|
|
|
{"name": "replacer/pkg", "version": "1.0.0", "replace": {"replaced/pkg": "1.0.0"}},
|
|
|
|
{"name": "root/no-update", "version": "1.0.0", "require": {"replaced/pkg": "1.0.0"}}
|
|
|
|
],
|
|
|
|
"packages-dev": [],
|
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "dev",
|
2024-09-18 14:32:40 +00:00
|
|
|
"stability-flags": {},
|
2023-05-02 19:39:45 +00:00
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false,
|
2024-09-18 14:32:40 +00:00
|
|
|
"platform": {},
|
|
|
|
"platform-dev": {}
|
2023-05-02 19:39:45 +00:00
|
|
|
}
|
|
|
|
--RUN--
|
|
|
|
update root/dep --with-all-dependencies
|
|
|
|
--EXPECT--
|
|
|
|
Installing replacer/pkg (1.1.0)
|
|
|
|
Installing root/dep (1.2.0)
|
|
|
|
Installing replaced/pkg (1.0.0)
|
|
|
|
Installing root/no-update (1.0.0)
|