()
| 16 | |
| 17 | @cache |
| 18 | def repo_root_dir() -> Path: |
| 19 | git_root = subprocess.check_output( |
| 20 | ["git", "rev-parse", "--show-toplevel"], |
| 21 | cwd=os.path.dirname(os.path.realpath(__file__)), |
| 22 | text=True, |
| 23 | ).strip() |
| 24 | return Path(git_root) |
| 25 | |
| 26 | |
| 27 | class Buck2Runner: |