]> khamidou — GitHub mirrors - arcanist.git/commit
Improve library resolution chain for 'arc'
authorepriestley <git@epriestley.com>
Fri, 1 Jul 2011 02:20:41 +0000 (19:20 -0700)
committerepriestley <git@epriestley.com>
Fri, 1 Jul 2011 02:26:33 +0000 (19:26 -0700)
commit5ebfa50db363c35f64df0fac64270199f5aa75c3
tree56e0b9047e91d960ff1d366c1dfd7d9140d81fb4
parent8234dd8088658698034e416d2e28b6a644dccaca
Improve library resolution chain for 'arc'

Summary:
We currently look:

  - In the working copy
  - Alongside libphutil/
  - In PHP include_path

Before checking next to libphutil/, check next to the working copy. The problem
right now is that javelin/ references diviner/, but it won't find it next to
javelin/, only next to the libphutil/ instance which is loaded off
/home/engshare/devtools.

Test Plan: Moved javelin to tmp/javelin and diviner to tmp/divinerx. Ran 'arc
list' and got a library load error. Moved 'divinerx' to 'diviner' and ran 'arc
list'. It loaded correctly. Ran '--trace' to verify load location.
Reviewed By: cpojer
Reviewers: cpojer, jungejason
CC: aran, cpojer
Differential Revision: 568
scripts/arcanist.php