Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of deletion of a symlink pointing to a Haste module
Summary: A bug I noticed while testing `unstable_enableSymlinks` on some Haste apps - because `FileSystem.getModuleName()` follows symlinks, we'd incorrectly clear a Haste module from the module map whenever a symlink pointing to the providing file was deleted. This removes the use of `FileSystem.getModuleName()` and changes `MutableFileSystem.remove()` so that it returns the removed `FileMetadata`, if any. From that, we take the Haste ID (which is empty for symlinks) and remove the Haste module if that is populated. Changelog: [Experimental] `unstable_enableSymlinks`: Fix handling of deletion of a symlink pointing to a Haste module Reviewed By: motiz88 Differential Revision: D43499958 fbshipit-source-id: ddff3d2236ccf7f60442156071289230ce9cec54
- Loading branch information
1 parent
cb52585
commit 0e2a70a
Showing
5 changed files
with
73 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters