From f97fa2736c89947aa91a201f23775a4a47916d65 Mon Sep 17 00:00:00 2001 From: tyltr Date: Wed, 17 Jan 2024 22:26:32 +0800 Subject: [PATCH] remove obsolete build tag Signed-off-by: tyltr --- cmd/prometheus/main_unix_test.go | 1 - config/config_default_test.go | 1 - plugins/generate.go | 1 - promql/fuzz.go | 1 - promql/fuzz_test.go | 1 - scripts/tools.go | 1 - tsdb/chunks/head_chunks_other.go | 1 - tsdb/fileutil/dir_unix.go | 1 - tsdb/fileutil/dir_windows.go | 1 - tsdb/fileutil/flock_js.go | 1 - tsdb/fileutil/flock_solaris.go | 1 - tsdb/fileutil/flock_unix.go | 1 - tsdb/fileutil/mmap_386.go | 1 - tsdb/fileutil/mmap_amd64.go | 1 - tsdb/fileutil/mmap_arm64.go | 1 - tsdb/fileutil/mmap_js.go | 1 - tsdb/fileutil/mmap_unix.go | 1 - tsdb/fileutil/preallocate_other.go | 1 - tsdb/fileutil/sync.go | 1 - tsdb/fileutil/sync_darwin.go | 1 - tsdb/fileutil/sync_linux.go | 1 - tsdb/goversion/goversion.go | 1 - tsdb/wal_test.go | 1 - util/runtime/limits_default.go | 1 - util/runtime/limits_windows.go | 1 - util/runtime/statfs.go | 1 - util/runtime/statfs_default.go | 1 - util/runtime/statfs_linux_386.go | 1 - util/runtime/statfs_uint32.go | 1 - util/runtime/uname_default.go | 1 - util/runtime/vmlimits_default.go | 1 - util/runtime/vmlimits_openbsd.go | 1 - web/ui/assets_embed.go | 1 - web/ui/ui.go | 1 - 34 files changed, 34 deletions(-) diff --git a/cmd/prometheus/main_unix_test.go b/cmd/prometheus/main_unix_test.go index 7224e25d70..417d062d66 100644 --- a/cmd/prometheus/main_unix_test.go +++ b/cmd/prometheus/main_unix_test.go @@ -12,7 +12,6 @@ // limitations under the License. // //go:build !windows -// +build !windows package main diff --git a/config/config_default_test.go b/config/config_default_test.go index f5333f4c88..26623590d9 100644 --- a/config/config_default_test.go +++ b/config/config_default_test.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build !windows -// +build !windows package config diff --git a/plugins/generate.go b/plugins/generate.go index 32a32d890b..3db6de4ab0 100644 --- a/plugins/generate.go +++ b/plugins/generate.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build plugins -// +build plugins package main diff --git a/promql/fuzz.go b/promql/fuzz.go index aff6eb15b2..d2e5925ebc 100644 --- a/promql/fuzz.go +++ b/promql/fuzz.go @@ -13,7 +13,6 @@ // Only build when go-fuzz is in use //go:build gofuzz -// +build gofuzz package promql diff --git a/promql/fuzz_test.go b/promql/fuzz_test.go index 08a04d98b6..1f0bbaa662 100644 --- a/promql/fuzz_test.go +++ b/promql/fuzz_test.go @@ -13,7 +13,6 @@ // Only build when go-fuzz is in use //go:build gofuzz -// +build gofuzz package promql diff --git a/scripts/tools.go b/scripts/tools.go index 52b4649112..e1dd80232f 100644 --- a/scripts/tools.go +++ b/scripts/tools.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build tools -// +build tools // Package tools tracks dependencies for tools that are required to generate the protobuf code. // See https://github.com/golang/go/issues/25922 diff --git a/tsdb/chunks/head_chunks_other.go b/tsdb/chunks/head_chunks_other.go index 3d00fddc37..f30c5e55e9 100644 --- a/tsdb/chunks/head_chunks_other.go +++ b/tsdb/chunks/head_chunks_other.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build !windows -// +build !windows package chunks diff --git a/tsdb/fileutil/dir_unix.go b/tsdb/fileutil/dir_unix.go index db310014ef..2afb2aeaba 100644 --- a/tsdb/fileutil/dir_unix.go +++ b/tsdb/fileutil/dir_unix.go @@ -13,7 +13,6 @@ // limitations under the License. //go:build !windows -// +build !windows package fileutil diff --git a/tsdb/fileutil/dir_windows.go b/tsdb/fileutil/dir_windows.go index f67cc74b31..307077ebc3 100644 --- a/tsdb/fileutil/dir_windows.go +++ b/tsdb/fileutil/dir_windows.go @@ -13,7 +13,6 @@ // limitations under the License. //go:build windows -// +build windows package fileutil diff --git a/tsdb/fileutil/flock_js.go b/tsdb/fileutil/flock_js.go index 697d2e5424..6029cdf4d8 100644 --- a/tsdb/fileutil/flock_js.go +++ b/tsdb/fileutil/flock_js.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build js -// +build js package fileutil diff --git a/tsdb/fileutil/flock_solaris.go b/tsdb/fileutil/flock_solaris.go index 21be384d33..8ca919f3b0 100644 --- a/tsdb/fileutil/flock_solaris.go +++ b/tsdb/fileutil/flock_solaris.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build solaris -// +build solaris package fileutil diff --git a/tsdb/fileutil/flock_unix.go b/tsdb/fileutil/flock_unix.go index 9637f073bf..25de0ffb22 100644 --- a/tsdb/fileutil/flock_unix.go +++ b/tsdb/fileutil/flock_unix.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd -// +build darwin dragonfly freebsd linux netbsd openbsd package fileutil diff --git a/tsdb/fileutil/mmap_386.go b/tsdb/fileutil/mmap_386.go index 591d722d57..85c0cce096 100644 --- a/tsdb/fileutil/mmap_386.go +++ b/tsdb/fileutil/mmap_386.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build windows -// +build windows package fileutil diff --git a/tsdb/fileutil/mmap_amd64.go b/tsdb/fileutil/mmap_amd64.go index 4c9534e93f..71fc568bd5 100644 --- a/tsdb/fileutil/mmap_amd64.go +++ b/tsdb/fileutil/mmap_amd64.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build windows -// +build windows package fileutil diff --git a/tsdb/fileutil/mmap_arm64.go b/tsdb/fileutil/mmap_arm64.go index 4c9534e93f..71fc568bd5 100644 --- a/tsdb/fileutil/mmap_arm64.go +++ b/tsdb/fileutil/mmap_arm64.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build windows -// +build windows package fileutil diff --git a/tsdb/fileutil/mmap_js.go b/tsdb/fileutil/mmap_js.go index 0c666e8bf5..f29106fc1e 100644 --- a/tsdb/fileutil/mmap_js.go +++ b/tsdb/fileutil/mmap_js.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build js -// +build js package fileutil diff --git a/tsdb/fileutil/mmap_unix.go b/tsdb/fileutil/mmap_unix.go index 1fd7f48ff5..3d15e1a8c1 100644 --- a/tsdb/fileutil/mmap_unix.go +++ b/tsdb/fileutil/mmap_unix.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build !windows && !plan9 && !js -// +build !windows,!plan9,!js package fileutil diff --git a/tsdb/fileutil/preallocate_other.go b/tsdb/fileutil/preallocate_other.go index 2c46dd4907..e7fd937a43 100644 --- a/tsdb/fileutil/preallocate_other.go +++ b/tsdb/fileutil/preallocate_other.go @@ -13,7 +13,6 @@ // limitations under the License. //go:build !linux && !darwin -// +build !linux,!darwin package fileutil diff --git a/tsdb/fileutil/sync.go b/tsdb/fileutil/sync.go index 5bd18b458c..e1a4a7fd3d 100644 --- a/tsdb/fileutil/sync.go +++ b/tsdb/fileutil/sync.go @@ -13,7 +13,6 @@ // limitations under the License. //go:build !linux && !darwin -// +build !linux,!darwin package fileutil diff --git a/tsdb/fileutil/sync_darwin.go b/tsdb/fileutil/sync_darwin.go index 155b944595..d698b896af 100644 --- a/tsdb/fileutil/sync_darwin.go +++ b/tsdb/fileutil/sync_darwin.go @@ -13,7 +13,6 @@ // limitations under the License. //go:build darwin -// +build darwin package fileutil diff --git a/tsdb/fileutil/sync_linux.go b/tsdb/fileutil/sync_linux.go index 1c2091ea38..2b4c620bb0 100644 --- a/tsdb/fileutil/sync_linux.go +++ b/tsdb/fileutil/sync_linux.go @@ -13,7 +13,6 @@ // limitations under the License. //go:build linux -// +build linux package fileutil diff --git a/tsdb/goversion/goversion.go b/tsdb/goversion/goversion.go index 02da2639d6..ec23d25f2e 100644 --- a/tsdb/goversion/goversion.go +++ b/tsdb/goversion/goversion.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build go1.12 -// +build go1.12 // Package goversion enforces the go version supported by the tsdb module. package goversion diff --git a/tsdb/wal_test.go b/tsdb/wal_test.go index 964763d7f1..9004f5093f 100644 --- a/tsdb/wal_test.go +++ b/tsdb/wal_test.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build !windows -// +build !windows package tsdb diff --git a/util/runtime/limits_default.go b/util/runtime/limits_default.go index 40af5f14da..0126adb1a8 100644 --- a/util/runtime/limits_default.go +++ b/util/runtime/limits_default.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build !windows -// +build !windows package runtime diff --git a/util/runtime/limits_windows.go b/util/runtime/limits_windows.go index ce514949ee..ce82d31e6d 100644 --- a/util/runtime/limits_windows.go +++ b/util/runtime/limits_windows.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build windows -// +build windows package runtime diff --git a/util/runtime/statfs.go b/util/runtime/statfs.go index 2e5a624b61..66bedb5ea1 100644 --- a/util/runtime/statfs.go +++ b/util/runtime/statfs.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build openbsd || windows || netbsd || solaris -// +build openbsd windows netbsd solaris package runtime diff --git a/util/runtime/statfs_default.go b/util/runtime/statfs_default.go index b6f837c478..8d283c1e44 100644 --- a/util/runtime/statfs_default.go +++ b/util/runtime/statfs_default.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build !windows && !openbsd && !netbsd && !solaris && !386 -// +build !windows,!openbsd,!netbsd,!solaris,!386 package runtime diff --git a/util/runtime/statfs_linux_386.go b/util/runtime/statfs_linux_386.go index 7494a0adf5..a003b2effe 100644 --- a/util/runtime/statfs_linux_386.go +++ b/util/runtime/statfs_linux_386.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build linux && 386 -// +build linux,386 package runtime diff --git a/util/runtime/statfs_uint32.go b/util/runtime/statfs_uint32.go index 72d670a396..fbf994ea63 100644 --- a/util/runtime/statfs_uint32.go +++ b/util/runtime/statfs_uint32.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build (386 && darwin) || (386 && freebsd) -// +build 386,darwin 386,freebsd package runtime diff --git a/util/runtime/uname_default.go b/util/runtime/uname_default.go index 1613371214..0052dbab47 100644 --- a/util/runtime/uname_default.go +++ b/util/runtime/uname_default.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build !linux -// +build !linux package runtime diff --git a/util/runtime/vmlimits_default.go b/util/runtime/vmlimits_default.go index bf35b48fe0..aef4341061 100644 --- a/util/runtime/vmlimits_default.go +++ b/util/runtime/vmlimits_default.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build !windows && !openbsd -// +build !windows,!openbsd package runtime diff --git a/util/runtime/vmlimits_openbsd.go b/util/runtime/vmlimits_openbsd.go index e33ab48023..b40f065883 100644 --- a/util/runtime/vmlimits_openbsd.go +++ b/util/runtime/vmlimits_openbsd.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build openbsd -// +build openbsd package runtime diff --git a/web/ui/assets_embed.go b/web/ui/assets_embed.go index f10d5c0c23..a5f8f5ddfa 100644 --- a/web/ui/assets_embed.go +++ b/web/ui/assets_embed.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build builtinassets -// +build builtinassets package ui diff --git a/web/ui/ui.go b/web/ui/ui.go index 99ae34e5d2..2585951d4d 100644 --- a/web/ui/ui.go +++ b/web/ui/ui.go @@ -12,7 +12,6 @@ // limitations under the License. //go:build !builtinassets -// +build !builtinassets package ui