Import buildifier

This patch sets up buildifier to run as part of CI. It can also be run
manually via `//tools/lint:buildifier`.

As a consequence, I needed to make the whole repo conform.

Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: Ic41c97b17255813b6c21aef40ab2f8a216683a2c
diff --git a/tools/lint/BUILD b/tools/lint/BUILD
index 80b4aa1..d33d786 100644
--- a/tools/lint/BUILD
+++ b/tools/lint/BUILD
@@ -12,11 +12,24 @@
 )
 
 sh_binary(
+    name = "buildifier",
+    srcs = ["buildifier.sh"],
+    data = [
+        "@com_github_bazelbuild_buildtools//buildifier",
+    ],
+    target_compatible_with = ["@platforms//cpu:x86_64"],
+    deps = [
+        "@bazel_tools//tools/bash/runfiles",
+    ],
+)
+
+sh_binary(
     name = "run-ci",
     srcs = [
         "run-ci.sh",
     ],
     data = [
+        ":buildifier",
         ":gofmt",
         "//:gazelle-runner",
         "//tools/go:tweak_gazelle_go_deps",
@@ -28,6 +41,7 @@
         #   /var/lib/buildkite-agent/.cache/go-build: permission denied
         "RUNNING_IN_CI": "1" if RUNNING_IN_CI else "0",
     },
+    target_compatible_with = ["@platforms//cpu:x86_64"],
     deps = [
         "@bazel_tools//tools/bash/runfiles",
     ],