From 0a3b19f7942a06b68329aec5bda3cfb0e7c81877 Mon Sep 17 00:00:00 2001 From: Neil Mitchell Date: Wed, 29 May 2024 04:53:16 -0700 Subject: [PATCH] Make the test CellInfo specify the fbcode/prelude defaults Summary: Match the config that our tests currently rely on. Reviewed By: aniketmathur Differential Revision: D57542267 fbshipit-source-id: 318d330700535348c5ad338244915350dc97e406 --- btd/src/buck/cells.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/btd/src/buck/cells.rs b/btd/src/buck/cells.rs index be7e9bb..1ddb26d 100644 --- a/btd/src/buck/cells.rs +++ b/btd/src/buck/cells.rs @@ -65,7 +65,15 @@ impl CellInfo { "prelude": "/Users/ndmitchell/repo/fbcode/prelude", } ); - CellInfo::parse(&value.to_string()).unwrap() + let mut res = CellInfo::parse(&value.to_string()).unwrap(); + let config = serde_json::json!( + { + "fbcode//buildfile.name":"TARGETS", + "prelude//buildfile.name":"TARGETS", + } + ); + res.parse_config_data(&config.to_string()).unwrap(); + res } pub fn new(file: &Path) -> anyhow::Result {