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

View File

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