]> khamidou — GitHub mirrors - arcanist.git/commit
Fix an obscure dependency issue in Arcanist + libphutil
authorepriestley <git@epriestley.com>
Fri, 29 Jul 2011 16:12:24 +0000 (09:12 -0700)
committerepriestley <git@epriestley.com>
Wed, 3 Aug 2011 19:17:49 +0000 (12:17 -0700)
commit39e4656278420ffcc6e9ebf7aa487b783c279b00
tree22c7842acb5c79734f2591474f074720995cd9ac
parent17c82ff03cb9a33ad0165970d2cc8be337e82d13
Fix an obscure dependency issue in Arcanist + libphutil

Summary:
The module analyzer reads "phutil_require_module" in the source of a module as a
dependency, and tries to regenerate __init__.php if symbols from that module
aren't actually used. This creates patches which don't actually resolve the
problem, since changing __init__.php won't change the dependency.

Instead, trust that anyone using phutil_require_module in the source of a module
knows what they're doing and don't mark it as a dependency.

We currently have an issue with this in phabricator's Setup process since I load
some other libraries' modules just to test if they can be loaded

@lesha, this might be the issue you reported a while ago.

Test Plan: Ran "arc lint" on a module which pulls in another module explicitly
in the source, didn't get a no-op lint error.
Reviewed By: jungejason
Reviewers: jungejason, tuomaspelkonen, aran, lesha
CC: aran, epriestley, jungejason
Differential Revision: 770
scripts/phutil_analyzer.php
src/lint/message/ArcanistLintMessage.php