Sort vendor/composer/installed.json deterministically
Just like composer.lock, sort installed.json in order of the package names. This makes it easier to review diffs when this file is changed.pull/6696/head
parent
edece864e7
commit
2a38417653
|
@ -83,6 +83,10 @@ class FilesystemRepository extends WritableArrayRepository
|
||||||
$data[] = $dumper->dump($package);
|
$data[] = $dumper->dump($package);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
usort($data, function($a, $b) {
|
||||||
|
return strcmp($a['name'], $b['name']);
|
||||||
|
});
|
||||||
|
|
||||||
$this->file->write($data);
|
$this->file->write($data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue