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