2012-05-28 16:57:59 +00:00
|
|
|
--TEST--
|
2022-12-16 15:48:24 +00:00
|
|
|
Requirements from the composer file are not installed if the lock file is present, but fails on missing requirements
|
2012-05-28 16:57:59 +00:00
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
2020-03-11 08:34:40 +00:00
|
|
|
{ "name": "required/pkg", "version": "1.0.0" },
|
|
|
|
{ "name": "newly-required/pkg", "version": "1.0.0" }
|
2012-05-28 16:57:59 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
2020-03-11 08:34:40 +00:00
|
|
|
"required/pkg": "1.0.0",
|
|
|
|
"newly-required/pkg": "1.0.0"
|
2012-05-28 16:57:59 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
--LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
2020-03-11 08:34:40 +00:00
|
|
|
{ "name": "required/pkg", "version": "1.0.0" }
|
2012-05-28 16:57:59 +00:00
|
|
|
],
|
2019-10-29 23:40:36 +00:00
|
|
|
"packages-dev": [],
|
2012-05-28 16:57:59 +00:00
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "stable",
|
2014-07-07 17:51:00 +00:00
|
|
|
"stability-flags": [],
|
2014-12-13 22:56:15 +00:00
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false
|
2012-05-28 16:57:59 +00:00
|
|
|
}
|
|
|
|
--RUN--
|
|
|
|
install
|
2022-12-16 15:48:24 +00:00
|
|
|
--EXPECT-OUTPUT--
|
|
|
|
Installing dependencies from lock file (including require-dev)
|
|
|
|
Verifying lock file contents can be installed on current platform.
|
|
|
|
- Required package "newly-required/pkg" is not present in the lock file.
|
|
|
|
This usually happens when composer files are incorrectly merged or the composer.json file is manually edited.
|
|
|
|
Read more about correctly resolving merge conflicts https://getcomposer.org/doc/articles/resolving-merge-conflicts.md
|
2022-12-21 08:32:50 +00:00
|
|
|
and prefer using the "require" command over editing the composer.json file directly https://getcomposer.org/doc/03-cli.md#require-r
|
2022-12-16 15:48:24 +00:00
|
|
|
--EXPECT-EXIT-CODE--
|
|
|
|
4
|
2012-05-28 16:57:59 +00:00
|
|
|
--EXPECT--
|