2020-03-13 08:50:28 +00:00
--TEST--
Test the error output of solver problems with dev-master aliases.
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
2020-06-19 13:35:09 +00:00
{ "name": "locked/pkg", "version": "dev-master", "require": {"locked/dependency": "1.0.0"}, "default-branch": true }
2020-03-13 08:50:28 +00:00
]
}
],
"require": {
"locked/pkg": "*@dev"
}
}
--LOCK--
{
"packages": [
2020-06-19 13:35:09 +00:00
{ "name": "locked/pkg", "version": "dev-master", "require": {"locked/dependency": "1.0.0"}, "default-branch": true },
2020-03-13 08:50:28 +00:00
{ "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
2020-03-13 10:12:39 +00:00
- locked/pkg dev-master requires locked/dependency 1.0.0 -> found locked/dependency[1.0.0] in lock file but not in remote repositories, make sure you avoid updating this package to keep the one from lock file.
2020-06-02 11:44:56 +00:00
- locked/pkg is locked to version dev-master and an update of this package was not requested.
2020-03-13 08:50:28 +00:00
2020-10-18 11:13:44 +00:00
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
2020-03-13 08:50:28 +00:00
--EXPECT--