mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 06:42:41 +01:00
Save files with path to phutil cache
Test Plan: $ arc liberate $ mv a.php b.php $ arc liberate Previously, it didn't update the map. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D2818
This commit is contained in:
parent
887c3484a7
commit
636bcef5ca
1 changed files with 4 additions and 2 deletions
|
@ -37,7 +37,7 @@ final class PhutilLibraryMapBuilder {
|
|||
const LIBRARY_MAP_VERSION = 2;
|
||||
|
||||
const SYMBOL_CACHE_VERSION_KEY = '__symbol_cache_version__';
|
||||
const SYMBOL_CACHE_VERSION = 3;
|
||||
const SYMBOL_CACHE_VERSION = 4;
|
||||
|
||||
|
||||
/* -( Mapping libphutil Libraries )---------------------------------------- */
|
||||
|
@ -420,7 +420,9 @@ final class PhutilLibraryMapBuilder {
|
|||
continue;
|
||||
}
|
||||
|
||||
$map[$file] = $hash;
|
||||
// We include also filename in the hash to handle cases when the file is
|
||||
// moved without modifying its content.
|
||||
$map[$file] = md5($hash.$file);
|
||||
}
|
||||
|
||||
return $map;
|
||||
|
|
Loading…
Reference in a new issue