mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
chore(deps): upgrade Go requirement to 1.24.0 (#7456)
- Update Go version requirement to 1.24.0 - Bump build version to 1.25.0 - Upgrade golangci-lint action to latest - Use t.Chdir in tests to address linter issue Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
This commit is contained in:
2
.github/workflows/golangci-lint.yml
vendored
2
.github/workflows/golangci-lint.yml
vendored
@@ -15,4 +15,4 @@ jobs:
|
|||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
|
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
|
||||||
with:
|
with:
|
||||||
version: v2.1.6
|
version: v2.4.0
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
1.24.6
|
1.25.0
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ out-of-tree plugins.
|
|||||||
To compile CoreDNS, we assume you have a working Go setup. See various tutorials if you don’t have
|
To compile CoreDNS, we assume you have a working Go setup. See various tutorials if you don’t have
|
||||||
that already configured.
|
that already configured.
|
||||||
|
|
||||||
First, make sure your golang version is 1.23.0 or higher as `go mod` support and other api is needed.
|
First, make sure your golang version is 1.24.0 or higher as `go mod` support and other api is needed.
|
||||||
See [here](https://github.com/golang/go/wiki/Modules) for `go mod` details.
|
See [here](https://github.com/golang/go/wiki/Modules) for `go mod` details.
|
||||||
Then, check out the project and run `make` to compile the binary:
|
Then, check out the project and run `make` to compile the binary:
|
||||||
|
|
||||||
|
|||||||
@@ -113,9 +113,7 @@ func TestConfLoader(t *testing.T) {
|
|||||||
func TestDefaultLoader(t *testing.T) {
|
func TestDefaultLoader(t *testing.T) {
|
||||||
// The working directory matters because defaultLoader() looks for "Corefile" in the current directory
|
// The working directory matters because defaultLoader() looks for "Corefile" in the current directory
|
||||||
tmpDir := t.TempDir()
|
tmpDir := t.TempDir()
|
||||||
if err := os.Chdir(tmpDir); err != nil {
|
t.Chdir(tmpDir)
|
||||||
t.Fatalf("Failed to change to temp directory: %v", err)
|
|
||||||
}
|
|
||||||
|
|
||||||
// Test without Corefile
|
// Test without Corefile
|
||||||
input, err := defaultLoader("dns")
|
input, err := defaultLoader("dns")
|
||||||
|
|||||||
2
go.mod
2
go.mod
@@ -2,7 +2,7 @@ module github.com/coredns/coredns
|
|||||||
|
|
||||||
// Note this minimum version requirement. CoreDNS supports the last two
|
// Note this minimum version requirement. CoreDNS supports the last two
|
||||||
// Go versions. This follows the upstream Go project support.
|
// Go versions. This follows the upstream Go project support.
|
||||||
go 1.23.0
|
go 1.24.0
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/Azure/azure-sdk-for-go v68.0.0+incompatible
|
github.com/Azure/azure-sdk-for-go v68.0.0+incompatible
|
||||||
|
|||||||
Reference in New Issue
Block a user