Update build (#6836)

* Update build

* Update Go to 1.23.0
* Update minimum Go version to 1.22.
* Update golangci-lint to v1.60.1.
* Make GitHub action version hash/tag consistent.
* Increase dependabot open PRs from 5 to 20.

Signed-off-by: SuperQ <superq@gmail.com>

* Fixup lint issue.

Signed-off-by: SuperQ <superq@gmail.com>

---------

Signed-off-by: SuperQ <superq@gmail.com>
This commit is contained in:
Ben Kochie
2024-08-18 07:13:53 +02:00
committed by GitHub
parent ec8e3844a9
commit d85c3b648d
17 changed files with 40 additions and 38 deletions

View File

@@ -2,7 +2,7 @@ package transfer
import (
"context"
"fmt"
"errors"
"testing"
"github.com/coredns/coredns/plugin/pkg/dnstest"
@@ -21,14 +21,14 @@ func (t t1) Transfer(zone string, serial uint32) (<-chan []dns.RR, error) {
if zone != z {
return nil, ErrNotAuthoritative
}
return nil, fmt.Errorf(z)
return nil, errors.New(z)
}
func (t t2) Transfer(zone string, serial uint32) (<-chan []dns.RR, error) {
const z = "sub.example.org."
if zone != z {
return nil, ErrNotAuthoritative
}
return nil, fmt.Errorf(z)
return nil, errors.New(z)
}
func TestZoneSelection(t *testing.T) {