peridot/apollo/rherrata/BUILD.bazel
2022-10-30 02:59:43 +01:00

31 lines
743 B
Python

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",
],
importpath = "peridot.resf.org/apollo/rherrata",
visibility = ["//visibility:public"],
deps = [
"//apollo/proto/v1:pb",
"//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 = [
"//apollo/proto/v1:pb",
"//vendor/github.com/stretchr/testify/require",
],
)