Lock reference of dev packages
parent
3fe87b1e35
commit
c1baa20fec
|
@ -116,7 +116,13 @@ class Locker
|
|||
));
|
||||
}
|
||||
|
||||
$lock['packages'][] = array('package' => $name, 'version' => $version);
|
||||
$spec = array('package' => $name, 'version' => $version);
|
||||
|
||||
if ($package->isDev()) {
|
||||
$spec['reference'] = $package->getSourceReference();
|
||||
}
|
||||
|
||||
$lock['packages'][] = $spec;
|
||||
}
|
||||
|
||||
$this->lockFile->write($lock);
|
||||
|
|
Loading…
Reference in New Issue