Changeset View
Changeset View
Standalone View
Standalone View
src/runtime/ArcanistRuntime.php
Show First 20 Lines • Show All 466 Lines • ▼ Show 20 Lines | try { | ||||
// This means we only execute code in the `arcanist/` directory which is | // This means we only execute code in the `arcanist/` directory which is | ||||
// associated with the binary you are running, whereas we would normally | // associated with the binary you are running, whereas we would normally | ||||
// execute local code. | // execute local code. | ||||
// This can make `arc` development slightly confusing if your setup is | // This can make `arc` development slightly confusing if your setup is | ||||
// especially bizarre, but it allows `arc` to be used in automation | // especially bizarre, but it allows `arc` to be used in automation | ||||
// workflows more easily. For some context, see PHI13. | // workflows more easily. For some context, see PHI13. | ||||
$executing_directory = dirname(dirname(__FILE__)); | $executing_directory = dirname(__DIR__); | ||||
$log->writeWarn( | $log->writeWarn( | ||||
pht('VERY META'), | pht('VERY META'), | ||||
pht( | pht( | ||||
'You are running one copy of this software (at path "%s") against '. | 'You are running one copy of this software (at path "%s") against '. | ||||
'another copy of this software (at path "%s"). Code in the current '. | 'another copy of this software (at path "%s"). Code in the current '. | ||||
'working directory will not be loaded or executed.', | 'working directory will not be loaded or executed.', | ||||
$executing_directory, | $executing_directory, | ||||
▲ Show 20 Lines • Show All 431 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0