treewide: format repo with buildifier
Change-Id: Ia7aebeb7bba5b119c9157d1ad805cc477bcbb68a
Reviewed-on: https://review.monogon.dev/c/monogon/+/3774
Tested-by: Jenkins CI
Reviewed-by: Leopold Schabel <leo@monogon.tech>
diff --git a/metropolis/cli/metroctl/BUILD.bazel b/metropolis/cli/metroctl/BUILD.bazel
index 6d9f32a..f4c5c15 100644
--- a/metropolis/cli/metroctl/BUILD.bazel
+++ b/metropolis/cli/metroctl/BUILD.bazel
@@ -56,7 +56,7 @@
"@com_github_adrg_xdg//:xdg",
"@com_github_schollz_progressbar_v3//:progressbar",
"@com_github_spf13_cobra//:cobra",
- "@io_bazel_rules_go//go/runfiles:go_default_library",
+ "@io_bazel_rules_go//go/runfiles",
"@io_k8s_apimachinery//pkg/apis/meta/v1:meta",
"@io_k8s_client_go//pkg/apis/clientauthentication/v1:clientauthentication",
"@io_k8s_utils//ptr",
diff --git a/metropolis/cli/metroctl/defs.bzl b/metropolis/cli/metroctl/defs.bzl
index ce75195..dbebca2 100644
--- a/metropolis/cli/metroctl/defs.bzl
+++ b/metropolis/cli/metroctl/defs.bzl
@@ -1,12 +1,15 @@
-BuildKindProvider = provider(fields = ['type'])
+BuildKindInfo = provider(
+ "Build kind for userspace tools",
+ fields = ["type"],
+)
def _impl(ctx):
- values = ['full', 'lite']
+ values = ["full", "lite"]
value = ctx.build_setting_value
if value not in values:
fail(str(ctx.label) + " build setting allowed to take values {full, lite} but was set to " + value)
- return BuildKindProvider(type = value)
+ return BuildKindInfo(type = value)
buildkind = rule(
implementation = _impl,
diff --git a/metropolis/cli/metroctl/test/BUILD.bazel b/metropolis/cli/metroctl/test/BUILD.bazel
index f849949..8f58a9a 100644
--- a/metropolis/cli/metroctl/test/BUILD.bazel
+++ b/metropolis/cli/metroctl/test/BUILD.bazel
@@ -16,6 +16,6 @@
"//metropolis/version",
"//osbase/cmd",
"//version",
- "@io_bazel_rules_go//go/runfiles:go_default_library",
+ "@io_bazel_rules_go//go/runfiles",
],
)