windows: Fix build after PR 12293 (#12296)

This commit is contained in:
Preston Van Loon 2023-04-17 15:43:40 -05:00 committed by GitHub
parent 0c7292b85b
commit f4681fde19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 6 deletions

View File

@ -5,18 +5,25 @@ go_library(
srcs = [
"journald.go",
"journald_linux.go",
"journalhook.go",
"journalhook_linux.go",
],
importpath = "github.com/prysmaticlabs/prysm/v4/monitoring/journald",
visibility = ["//visibility:public"],
deps = [
"@com_github_coreos_go_systemd//journal:go_default_library",
"@com_github_sirupsen_logrus//:go_default_library",
],
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": [],
}),
)
go_test(
name = "go_default_test",
srcs = ["journalhook_test.go"],
srcs = ["journalhook_linux_test.go"],
embed = [":go_default_library"],
)

View File

@ -1,3 +1,5 @@
//go:build linux
// Package journald was copied directly from https://github.com/wercker/journalhook,
// where this library was previously hosted.
package journald