Skip to content

Commit

Permalink
update all +build statements (coredns#5271)
Browse files Browse the repository at this point in the history
* update all +build statements

Signed-off-by: MQasimSarfraz <[email protected]>

* remove old +build style

Signed-off-by: MQasimSarfraz <[email protected]>
  • Loading branch information
mqasimsarfraz authored Mar 18, 2022
1 parent d89f899 commit 74b84a1
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 21 deletions.
2 changes: 1 addition & 1 deletion directives_generate.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//+build ignore
//go:build ignore

package main

Expand Down
2 changes: 1 addition & 1 deletion owners_generate.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//+build ignore
//go:build ignore

// generates plugin/chaos/zowners.go.

Expand Down
2 changes: 1 addition & 1 deletion plugin/cache/fuzz.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build gofuzz
//go:build gofuzz

package cache

Expand Down
2 changes: 1 addition & 1 deletion plugin/chaos/fuzz.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build gofuzz
//go:build gofuzz

package chaos

Expand Down
2 changes: 1 addition & 1 deletion plugin/etcd/cname_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build etcd
//go:build etcd

package etcd

Expand Down
2 changes: 1 addition & 1 deletion plugin/etcd/group_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build etcd
//go:build etcd

package etcd

Expand Down
2 changes: 1 addition & 1 deletion plugin/etcd/lookup_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build etcd
//go:build etcd

package etcd

Expand Down
2 changes: 1 addition & 1 deletion plugin/etcd/multi_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build etcd
//go:build etcd

package etcd

Expand Down
2 changes: 1 addition & 1 deletion plugin/etcd/other_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build etcd
//go:build etcd

// tests mx and txt records

Expand Down
2 changes: 1 addition & 1 deletion plugin/etcd/setup_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build etcd
//go:build etcd

package etcd

Expand Down
2 changes: 1 addition & 1 deletion plugin/file/fuzz.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build gofuzz
//go:build gofuzz

package file

Expand Down
2 changes: 1 addition & 1 deletion plugin/forward/fuzz.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build gofuzz
//go:build gofuzz

package forward

Expand Down
2 changes: 1 addition & 1 deletion plugin/pkg/reuseport/listen_no_reuseport.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !go1.11 !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd
//go:build !go1.11 || (!aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd)

package reuseport

Expand Down
3 changes: 1 addition & 2 deletions plugin/pkg/reuseport/listen_reuseport.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// +build go1.11
// +build aix darwin dragonfly freebsd linux netbsd openbsd
//go:build go1.11 && (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd)

package reuseport

Expand Down
2 changes: 1 addition & 1 deletion plugin/rewrite/fuzz.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build gofuzz
//go:build gofuzz

package rewrite

Expand Down
2 changes: 1 addition & 1 deletion plugin/whoami/fuzz.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build gofuzz
//go:build gofuzz

package whoami

Expand Down
2 changes: 1 addition & 1 deletion test/etcd_cache_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build etcd
//go:build etcd

package test

Expand Down
2 changes: 1 addition & 1 deletion test/etcd_credentials_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build etcd
//go:build etcd

package test

Expand Down
2 changes: 1 addition & 1 deletion test/etcd_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build etcd
//go:build etcd

package test

Expand Down
2 changes: 1 addition & 1 deletion test/fuzz_corefile.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build gofuzz
//go:build gofuzz

package test

Expand Down

0 comments on commit 74b84a1

Please sign in to comment.