peridot/apollo/rherrata/BUILD.bazel

31 lines
743 B
Python
Raw Normal View History

2022-07-07 20:11:50 +00:00
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "rherrata",
srcs = [
"api.go",
"compact_errata.go",
"errata.go",
"mock.go",
],
2022-10-30 01:59:25 +00:00
importpath = "peridot.resf.org/apollo/rherrata",
2022-07-07 20:11:50 +00:00
visibility = ["//visibility:public"],
deps = [
2022-10-30 01:59:25 +00:00
"//apollo/proto/v1:pb",
2022-07-07 20:11:50 +00:00
"//vendor/github.com/PuerkitoBio/goquery",
"//vendor/github.com/go-chi/chi",
"//vendor/github.com/gocolly/colly/v2:colly",
],
)
go_test(
name = "rherrata_test",
srcs = ["errata_test.go"],
data = glob(["testdata/**"]),
embed = [":rherrata"],
deps = [
2022-10-30 01:59:25 +00:00
"//apollo/proto/v1:pb",
2022-07-07 20:11:50 +00:00
"//vendor/github.com/stretchr/testify/require",
],
)