Page MenuHomePhabricator

D9484.id22692.diff
No OneTemporary

D9484.id22692.diff

diff --git a/src/lint/linter/ArcanistExternalLinter.php b/src/lint/linter/ArcanistExternalLinter.php
--- a/src/lint/linter/ArcanistExternalLinter.php
+++ b/src/lint/linter/ArcanistExternalLinter.php
@@ -302,7 +302,7 @@
$this->getInstallInstructions()));
}
} else {
- if (!Filesystem::binaryExists($binary)) {
+ if (!Filesystem::binaryExists($binary) && !Filesystem::pathExists($binary)) {
throw new ArcanistUsageException(
pht(
'Unable to locate binary "%s" to run linter %s. You may need '.
@@ -510,7 +510,7 @@
}
$path = Filesystem::resolvePath($path, $root);
- if ((!$is_script && Filesystem::binaryExists($path)) ||
+ if ((!$is_script && (Filesystem::binaryExists($path) || Filesystem::pathExists($path))) ||
($is_script && Filesystem::pathExists($path))) {
$this->setBinary($path);
return;

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 8, 4:58 PM (22 h, 16 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7376942
Default Alt Text
D9484.id22692.diff (946 B)

Event Timeline