You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.6 KiB
Plaintext
55 lines
1.6 KiB
Plaintext
5 years ago
|
--TEST--
|
||
|
Test the error output of solver problems with dev-master aliases.
|
||
|
--COMPOSER--
|
||
|
{
|
||
|
"repositories": [
|
||
|
{
|
||
|
"type": "package",
|
||
|
"package": [
|
||
|
{ "name": "locked/pkg", "version": "dev-master", "require": {"locked/dependency": "1.0.0"} }
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"require": {
|
||
|
"locked/pkg": "*@dev"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
--LOCK--
|
||
|
{
|
||
|
"packages": [
|
||
|
{ "name": "locked/pkg", "version": "dev-master", "require": {"locked/dependency": "1.0.0"} },
|
||
|
{ "name": "locked/dependency", "version": "1.0.0" }
|
||
|
],
|
||
|
"packages-dev": [],
|
||
|
"aliases": [],
|
||
|
"minimum-stability": "dev",
|
||
|
"stability-flags": [],
|
||
|
"prefer-stable": false,
|
||
|
"prefer-lowest": false,
|
||
|
"platform": [],
|
||
|
"platform-dev": []
|
||
|
}
|
||
|
|
||
|
--RUN--
|
||
|
update locked/dependency
|
||
|
|
||
|
--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
|
||
|
- locked/pkg is locked to version dev-master and an update of this package was not requested.
|
||
|
- locked/pkg dev-master requires locked/dependency 1.0.0 -> found locked/dependency[1.0.0] but it conflicts with another require.
|
||
|
Problem 2
|
||
|
- locked/pkg dev-master requires locked/dependency 1.0.0 -> found locked/dependency[1.0.0] but it conflicts with another require.
|
||
|
- Root composer.json requires locked/pkg *@dev -> satisfiable by locked/pkg[dev-master].
|
||
|
|
||
|
Use the option --with-all-dependencies to allow updates and removals for packages currently locked to specific versions.
|
||
|
--EXPECT--
|
||
|
|