From 9a19156ac04ed79e84f8c0551d652377cb3f7467 Mon Sep 17 00:00:00 2001 From: devStorm <59678453+developStorm@users.noreply.github.com> Date: Thu, 31 Oct 2024 13:35:45 -0700 Subject: [PATCH] refactor: self require as replace in sub packages --- dnsutil/util.go | 2 +- example_test.go | 2 +- go.mod | 3 +++ privaterr_test.go | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dnsutil/util.go b/dnsutil/util.go index c3f3a844e1..f7a1547c72 100644 --- a/dnsutil/util.go +++ b/dnsutil/util.go @@ -8,7 +8,7 @@ package dnsutil import ( "strings" - "github.com/zmap/dns" + "github.com/miekg/dns" ) // AddOrigin adds origin to s if s is not already a FQDN. diff --git a/example_test.go b/example_test.go index 408558ac3f..0138f617a5 100644 --- a/example_test.go +++ b/example_test.go @@ -6,7 +6,7 @@ import ( "log" "net" - "github.com/zmap/dns" + "github.com/miekg/dns" ) // Retrieve the MX records for miek.nl. diff --git a/go.mod b/go.mod index 08cf2b1b31..81f3cf55ca 100644 --- a/go.mod +++ b/go.mod @@ -3,10 +3,13 @@ module github.com/zmap/dns go 1.19 require ( + github.com/miekg/dns v1.1.62 golang.org/x/net v0.28.0 golang.org/x/sync v0.7.0 golang.org/x/sys v0.23.0 golang.org/x/tools v0.22.0 ) +replace github.com/miekg/dns => ./ + require golang.org/x/mod v0.18.0 // indirect diff --git a/privaterr_test.go b/privaterr_test.go index aa21da2857..d362b8915e 100644 --- a/privaterr_test.go +++ b/privaterr_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - "github.com/zmap/dns" + "github.com/miekg/dns" ) const TypeISBN uint16 = 0xFF00