2020-04-22 12:02:09 +00:00
--TEST--
Root alias changing after the lock file was created and invalidating it should show a decent error message
This also checks that an implicit stabilityFlag is added for the root package, if it is a dev version
--COMPOSER--
{
"name": "root/pkg",
"repositories": [
{
"type": "package",
"package": [
{
"name": "b/requirer", "version": "1.0.0",
"require": { "root/pkg": "^1" }
}
]
}
],
"require": {
"b/requirer": "*"
},
"version": "2.x-dev"
}
--INSTALLED--
[
{
"name": "b/requirer", "version": "1.0.0",
"require": { "root/pkg": "^1" }
}
]
--LOCK--
{
"packages": [
{
"name": "b/requirer", "version": "1.0.0",
"require": { "root/pkg": "^1" },
"type": "library"
}
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
2024-09-18 14:32:40 +00:00
"stability-flags": {},
2020-04-22 12:02:09 +00:00
"prefer-stable": false,
"prefer-lowest": false,
2024-09-18 14:32:40 +00:00
"platform": {},
"platform-dev": {}
2020-04-22 12:02:09 +00:00
}
--RUN--
install
--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
- b/requirer is locked to version 1.0.0 and an update of this package was not requested.
2021-05-25 21:04:41 +00:00
- b/requirer 1.0.0 requires root/pkg ^1 -> found root/pkg[2.x-dev] but it does not match the constraint. See https://getcomposer.org/dep-on-root for details and assistance.
2020-04-22 12:02:09 +00:00
--EXPECT--