Fix import ordering presubmit test (#4422)

Automatically submitted.
This commit is contained in:
Miek Gieben 2021-01-24 18:28:49 +01:00 committed by GitHub
parent eba74389c4
commit 38d4dacb88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 1 deletions

View file

@ -4,6 +4,7 @@ import (
"time"
"github.com/coredns/coredns/plugin/cache/freq"
"github.com/miekg/dns"
)

View file

@ -7,6 +7,7 @@ import (
"github.com/coredns/coredns/plugin/dnstap/msg"
test "github.com/coredns/coredns/plugin/test"
tap "github.com/dnstap/golang-dnstap"
"github.com/miekg/dns"
)

View file

@ -4,6 +4,7 @@ import (
"time"
"github.com/coredns/coredns/plugin/dnstap/msg"
tap "github.com/dnstap/golang-dnstap"
"github.com/miekg/dns"
)

View file

@ -2,6 +2,7 @@ package kubernetes
import (
"github.com/coredns/coredns/plugin/pkg/dnsutil"
"github.com/miekg/dns"
)

View file

@ -7,6 +7,7 @@ import (
"strings"
"github.com/coredns/coredns/plugin/pkg/parse"
"github.com/miekg/dns"
)

View file

@ -2,6 +2,7 @@ package trace
import (
"github.com/coredns/coredns/plugin"
ot "github.com/opentracing/opentracing-go"
)

View file

@ -293,7 +293,7 @@ func (w *testImportOrderingWalker) walk(path string, info os.FileInfo, _ error)
// Ok, now that we have the type, let's see if all members adhere to it.
// After that we check if the are in the right order.
for i := 0; i < bl; i++ {
for i := 0; i <= bl; i++ {
for _, p := range blocks[i] {
t := importtype(p.Path.Value)
if t != ip[i] {