Skip to content

Commit

Permalink
Chore: update all +build statements (grafana#38782)
Browse files Browse the repository at this point in the history
  • Loading branch information
zserge authored Sep 1, 2021
1 parent ea8d9d7 commit 643c7fa
Show file tree
Hide file tree
Showing 49 changed files with 52 additions and 2 deletions.
1 change: 1 addition & 0 deletions pkg/components/simplejson/simplejson_go11.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build go1.1
// +build go1.1

package simplejson
Expand Down
3 changes: 2 additions & 1 deletion pkg/infra/log/syslog.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//+build !windows,!nacl,!plan9
//go:build !windows && !nacl && !plan9
// +build !windows,!nacl,!plan9

package log

Expand Down
3 changes: 2 additions & 1 deletion pkg/infra/log/syslog_windows.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//+build windows
//go:build windows
// +build windows

package log

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build memcached
// +build memcached

package remotecache
Expand Down
1 change: 1 addition & 0 deletions pkg/infra/remotecache/redis_storage_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build redis
// +build redis

package remotecache
Expand Down
1 change: 1 addition & 0 deletions pkg/infra/serverlock/serverlock_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package serverlock
Expand Down
1 change: 1 addition & 0 deletions pkg/macaron/macaron.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build go1.3
// +build go1.3

// Copyright 2014 The Macaron Authors
Expand Down
2 changes: 2 additions & 0 deletions pkg/ruleguard.rules.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//go:build ignore
// +build ignore

// The MIT License (MIT)
//
// Copyright (c) 2020 Grafana Labs <[email protected]>, Damian Gryski <[email protected]>
Expand Down
1 change: 1 addition & 0 deletions pkg/schema/load/constant.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

package load
Expand Down
1 change: 1 addition & 0 deletions pkg/schema/load/constant_windows.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package load
Expand Down
1 change: 1 addition & 0 deletions pkg/server/wire.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build wireinject
// +build wireinject

package server
Expand Down
1 change: 1 addition & 0 deletions pkg/server/wireexts_oss.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build wireinject && oss
// +build wireinject,oss

package server
Expand Down
1 change: 1 addition & 0 deletions pkg/services/alerting/engine_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package alerting
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package dashboards
Expand Down
1 change: 1 addition & 0 deletions pkg/services/live/database/tests/storage_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package tests
Expand Down
1 change: 1 addition & 0 deletions pkg/services/live/managedstream/cache_redis_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build redis
// +build redis

package managedstream
Expand Down
1 change: 1 addition & 0 deletions pkg/services/login/authinfoservice/user_auth_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package authinfoservice
Expand Down
1 change: 1 addition & 0 deletions pkg/services/ngalert/store/instance_database_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package store_test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build linux
// +build linux

package dashboards
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/alert_notification_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/alert_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/annotation_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/apikey_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/dashboard_acl_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/dashboard_folder_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/dashboard_provisioning_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/dashboard_snapshot_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/dashboard_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/dashboard_version_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/datasource_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/health_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/login_attempt_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/org_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/playlist_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/preferences_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/quota_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/searchstore/search_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

// package search_test contains integration tests for search
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/sqlbuilder_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/sqlstore_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/stars_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/stats_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/stats_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/tags_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/team_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/temp_user_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/transactions_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/services/sqlstore/user_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package sqlstore
Expand Down
1 change: 1 addition & 0 deletions pkg/tsdb/mysql/mysql_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package mysql
Expand Down
1 change: 1 addition & 0 deletions pkg/tsdb/postgres/postgres_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build integration
// +build integration

package postgres
Expand Down

0 comments on commit 643c7fa

Please sign in to comment.