diff --git a/cmd/prometheus/main_unix_test.go b/cmd/prometheus/main_unix_test.go index 7224e25d708..417d062d66a 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 f5333f4c883..26623590d96 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 32a32d890b6..3db6de4ab03 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 aff6eb15b20..d2e5925ebc0 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 08a04d98b66..1f0bbaa662e 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 52b46491127..e1dd80232ff 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 3d00fddc374..f30c5e55e97 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 db310014ef5..2afb2aeaba0 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 f67cc74b31b..307077ebc31 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 697d2e54249..6029cdf4d82 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 21be384d331..8ca919f3b00 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 9637f073bff..25de0ffb22a 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 591d722d57c..85c0cce0966 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 4c9534e93fd..71fc568bd5f 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 4c9534e93fd..71fc568bd5f 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 0c666e8bf5a..f29106fc1e0 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 1fd7f48ff58..3d15e1a8c12 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 2c46dd49075..e7fd937a436 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 5bd18b458c3..e1a4a7fd3db 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 155b9445951..d698b896af8 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 1c2091ea381..2b4c620bb0b 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 02da2639d6c..ec23d25f2e9 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 964763d7f16..9004f5093f3 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 40af5f14da5..0126adb1a84 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 ce514949eeb..ce82d31e6da 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 2e5a624b619..66bedb5ea1e 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 b6f837c478d..8d283c1e445 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 7494a0adf5a..a003b2effe1 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 72d670a3967..fbf994ea63d 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 16133712145..0052dbab472 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 bf35b48fe08..aef43410610 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 e33ab48023e..b40f065883e 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 f10d5c0c23e..a5f8f5ddfa8 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 99ae34e5d23..2585951d4d5 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