Skip to content

Commit 1302e8c

Browse files
committed
Dependabot workaround
1 parent 5afd92d commit 1302e8c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/juju/errors v0.0.0-20210818161939-5560c4c073ff
88
github.com/juju/testing v0.0.0-20201030020617-7189b3728523 // indirect
99
github.com/lixiangzhong/dnsutil v1.4.0
10-
github.com/miekg/dns v1.1.43 // indirect
10+
github.com/miekg/dns v1.1.43
1111
github.com/rs/zerolog v1.26.0
1212
github.com/spf13/cobra v1.2.1
1313
github.com/spf13/viper v1.9.0

tools/tools.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build tools
12
// +build tools
23

34
package tools
@@ -7,5 +8,13 @@ package tools
78
// during `go mod tidy`
89

910
import (
11+
// gotestsum is a test runner that produces test output in other formats, such as JUnit XML.
1012
_ "gotest.tools/gotestsum"
13+
14+
// This one is actually to prevent a misleading Dependabot error. Without it,
15+
// Dependabot will claim that this module is using an outdated version of this
16+
// module even when it isn't, presumably due to it being an indirect dependency from
17+
// the lixiangzhong/dnsutil package. Adding it here creates a direct dependency and
18+
// prevents go mod tidy from removing it from this module's go.mod.
19+
_ "github.com/miekg/dns"
1120
)

0 commit comments

Comments
 (0)