mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Update version in go.mod (#2382)
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
Test a particular function:
|
||||
|
||||
```shell
|
||||
dlv test github.com/StackExchange/dnscontrol/v3/pkg/diff2 -- -test.run Test_analyzeByRecordSet
|
||||
dlv test github.com/StackExchange/dnscontrol/v4/pkg/diff2 -- -test.run Test_analyzeByRecordSet
|
||||
^^^^^^^^^
|
||||
Assumes you are in the pkg/diff2 directory.
|
||||
```
|
||||
@ -11,5 +11,5 @@ dlv test github.com/StackExchange/dnscontrol/v3/pkg/diff2 -- -test.run Test_anal
|
||||
Debug the integration tests:
|
||||
|
||||
```shell
|
||||
dlv test github.com/StackExchange/dnscontrol/v3/integrationTest -- -test.v -test.run ^TestDNSProviders -verbose -provider NAMEDOTCOM -start 1 -end 1 -diff2
|
||||
dlv test github.com/StackExchange/dnscontrol/v4/integrationTest -- -test.v -test.run ^TestDNSProviders -verbose -provider NAMEDOTCOM -start 1 -end 1 -diff2
|
||||
```
|
||||
|
@ -52,7 +52,7 @@ install `dnscontrol` in your `$GOBIN` directory.
|
||||
To install, simply run
|
||||
|
||||
```shell
|
||||
go install github.com/StackExchange/dnscontrol/v3@latest
|
||||
go install github.com/StackExchange/dnscontrol/v4@latest
|
||||
```
|
||||
|
||||
To download the source
|
||||
|
@ -123,7 +123,7 @@ were used. They're included her for reference.
|
||||
|
||||
```shell
|
||||
# Make all the changes:
|
||||
sed -i.bak -e 's@github.com.StackExchange.dnscontrol.v2@github.com/StackExchange/dnscontrol/v3@g' go.* $(fgrep -lri --include '*.go' github.com/StackExchange/dnscontrol/v2 *)
|
||||
sed -i.bak -e 's@github.com.StackExchange.dnscontrol.v2@github.com/StackExchange/dnscontrol/v4@g' go.* $(fgrep -lri --include '*.go' github.com/StackExchange/dnscontrol/v2 *)
|
||||
# Delete the backup files:
|
||||
find * -name \*.bak -delete
|
||||
```
|
||||
|
@ -146,7 +146,7 @@ Add the provider list so DNSControl knows it exists.
|
||||
**If you are implementing a DNS Service Provider:**
|
||||
|
||||
Implement all the calls in the
|
||||
[providers.DNSServiceProvider interface](https://pkg.go.dev/github.com/StackExchange/dnscontrol/v3/providers#DNSServiceProvider).
|
||||
[providers.DNSServiceProvider interface](https://pkg.go.dev/github.com/StackExchange/dnscontrol/v4/providers#DNSServiceProvider).
|
||||
|
||||
The function `GetDomainCorrections()` is a bit interesting. It returns
|
||||
a list of corrections to be made. These are in the form of functions
|
||||
@ -155,7 +155,7 @@ that DNSControl can call to actually make the corrections.
|
||||
**If you are implementing a DNS Registrar:**
|
||||
|
||||
Implement all the calls in the
|
||||
[providers.Registrar interface](https://pkg.go.dev/github.com/StackExchange/dnscontrol/v3/providers#Registrar).
|
||||
[providers.Registrar interface](https://pkg.go.dev/github.com/StackExchange/dnscontrol/v4/providers#Registrar).
|
||||
|
||||
The function `GetRegistrarCorrections()` returns
|
||||
a list of corrections to be made. These are in the form of functions
|
||||
|
Reference in New Issue
Block a user