change convention

This commit is contained in:
Motiejus Jakštys 2021-05-24 00:11:57 +03:00
parent fa6118d5c7
commit 756ebd4dc9
2 changed files with 7 additions and 7 deletions

6
BUILD
View File

@ -1,18 +1,18 @@
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library") load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
go_library( go_library(
name = "undocker_lib", name = "go_default_library",
srcs = ["main.go"], srcs = ["main.go"],
importpath = "github.com/motiejus/code/undocker", importpath = "github.com/motiejus/code/undocker",
visibility = ["//visibility:private"], visibility = ["//visibility:private"],
deps = [ deps = [
"//src/undocker/rootfs:rootfs_lib", "//src/undocker/rootfs:rootfs_lib",
"@com_github_jessevdk_go_flags//:go-flags", "@com_github_jessevdk_go_flags//:go_default_library",
], ],
) )
go_binary( go_binary(
name = "undocker", name = "undocker",
embed = [":undocker_lib"], embed = [":go_default_library"],
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
) )

View File

@ -8,11 +8,11 @@ go_library(
) )
go_test( go_test(
name = "rootfs_test", name = "go_default_test",
srcs = ["rootfs_test.go"], srcs = ["rootfs_test.go"],
embed = [":rootfs"], embed = [":go_default_library"],
deps = [ deps = [
"@com_github_stretchr_testify//assert", "@com_github_stretchr_testify//assert:go_default_library",
"@com_github_stretchr_testify//require", "@com_github_stretchr_testify//require:go_default_library",
], ],
) )