mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-25 08:12:40 +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:
parent
0584d4a06f
commit
0ef326f3a5
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue