Skip to content

Commit

Permalink
Allow BUCK files in fbcode
Browse files Browse the repository at this point in the history
Reviewed By: bigfootjon

Differential Revision: D54431299

fbshipit-source-id: 3fd7d86e51de6ad3898402caff6dbeb41c25786c
  • Loading branch information
ndmitchell authored and facebook-github-bot committed Mar 4, 2024
1 parent f4df7b3 commit fbbab67
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion btd/src/buck/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/// Use `&str` rather than `CellName` since it is cheaper to construct from an existing string.
pub fn cell_build_files(cell: &str) -> &'static [&'static str] {
if cell == "fbcode" || cell == "prelude" || cell == "toolchains" {
&["TARGETS.v2", "TARGETS"]
&["TARGETS.v2", "TARGETS", "BUCK.v2", "BUCK"]
} else {
&["BUCK.v2", "BUCK"]
}
Expand Down
1 change: 0 additions & 1 deletion btd/src/buck/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,6 @@ impl CellPath {
/// assert_eq!(CellPath::new("foo//bar/NOT_BUCK").is_target_file(), false);
/// assert_eq!(CellPath::new("foo//bar/TARGETS").is_target_file(), false);
/// assert_eq!(CellPath::new("foo//BUCK").is_target_file(), true);
/// assert_eq!(CellPath::new("fbcode//BUCK").is_target_file(), false);
/// assert_eq!(CellPath::new("fbcode//TARGETS").is_target_file(), true);
/// assert_eq!(
/// CellPath::new("prelude//apple/TARGETS.v2").is_target_file(),
Expand Down

0 comments on commit fbbab67

Please sign in to comment.