2013-03-10 18:55:26 +00:00
|
|
|
--TEST--
|
2019-10-29 22:12:54 +00:00
|
|
|
Partial update without lock file should error
|
2013-03-10 18:55:26 +00:00
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{ "name": "a/old", "version": "1.0.0" },
|
|
|
|
{ "name": "a/old", "version": "2.0.0" },
|
|
|
|
{ "name": "b/unstable", "version": "1.0.0" },
|
|
|
|
{ "name": "b/unstable", "version": "1.1.0-alpha" },
|
|
|
|
{ "name": "c/uptodate", "version": "1.0.0" },
|
|
|
|
{ "name": "d/removed", "version": "1.0.0" }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"a/old": "*",
|
|
|
|
"b/unstable": "*",
|
|
|
|
"c/uptodate": "*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
|
|
|
{ "name": "a/old", "version": "1.0.0" },
|
|
|
|
{ "name": "b/unstable", "version": "1.1.0-alpha" },
|
|
|
|
{ "name": "c/uptodate", "version": "1.0.0" },
|
|
|
|
{ "name": "d/removed", "version": "1.0.0" }
|
|
|
|
]
|
|
|
|
--RUN--
|
|
|
|
update b/unstable
|
2019-10-29 22:12:54 +00:00
|
|
|
--EXPECT-OUTPUT--
|
2020-11-26 10:28:17 +00:00
|
|
|
Cannot update only a partial set of packages without a lock file present. Run `composer update` to generate a lock file.
|
2019-10-29 22:12:54 +00:00
|
|
|
--EXPECT-EXIT-CODE--
|
2021-10-14 13:10:48 +00:00
|
|
|
3
|
2013-03-10 18:55:26 +00:00
|
|
|
--EXPECT--
|