Add new Go build tags.

Add new go:build comments based on 1.17 formatting[0].

[0]: https://golang.org/doc/go1.17#gofmt

Signed-off-by: SuperQ <superq@gmail.com>
pull/9254/head
SuperQ 4 years ago
parent a1401c26b1
commit e167a45c65
No known key found for this signature in database
GPG Key ID: C646B23C9E3245F1
  1. 2
      .circleci/config.yml
  2. 1
      cmd/prometheus/main_unix_test.go
  3. 1
      config/config_default_test.go
  4. 3
      documentation/prometheus-mixin/tools.go
  5. 1
      pkg/runtime/limits_default.go
  6. 1
      pkg/runtime/limits_windows.go
  7. 1
      pkg/runtime/statfs.go
  8. 4
      pkg/runtime/statfs_default.go
  9. 1
      pkg/runtime/statfs_linux_386.go
  10. 1
      pkg/runtime/statfs_uint32.go
  11. 1
      pkg/runtime/uname_default.go
  12. 4
      pkg/runtime/vmlimits_default.go
  13. 1
      pkg/runtime/vmlimits_openbsd.go
  14. 1
      promql/fuzz.go
  15. 1
      scripts/tools.go
  16. 1
      tsdb/chunks/head_chunks_other.go
  17. 1
      tsdb/fileutil/dir_unix.go
  18. 1
      tsdb/fileutil/dir_windows.go
  19. 1
      tsdb/fileutil/flock_solaris.go
  20. 1
      tsdb/fileutil/flock_unix.go
  21. 1
      tsdb/fileutil/mmap_386.go
  22. 1
      tsdb/fileutil/mmap_amd64.go
  23. 1
      tsdb/fileutil/mmap_unix.go
  24. 1
      tsdb/fileutil/preallocate_other.go
  25. 1
      tsdb/fileutil/sync.go
  26. 1
      tsdb/fileutil/sync_darwin.go
  27. 1
      tsdb/fileutil/sync_linux.go
  28. 1
      tsdb/goversion/goversion.go
  29. 1
      tsdb/wal_test.go
  30. 1
      web/ui/assets_generate.go
  31. 1
      web/ui/ui.go

@ -108,7 +108,7 @@ jobs:
- run:
command: go install -mod=readonly github.com/google/go-jsonnet/cmd/jsonnet github.com/google/go-jsonnet/cmd/jsonnetfmt github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb
working_directory: ~/project/documentation/prometheus-mixin
-8716766cb49ab9dd7df5622d80bb217b94a21d0f3d3dc3d074c3ec7a0c7f67ea run:
- run:
command: make clean
working_directory: ~/project/documentation/prometheus-mixin
- run:

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
//go:build !windows
// +build !windows
package main

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !windows
// +build !windows
package config

@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build tools
//go:build tools
// +build tools
// Package tools tracks dependencies for tools that used in the build process.
// See https://github.com/golang/go/issues/25922

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !windows
// +build !windows
package runtime

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build windows
// +build windows
package runtime

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build openbsd || windows || netbsd || solaris
// +build openbsd windows netbsd solaris
package runtime

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build !windows,!openbsd,!netbsd,!solaris
// +build !386
//go:build !windows && !openbsd && !netbsd && !solaris && !386
// +build !windows,!openbsd,!netbsd,!solaris,!386
package runtime

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build linux && 386
// +build linux,386
package runtime

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build (386 && darwin) || (386 && freebsd)
// +build 386,darwin 386,freebsd
package runtime

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !linux
// +build !linux
package runtime

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build !windows
// +build !openbsd
//go:build !windows && !openbsd
// +build !windows,!openbsd
package runtime

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build openbsd
// +build openbsd
package runtime

@ -12,6 +12,7 @@
// limitations under the License.
// Only build when go-fuzz is in use
//go:build gofuzz
// +build gofuzz
package promql

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build tools
// +build tools
// Package tools tracks dependencies for tools that are required to generate the protobuf code.

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !windows
// +build !windows
package chunks

@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !windows
// +build !windows
package fileutil

@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build windows
// +build windows
package fileutil

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build solaris
// +build solaris
package fileutil

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build darwin || dragonfly || freebsd || linux || netbsd || openbsd
// +build darwin dragonfly freebsd linux netbsd openbsd
package fileutil

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build windows
// +build windows
package fileutil

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build windows
// +build windows
package fileutil

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !windows && !plan9
// +build !windows,!plan9
package fileutil

@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !linux && !darwin
// +build !linux,!darwin
package fileutil

@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !linux && !darwin
// +build !linux,!darwin
package fileutil

@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build darwin
// +build darwin
package fileutil

@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build linux
// +build linux
package fileutil

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build go1.12
// +build go1.12
// Package goversion enforces the go version supported by the tsdb module.

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !windows
// +build !windows
package tsdb

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build ignore
// +build ignore
package main

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !builtinassets
// +build !builtinassets
package ui

Loading…
Cancel
Save