2023-04-17 12:22:34 +08:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
2020-10-13 21:10:57 -03:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = [
|
|
|
|
"journald.go",
|
|
|
|
"journald_linux.go",
|
2023-04-17 15:43:40 -05:00
|
|
|
"journalhook_linux.go",
|
2020-10-13 21:10:57 -03:00
|
|
|
],
|
2024-02-14 21:46:47 -08:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/v5/monitoring/journald",
|
2020-10-13 21:10:57 -03:00
|
|
|
visibility = ["//visibility:public"],
|
2023-04-17 15:43:40 -05:00
|
|
|
deps = select({
|
|
|
|
"@io_bazel_rules_go//go/platform:android": [
|
|
|
|
"@com_github_coreos_go_systemd//journal:go_default_library",
|
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
|
|
|
],
|
|
|
|
"@io_bazel_rules_go//go/platform:linux": [
|
|
|
|
"@com_github_coreos_go_systemd//journal:go_default_library",
|
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
|
|
|
],
|
|
|
|
"//conditions:default": [],
|
|
|
|
}),
|
2023-04-17 12:22:34 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
2023-04-17 15:43:40 -05:00
|
|
|
srcs = ["journalhook_linux_test.go"],
|
2023-04-17 12:22:34 +08:00
|
|
|
embed = [":go_default_library"],
|
2020-10-13 21:10:57 -03:00
|
|
|
)
|