mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-12-24 03:28:28 +00:00
31 lines
743 B
Python
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",
|
|
],
|
|
)
|