-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor .buckconfig common elements into .buckconfig.d
Summary: Move common settings, such as `prelude = bundled` and shim aliases, into a `common.buckconfig` file inside the `.buckconfig.d` folder. The only remaining settings inside the root `.buckconfig` should be setting specific to that project. This refactor also applies a new naming scheme for the root cell of Meta projects. By deriving the root cell name from the public github repo, it makes it easier to import external cells and avoid resolution errors due to shared cell names. Moving forward, the expectation is that "root" shall be a cell alias that always refers to the current cell, so each cell may always trust that by using "root//" they are staying within their code (which was not a guarantee before) Reviewed By: bigfootjon Differential Revision: D64579239 fbshipit-source-id: cb063176457d458bea4cc8891c4df323b778246b
- Loading branch information
1 parent
0c9750c
commit ce2477d
Showing
4 changed files
with
43 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[cells] | ||
prelude = prelude | ||
none = none | ||
|
||
[cell_aliases] | ||
config = prelude | ||
ovr_config = prelude | ||
bazel_skylib = gh_facebook_buck2_shims_meta | ||
buck = gh_facebook_buck2_shims_meta | ||
fbcode = gh_facebook_buck2_shims_meta | ||
fbcode_macros = gh_facebook_buck2_shims_meta | ||
fbsource = gh_facebook_buck2_shims_meta | ||
shim = gh_facebook_buck2_shims_meta | ||
toolchains = gh_facebook_buck2_shims_meta | ||
|
||
[external_cells] | ||
prelude = bundled | ||
|
||
[parser] | ||
target_platform_detector_spec = target:root//...->prelude//platforms:default target:shim//...->prelude//platforms:default |
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