mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 11:32:09 +00:00
windows: Fix build after PR 12293 (#12296)
This commit is contained in:
parent
0c7292b85b
commit
f4681fde19
@ -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"],
|
||||||
)
|
)
|
||||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user