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")
go_library(
name = "undocker_lib",
name = "go_default_library",
srcs = ["main.go"],
importpath = "github.com/motiejus/code/undocker",
visibility = ["//visibility:private"],
deps = [
"//src/undocker/rootfs:rootfs_lib",
"@com_github_jessevdk_go_flags//:go-flags",
"@com_github_jessevdk_go_flags//:go_default_library",
],
)
go_binary(
name = "undocker",
embed = [":undocker_lib"],
embed = [":go_default_library"],
visibility = ["//visibility:public"],
)

View File

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