2020-11-16 12:27:54 +00:00
--TEST--
2020-11-26 11:10:07 +00:00
Test that conflict with a branch alias in the lock file leads to an error on install from lock, even if the branch alias was removed on the remote end.
2020-11-16 12:27:54 +00:00
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
{ "name": "some/dep", "version": "1.0.0" },
{ "name": "some/dep", "version": "1.1.0" },
{ "name": "some/dep", "version": "1.2.0" },
2020-11-26 11:10:07 +00:00
{ "name": "some/dep", "version": "dev-main" },
2020-11-16 12:27:54 +00:00
{ "name": "some/dep", "version": "1.2.x-dev" },
{ "name": "conflictor/foo", "version": "1.0.0", "conflict": { "some/dep": ">=1.3" } }
]
}
],
"require": {
"some/dep": "dev-main",
"conflictor/foo": "1.0.0"
}
}
--LOCK--
{
"packages": [
{ "name": "conflictor/foo", "version": "1.0.0", "conflict": { "some/dep": ">=1.3" }, "type": "library" },
{ "name": "some/dep", "version": "dev-main", "extra": {"branch-alias": {"dev-main": "1.3.x-dev"} }, "type": "library" }
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": {
"some/dep": 20
},
"prefer-stable": false,
"prefer-lowest": false,
2024-09-18 14:32:40 +00:00
"platform": {},
"platform-dev": {}
2020-11-16 12:27:54 +00:00
}
--RUN--
install
2020-11-26 11:10:07 +00:00
--EXPECT-EXIT-CODE--
2
--EXPECT-OUTPUT--
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- conflictor/foo is locked to version 1.0.0 and an update of this package was not requested.
- some/dep is locked to version 1.3.x-dev and an update of this package was not requested.
2024-09-17 12:13:58 +00:00
- conflictor/foo 1.0.0 conflicts with some/dep 1.3.x-dev.
2020-11-26 11:10:07 +00:00
2020-11-16 12:27:54 +00:00
--EXPECT--