2020-04-02 13:32:02 +00:00
|
|
|
--TEST--
|
2020-09-23 14:52:30 +00:00
|
|
|
A partial update for a new package yet to be installed should remove another dependency it replaces if that allows installation.
|
2020-04-02 13:32:02 +00:00
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{ "name": "current/pkg", "version": "1.0.0", "require": { "current/dep": "*" } },
|
|
|
|
{ "name": "current/dep", "version": "1.0.0" },
|
|
|
|
{ "name": "new/pkg", "version": "1.0.0", "replace": { "current/dep": "1.0.0" } }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"current/pkg": "1.*",
|
|
|
|
"new/pkg": "1.*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
|
|
|
{ "name": "current/pkg", "version": "1.0.0", "require": { "current/dep": "*" } },
|
|
|
|
{ "name": "current/dep", "version": "1.0.0" }
|
|
|
|
]
|
|
|
|
--LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{ "name": "current/pkg", "version": "1.0.0", "require": { "current/dep": "*" } },
|
|
|
|
{ "name": "current/dep", "version": "1.0.0" }
|
|
|
|
],
|
|
|
|
"packages-dev": [],
|
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "dev",
|
2024-09-18 14:32:40 +00:00
|
|
|
"stability-flags": {},
|
2020-04-02 13:32:02 +00:00
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false,
|
2024-09-18 14:32:40 +00:00
|
|
|
"platform": {},
|
|
|
|
"platform-dev": {}
|
2020-04-02 13:32:02 +00:00
|
|
|
}
|
|
|
|
--RUN--
|
|
|
|
update new/pkg
|
|
|
|
--EXPECT--
|
2020-09-23 14:52:30 +00:00
|
|
|
Removing current/dep (1.0.0)
|
|
|
|
Installing new/pkg (1.0.0)
|