mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-10 08:52:39 +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();
|
$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);
|
||||||
|
|
Loading…
Reference in a new issue