You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.8 KiB
Plaintext
63 lines
1.8 KiB
Plaintext
12 years ago
|
--TEST--
|
||
5 years ago
|
Partial update from lock file should apply lock file and if an unstable package is not allowed anymore by latest composer.json it should fail
|
||
12 years ago
|
--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": "*"
|
||
|
}
|
||
|
}
|
||
|
--LOCK--
|
||
|
{
|
||
|
"packages": [
|
||
|
{ "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" }
|
||
|
],
|
||
|
"packages-dev": [],
|
||
|
"aliases": [],
|
||
|
"minimum-stability": "stable",
|
||
|
"stability-flags": {
|
||
|
"b/unstable": 15
|
||
|
},
|
||
10 years ago
|
"prefer-stable": false,
|
||
10 years ago
|
"prefer-lowest": false,
|
||
12 years ago
|
"platform": [],
|
||
|
"platform-dev": []
|
||
|
}
|
||
|
--INSTALLED--
|
||
|
[
|
||
|
{ "name": "a/old", "version": "0.9.0" },
|
||
|
{ "name": "b/unstable", "version": "1.1.0-alpha" },
|
||
|
{ "name": "c/uptodate", "version": "2.0.0" }
|
||
|
]
|
||
|
--RUN--
|
||
|
update c/uptodate
|
||
|
--EXPECT--
|
||
5 years ago
|
|
||
|
--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
|
||
4 years ago
|
- b/unstable is fixed to 1.1.0-alpha (lock file version) by a partial update but that version is rejected by your minimum-stability. Make sure you list it as an argument for the update command.
|