commit 424b1158419034b4e56bceb08d9c0c187923dc0d (tree)
parent c71b70a32af86fab379d8c72f5f2d3c2db3309d0
Author: Motiejus Jakštys <motiejus@jakstys.lt>
Date: Mon, 24 May 2021 00:11:58 +0300
buildifier
Diffstat:
2 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/BUILD b/BUILD
@@ -1,10 +1,7 @@
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
load("//src/undocker:rules.bzl", "rootfs", "temp")
-load(
- "@io_bazel_rules_docker//container:container.bzl",
- "container_bundle",
-)
+load("@io_bazel_rules_docker//container:container.bzl", "container_bundle")
go_library(
name = "go_default_library",
@@ -26,7 +23,7 @@ go_binary(
genrule(
name = "alpine-rootfs",
- srcs = ["@alpine//image:image"],
+ srcs = ["@alpine//image"],
outs = ["alpine-rootfs.tar"],
cmd = "$(location :undocker) rootfs $< $@",
tools = [":undocker"],
@@ -35,7 +32,7 @@ genrule(
# later debugging
pkg_tar(
name = "alpine-container-plus",
- deps = ["@alpine//image:image"],
+ deps = ["@alpine//image"],
)
rootfs(
@@ -52,6 +49,6 @@ filegroup(
temp(
name = "temp",
- data = ":maingo",
out = "maingo.txt",
+ data = ":maingo",
)
diff --git a/rules.bzl b/rules.bzl
@@ -11,8 +11,8 @@ def _rootfs_impl(ctx):
],
)
return [DefaultInfo(
- files = depset([out]),
- runfiles = ctx.runfiles(files = ctx.files.src),
+ files = depset([out]),
+ runfiles = ctx.runfiles(files = ctx.files.src),
)]
rootfs = rule(
@@ -46,6 +46,6 @@ temp = rule(
implementation = _temp_impl,
attrs = {
"data": attr.label(mandatory = True, allow_single_file = True),
- "out": attr.output(mandatory = True)
+ "out": attr.output(mandatory = True),
},
)