mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-28 00:10:57 +01:00
b9fa71f7e1
Summary: Currently, if you run `arc` in arcanist/ or libphutil/ and your PATH and on-disk configuration are set up so a different version of arc or libphutil are the ones that actually load, we fail with an exception like "running arcanist in a different copy of arcanist is not supported". This causes problems for Harbormaster, since we'd like to be able to run 'arc' in a copy of libphutil/ and have it execute unit tests for that copy rather than failing abruptly. So, if we detect that we're in arcanist/ or libphutil/, execute 'arc' again with the same arguments but force it to load the working copy in place of either the 'arcanist/' or the 'libphutil/' that it decided to load. This is pretty much horrible black magic. Test Plan: Ran 'arc list --trace' inside copies of libphutil/ and arcanist/ outside of the normal include chain. Saw it detect these, emit a message, and re-execute itself correctly. Reviewers: btrahan, vrana Reviewed By: vrana CC: aran Maniphest Tasks: T1049 Differential Revision: https://secure.phabricator.com/D4225 |
||
---|---|---|
.. | ||
hgdaemon | ||
lib | ||
repository | ||
__init_script__.php | ||
arcanist.php | ||
breakout.py | ||
php_extension_classes.txt | ||
php_extension_functions.txt | ||
phutil_rebuild_map.php | ||
phutil_symbols.php | ||
update_compat_info.php |