From 424b1158419034b4e56bceb08d9c0c187923dc0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 24 May 2021 00:11:58 +0300 Subject: [PATCH] buildifier --- BUILD | 11 ++++------- rules.bzl | 6 +++--- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/BUILD b/BUILD index 29d8140..ede94c7 100644 --- 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 index 2a4b76b..94247a1 100644 --- 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), }, )