-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the way with handle different paths in single project config f…
…ile. Summary: In `SingleProjectConfig` we don't have an explicit `root` settings, so we were assuming that the `current_dir` is the `root`. And the basic path normalization were just stripping the `root_dir` from configs paths (sources, schemas, artifacts). But this approach isn't working for cases where some paths are outside of `current_dir`. Like in the issue: #3673 This diff fixes the issue by changing the way we detect `root_dir` for the project. 1) we create canonical paths from `current_dir` + `path` 2) we detect a common path between all config paths (src, schema, extensions, artifactsDirectory) - this common path is the `root_dir`. 3) we strip `root_dir` from all config paths when creating an instance of MultiProjectConfig. Reviewed By: rbalicki2 Differential Revision: D32931262 fbshipit-source-id: f1940fc9ce975f7811c3f8f5a4d56790bd2bc74a
- Loading branch information
1 parent
f906565
commit 6eea5a8
Showing
5 changed files
with
81 additions
and
25 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