Commit 38d4dacb authored by Miek Gieben's avatar Miek Gieben Committed by GitHub

Fix import ordering presubmit test (#4422)

Automatically submitted.
parent eba74389
...@@ -4,6 +4,7 @@ import ( ...@@ -4,6 +4,7 @@ import (
"time" "time"
"github.com/coredns/coredns/plugin/cache/freq" "github.com/coredns/coredns/plugin/cache/freq"
"github.com/miekg/dns" "github.com/miekg/dns"
) )
......
...@@ -7,6 +7,7 @@ import ( ...@@ -7,6 +7,7 @@ import (
"github.com/coredns/coredns/plugin/dnstap/msg" "github.com/coredns/coredns/plugin/dnstap/msg"
test "github.com/coredns/coredns/plugin/test" test "github.com/coredns/coredns/plugin/test"
tap "github.com/dnstap/golang-dnstap" tap "github.com/dnstap/golang-dnstap"
"github.com/miekg/dns" "github.com/miekg/dns"
) )
......
...@@ -4,6 +4,7 @@ import ( ...@@ -4,6 +4,7 @@ import (
"time" "time"
"github.com/coredns/coredns/plugin/dnstap/msg" "github.com/coredns/coredns/plugin/dnstap/msg"
tap "github.com/dnstap/golang-dnstap" tap "github.com/dnstap/golang-dnstap"
"github.com/miekg/dns" "github.com/miekg/dns"
) )
......
...@@ -2,6 +2,7 @@ package kubernetes ...@@ -2,6 +2,7 @@ package kubernetes
import ( import (
"github.com/coredns/coredns/plugin/pkg/dnsutil" "github.com/coredns/coredns/plugin/pkg/dnsutil"
"github.com/miekg/dns" "github.com/miekg/dns"
) )
......
...@@ -7,6 +7,7 @@ import ( ...@@ -7,6 +7,7 @@ import (
"strings" "strings"
"github.com/coredns/coredns/plugin/pkg/parse" "github.com/coredns/coredns/plugin/pkg/parse"
"github.com/miekg/dns" "github.com/miekg/dns"
) )
......
...@@ -2,6 +2,7 @@ package trace ...@@ -2,6 +2,7 @@ package trace
import ( import (
"github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin"
ot "github.com/opentracing/opentracing-go" ot "github.com/opentracing/opentracing-go"
) )
......
...@@ -293,7 +293,7 @@ func (w *testImportOrderingWalker) walk(path string, info os.FileInfo, _ error) ...@@ -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. // 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. // 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] { for _, p := range blocks[i] {
t := importtype(p.Path.Value) t := importtype(p.Path.Value)
if t != ip[i] { if t != ip[i] {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment