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
$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);