Ensure dev packages have a source
parent
88b018068c
commit
d7350b66d5
|
@ -122,6 +122,8 @@ class ArrayLoader
|
||||||
$package->setSourceType($config['source']['type']);
|
$package->setSourceType($config['source']['type']);
|
||||||
$package->setSourceUrl($config['source']['url']);
|
$package->setSourceUrl($config['source']['url']);
|
||||||
$package->setSourceReference($config['source']['reference']);
|
$package->setSourceReference($config['source']['reference']);
|
||||||
|
} elseif ($package->isDev()) {
|
||||||
|
throw new \UnexpectedValueException('Dev package '.$package.' must have a source specified');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($config['dist'])) {
|
if (isset($config['dist'])) {
|
||||||
|
|
|
@ -38,7 +38,7 @@ class RootPackageLoader extends ArrayLoader
|
||||||
$config['name'] = '__root__';
|
$config['name'] = '__root__';
|
||||||
}
|
}
|
||||||
if (!isset($config['version'])) {
|
if (!isset($config['version'])) {
|
||||||
$config['version'] = '1.0.0-dev';
|
$config['version'] = '1.0.0';
|
||||||
}
|
}
|
||||||
|
|
||||||
$package = parent::load($config);
|
$package = parent::load($config);
|
||||||
|
|
Loading…
Reference in New Issue