1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 06:42:41 +01:00

Changes to Arcanist for libphutil "extensions/"

Summary: See D5714. Ref T2971.

Test Plan: Built a library map for libphutil's test library.

Reviewers: vrana, btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T2971

Differential Revision: https://secure.phabricator.com/D5715
This commit is contained in:
epriestley 2013-04-22 14:38:49 -07:00
parent c0ff9852af
commit 904740855c
3 changed files with 8 additions and 7 deletions

1
.gitignore vendored
View file

@ -1,6 +1,7 @@
.DS_Store
._*
/src/.phutil_module_cache
/src/extensions/*
/docs/
/.divinercache/
/externals/includes/*

View file

@ -388,13 +388,6 @@ final class PhutilLibraryMapBuilder {
$map = array();
foreach ($files as $file => $hash) {
if (basename($file) == '__init__.php') {
// TODO: Remove this once we kill __init__.php. This just makes the
// script run faster until we do, so testing and development is less
// annoying.
continue;
}
$file = Filesystem::readablePath($file, $root);
$file = ltrim($file, '/');
@ -404,6 +397,11 @@ final class PhutilLibraryMapBuilder {
continue;
}
if (dirname($file) == 'extensions') {
// Ignore files in the extensions/ directory.
continue;
}
// We include also filename in the hash to handle cases when the file is
// moved without modifying its content.
$map[$file] = md5($hash.$file);

2
src/extensions/README Normal file
View file

@ -0,0 +1,2 @@
You can add `.php` files to this directory to load classes and functions defined
in them at runtime.