1
0
Fork 0
composer/tests/Composer/Test/Fixtures/installer/conflict-against-replaced-p...

45 lines
1.1 KiB
Plaintext
Raw Normal View History

--TEST--
Test that a conflict against a name that is only replaced by root correctly highlights the issue
--COMPOSER--
{
"version": "1.2.3",
"repositories": [
{
"type": "package",
"package": [
{
"name": "conflicting/pkg",
"version": "1.0.0",
"conflict": {
"replaced/pkg": "2.*"
}
}
]
}
],
"require": {
"conflicting/pkg": "*"
},
"replace": {
"replaced/pkg": "2.*"
}
}
--RUN--
update
--EXPECT-EXIT-CODE--
2
--EXPECT-OUTPUT--
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- __root__ is present at version 1.2.3 and cannot be modified by Composer
- Root composer.json requires conflicting/pkg * -> satisfiable by conflicting/pkg[1.0.0].
2024-09-17 12:13:58 +00:00
- conflicting/pkg 1.0.0 conflicts with replaced/pkg 2.* (__root__ 1.2.3 replaces replaced/pkg 2.*).
--EXPECT--