buildifier
This commit is contained in:
parent
c71b70a32a
commit
424b115841
11
BUILD
11
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",
|
||||
)
|
||||
|
@ -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),
|
||||
},
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user