From: Joshua Spence Date: Mon, 2 Feb 2015 19:56:35 +0000 (+1100) Subject: Use XHPAST version instead of checksum as cache version X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=0ef326f3a5a535c1a9405c5844909da3942fa651;p=arcanist.git 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 --- diff --git a/src/lint/linter/ArcanistBaseXHPASTLinter.php b/src/lint/linter/ArcanistBaseXHPASTLinter.php index a89ba9bc..694e4853 100644 --- a/src/lint/linter/ArcanistBaseXHPASTLinter.php +++ b/src/lint/linter/ArcanistBaseXHPASTLinter.php @@ -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);