1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
licenses(["notice"]) # Apache 2.0
package(default_visibility = ["//visibility:public"])
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "yamltemplate",
srcs = ["yamltemplate.go"],
importpath = "github.com/google/safetext/yamltemplate",
visibility = ["//visibility:public"],
deps = [
"//common",
"@com_github_pborman_uuid//:uuid",
"@in_gopkg_yaml_v3//:yaml_v3",
],
)
alias(
name = "go_default_library",
actual = ":yamltemplate",
visibility = ["//visibility:public"],
)
go_test(
name = "yamltemplate_test",
size = "small",
srcs = ["yamltemplate_test.go"],
embedsrcs = glob(["*.tmpl"]),
deps = [
":yamltemplate",
],
)
|