Update check_deps, make reusing scripts easier (#1187)

I went down this route because I figured the installer binary should be in `check_deps`. The result:

- Add thin wrapper scripts for `buildozer` and `bazel`, similar to the `buildifier` wrapper that's already there.
  - These are mainly to avoid deduplicating logic, and dodging intricacies of Python imports that I don't understand well through instead subprocessing.
- Fix update_roots.py (it was missing a `.parent`, must've been relocated without a re-run at some point)
- Fix fuzzer proto code to be `testonly`
- Update the `check_deps` targets
This commit is contained in:
Jon Meow
2022-04-14 19:48:51 -07:00
committed by GitHub
parent b87747306f
commit 770555d8c9
11 changed files with 105 additions and 39 deletions
+4 -5
View File
@@ -158,10 +158,9 @@ def locate_bazel() -> str:
if bazel:
return bazel
if shutil.which("bazelisk"):
return "bazelisk"
if shutil.which("bazel"):
return "bazel"
for cmd in ("bazelisk", "bazel"):
target = shutil.which(cmd)
if target:
return target
exit("Unable to run Bazel")