Skip to content

Commit d3109db

Browse files
Bump the version in go.mod v1 -> v2 (#535)
* go.mod version -> v2 * bump import zdns version to v2
1 parent 44d51a4 commit d3109db

File tree

31 files changed

+59
-59
lines changed

31 files changed

+59
-59
lines changed

benchmark/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"github.com/schollz/progressbar/v3"
2828
log "github.com/sirupsen/logrus"
2929

30-
"github.com/zmap/zdns/src/zdns"
30+
"github.com/zmap/zdns/v2/src/zdns"
3131
)
3232

3333
const (

benchmark/stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121

2222
log "github.com/sirupsen/logrus"
2323

24-
"github.com/zmap/zdns/src/zdns"
24+
"github.com/zmap/zdns/v2/src/zdns"
2525
)
2626

2727
// Stats holds the statistics for the benchmark

examples/all_nameservers_lookup/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import (
2020
"github.com/miekg/dns"
2121
log "github.com/sirupsen/logrus"
2222

23-
"github.com/zmap/zdns/examples/utils"
24-
"github.com/zmap/zdns/src/zdns"
23+
"github.com/zmap/zdns/v2/examples/utils"
24+
"github.com/zmap/zdns/v2/src/zdns"
2525
)
2626

2727
func main() {

examples/multi_thread_lookup/multi_threaded.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
"github.com/miekg/dns"
2222
log "github.com/sirupsen/logrus"
2323

24-
"github.com/zmap/zdns/examples/utils"
25-
"github.com/zmap/zdns/src/zdns"
24+
"github.com/zmap/zdns/v2/examples/utils"
25+
"github.com/zmap/zdns/v2/src/zdns"
2626
)
2727

2828
func main() {

examples/single_lookup/simple.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
"github.com/miekg/dns"
2222
log "github.com/sirupsen/logrus"
2323

24-
"github.com/zmap/zdns/examples/utils"
25-
"github.com/zmap/zdns/src/zdns"
24+
"github.com/zmap/zdns/v2/examples/utils"
25+
"github.com/zmap/zdns/v2/src/zdns"
2626
)
2727

2828
func main() {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/zmap/zdns
1+
module github.com/zmap/zdns/v2
22

33
go 1.23.0
44

main.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ import (
2020

2121
log "github.com/sirupsen/logrus"
2222

23-
"github.com/zmap/zdns/src/cli"
23+
"github.com/zmap/zdns/v2/src/cli"
2424
// the order of these imports is important, as the modules are registered in the init() functions.
2525
// Import modules after the basic cmd pkg
26-
_ "github.com/zmap/zdns/src/modules/alookup"
27-
_ "github.com/zmap/zdns/src/modules/axfr"
28-
_ "github.com/zmap/zdns/src/modules/bindversion"
29-
_ "github.com/zmap/zdns/src/modules/dmarc"
30-
_ "github.com/zmap/zdns/src/modules/mxlookup"
31-
_ "github.com/zmap/zdns/src/modules/nslookup"
32-
_ "github.com/zmap/zdns/src/modules/spf"
26+
_ "github.com/zmap/zdns/v2/src/modules/alookup"
27+
_ "github.com/zmap/zdns/v2/src/modules/axfr"
28+
_ "github.com/zmap/zdns/v2/src/modules/bindversion"
29+
_ "github.com/zmap/zdns/v2/src/modules/dmarc"
30+
_ "github.com/zmap/zdns/v2/src/modules/mxlookup"
31+
_ "github.com/zmap/zdns/v2/src/modules/nslookup"
32+
_ "github.com/zmap/zdns/v2/src/modules/spf"
3333
)
3434

3535
func main() {

src/cli/cli.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
log "github.com/sirupsen/logrus"
2727
flags "github.com/zmap/zflags"
2828

29-
"github.com/zmap/zdns/src/zdns"
29+
"github.com/zmap/zdns/v2/src/zdns"
3030
)
3131

3232
var parser *flags.Parser

src/cli/iohandlers/file_handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323

2424
log "github.com/sirupsen/logrus"
2525

26-
"github.com/zmap/zdns/src/internal/util"
26+
"github.com/zmap/zdns/v2/src/internal/util"
2727
)
2828

2929
type FileInputHandler struct {

src/cli/iohandlers/status_handler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import (
2525
"github.com/pkg/errors"
2626
log "github.com/sirupsen/logrus"
2727

28-
"github.com/zmap/zdns/src/internal/util"
29-
"github.com/zmap/zdns/src/zdns"
28+
"github.com/zmap/zdns/v2/src/internal/util"
29+
"github.com/zmap/zdns/v2/src/zdns"
3030
)
3131

3232
type StatusHandler struct {

0 commit comments

Comments
 (0)