1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-09-20 08:58:55 +02:00

Use XHPAST version instead of checksum as cache version

Summary: Rely on the output of `xhpast --version` when determing the lint cache key.

Test Plan: N/A

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11611
This commit is contained in:
Joshua Spence 2015-02-03 06:56:35 +11:00
parent 0584d4a06f
commit 0ef326f3a5

View file

@ -14,9 +14,9 @@ abstract class ArcanistBaseXHPASTLinter extends ArcanistFutureLinter {
$parts[] = $this->getVersion();
$path = xhpast_get_binary_path();
if (Filesystem::pathExists($path)) {
$parts[] = md5_file($path);
$version = PhutilXHPASTBinary::getVersion();
if ($version) {
$parts[] = $version;
}
return implode('-', $parts);