blob: b425f4e1d7e341cdd51055c186dff1127b867898 [file]
load("//bazel/go:go_test.bzl", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "config",
srcs = [
"config.go",
"config_embed.go",
],
embedsrcs = [
"prod.json",
"test.json",
],
importpath = "go.skia.org/infra/cherrypick-watcher/go/config",
visibility = ["//visibility:public"],
deps = ["//go/skerr"],
)
go_test(
name = "config_test",
srcs = ["config_test.go"],
data = glob(["testdata/**"]),
embed = [":config"],
deps = [
"//go/testutils",
"@com_github_stretchr_testify//require",
],
)