1
0
Fork 0
composer/tests/Composer/Test/Fixtures/installer/install-from-incomplete-loc...

43 lines
1.3 KiB
Plaintext
Raw Normal View History

--TEST--
Requirements from the composer file are not installed if the lock file is present, but fails on missing requirements
--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" }
]
}
],
"require": {
2020-03-11 08:34:40 +00:00
"required/pkg": "1.0.0",
"newly-required/pkg": "1.0.0"
}
}
--LOCK--
{
"packages": [
2020-03-11 08:34:40 +00:00
{ "name": "required/pkg", "version": "1.0.0" }
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
2014-12-13 22:56:15 +00:00
"prefer-stable": false,
"prefer-lowest": false
}
--RUN--
install
--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
and prefer using the "require" command over editing the composer.json file directly https://getcomposer.org/doc/03-cli.md#require-r
--EXPECT-EXIT-CODE--
4
--EXPECT--