Skip to content

Commit

Permalink
windows: Fix build after PR 12293 (#12296)
Browse files Browse the repository at this point in the history
  • Loading branch information
prestonvanloon authored Apr 17, 2023
1 parent 0c7292b commit f4681fd
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
19 changes: 13 additions & 6 deletions monitoring/journald/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
)
Original file line number Diff line number Diff line change
@@ -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
Expand Down
File renamed without changes.

0 comments on commit f4681fd

Please sign in to comment.