1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-25 16:22:42 +01: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(); $parts[] = $this->getVersion();
$path = xhpast_get_binary_path(); $version = PhutilXHPASTBinary::getVersion();
if (Filesystem::pathExists($path)) { if ($version) {
$parts[] = md5_file($path); $parts[] = $version;
} }
return implode('-', $parts); return implode('-', $parts);