From f77efcd23046374b87fa42876a363256e1d97540 Mon Sep 17 00:00:00 2001 From: Ian Childs Date: Fri, 4 Oct 2024 08:30:42 -0700 Subject: [PATCH] Force calls to 'buck audit config android --json' to use buck2 Summary: Need to make sure these inner invocations of `buck` use `buck2`, `buck1` is going to be completely removed and will stop working. Reviewed By: navidqar Differential Revision: D63890084 fbshipit-source-id: f09792ff91a53847aa61b892766dd051fc38a048 --- pyredex/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyredex/utils.py b/pyredex/utils.py index a5cde7b0cc..65e895db3f 100644 --- a/pyredex/utils.py +++ b/pyredex/utils.py @@ -252,7 +252,7 @@ def add_android_sdk_path(self, path: str) -> None: ) def _load_android_buckconfig_values(self) -> typing.Dict[str, typing.Any]: - cmd = ["buck", "audit", "config", "android", "--json"] + cmd = ["buck2", "audit", "config", "android", "--json"] rdfb = self.root_dir_for_buck cwd = rdfb if rdfb is not None else os.getcwd() # Set NO_BUCKD to minimize disruption to any currently running buckd