Add test checking references update to latest and remove TODO
parent
41720e9b70
commit
3f48acf56a
|
@ -388,9 +388,6 @@ class Installer
|
||||||
|
|
||||||
$pool = $repositorySet->createPool($request);
|
$pool = $repositorySet->createPool($request);
|
||||||
|
|
||||||
// TODO ensure that the solver always picks most recent reference for dev packages, so they get updated even when just a new commit is pushed but version is unchanged
|
|
||||||
// should already be solved by using the remote package in all cases in the pool
|
|
||||||
|
|
||||||
// solve dependencies
|
// solve dependencies
|
||||||
$solver = new Solver($policy, $pool, $this->io);
|
$solver = new Solver($policy, $pool, $this->io);
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
--TEST--
|
||||||
|
Updating a dev package should update to the latest available reference
|
||||||
|
--COMPOSER--
|
||||||
|
{
|
||||||
|
"repositories": [
|
||||||
|
{
|
||||||
|
"type": "package",
|
||||||
|
"package": [
|
||||||
|
{
|
||||||
|
"name": "a/a", "version": "dev-master",
|
||||||
|
"source": { "reference": "abc123", "url": "", "type": "git" }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"require": {
|
||||||
|
"a/a": "dev-master"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
--INSTALLED--
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "a/a", "version": "dev-master",
|
||||||
|
"source": { "reference": "def000", "url": "", "type": "git" },
|
||||||
|
"dist": { "reference": "def000", "url": "", "type": "zip", "shasum": "" }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
--RUN--
|
||||||
|
update
|
||||||
|
--EXPECT--
|
||||||
|
Updating a/a (dev-master def000 => dev-master abc123)
|
Loading…
Reference in New Issue