diff --git a/pkg/util/grunning/BUILD.bazel b/pkg/util/grunning/BUILD.bazel index a3f56d7f2255..86eb3ed85ee1 100644 --- a/pkg/util/grunning/BUILD.bazel +++ b/pkg/util/grunning/BUILD.bazel @@ -3,7 +3,6 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "grunning", srcs = [ - "disabled.go", "enabled.go", "grunning.go", ], @@ -13,285 +12,11 @@ go_library( go_test( name = "grunning_test", - srcs = [ - "disabled_test.go", - "enabled_test.go", + srcs = ["enabled_test.go"], + deps = [ + ":grunning", + "//pkg/testutils/skip", + "//pkg/util/syncutil", + "@com_github_stretchr_testify//require", ], - deps = select({ - "@io_bazel_rules_go//go/platform:aix_ppc64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:android_386": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:android_amd64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:android_arm": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:android_arm64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:darwin_386": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:darwin_amd64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:darwin_arm": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:darwin_arm64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:dragonfly_amd64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:freebsd_386": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:freebsd_amd64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:freebsd_arm": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:freebsd_arm64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:illumos_amd64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:ios_amd64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:ios_arm64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:js_wasm": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:linux_386": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:linux_amd64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:linux_arm": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:linux_arm64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:linux_mips": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:linux_mips64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:linux_mips64le": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:linux_mipsle": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:linux_ppc64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:linux_ppc64le": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:linux_riscv64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:linux_s390x": [ - ":grunning", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:netbsd_386": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:netbsd_amd64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:netbsd_arm": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:netbsd_arm64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:openbsd_386": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:openbsd_amd64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:openbsd_arm": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:openbsd_arm64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:plan9_386": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:plan9_amd64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:plan9_arm": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:solaris_amd64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:windows_386": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:windows_amd64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:windows_arm": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "@io_bazel_rules_go//go/platform:windows_arm64": [ - ":grunning", - "//pkg/testutils/skip", - "//pkg/util/syncutil", - "@com_github_stretchr_testify//require", - ], - "//conditions:default": [], - }), ) diff --git a/pkg/util/grunning/disabled.go b/pkg/util/grunning/disabled.go index f175eb28af82..3db06438f689 100644 --- a/pkg/util/grunning/disabled.go +++ b/pkg/util/grunning/disabled.go @@ -10,8 +10,8 @@ // See grunning.Supported() for an explanation behind this build tag. // -//go:build (linux && s390x) || !bazel -// +build linux,s390x !bazel +//go:build !bazel +// +build !bazel package grunning diff --git a/pkg/util/grunning/disabled_test.go b/pkg/util/grunning/disabled_test.go index d434762c27c3..a34ae391108c 100644 --- a/pkg/util/grunning/disabled_test.go +++ b/pkg/util/grunning/disabled_test.go @@ -10,8 +10,8 @@ // See grunning.Supported() for an explanation behind this build tag. // -//go:build (linux && s390x) || !bazel -// +build linux,s390x !bazel +//go:build !bazel +// +build !bazel package grunning_test diff --git a/pkg/util/grunning/enabled.go b/pkg/util/grunning/enabled.go index f8cd1b5b13db..d41da7893d46 100644 --- a/pkg/util/grunning/enabled.go +++ b/pkg/util/grunning/enabled.go @@ -10,8 +10,7 @@ // See grunning.Supported() for an explanation behind this build tag. // -//go:build !((linux && s390x) || !bazel) -// +build !linux !s390x +//go:build bazel // +build bazel package grunning diff --git a/pkg/util/grunning/enabled_test.go b/pkg/util/grunning/enabled_test.go index 89076af80c2b..dbc766cdb758 100644 --- a/pkg/util/grunning/enabled_test.go +++ b/pkg/util/grunning/enabled_test.go @@ -10,8 +10,7 @@ // See grunning.Supported() for an explanation behind this build tag. // -//go:build !((linux && s390x) || !bazel) -// +build !linux !s390x +//go:build bazel // +build bazel package grunning_test