mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-30 05:50:56 +00:00
30 lines
743 B
Text
30 lines
743 B
Text
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",
|
|
],
|
|
)
|