Skip to content

Commit 5803059

Browse files
authored
Update dependencies go 1.24.0 and CoreDNS 1.12.3
Update dependencies and improve contributing guidelines
2 parents b2f1877 + 9c5f1c5 commit 5803059

File tree

9 files changed

+91
-92
lines changed

9 files changed

+91
-92
lines changed

.github/dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ updates:
33
- package-ecosystem: "gomod"
44
directory: "/"
55
schedule:
6-
interval: "weekly"
6+
interval: "monthly"
77

88
- package-ecosystem: "github-actions"
99
directory: ".github"
1010
schedule:
11-
interval: "weekly"
11+
interval: "monthly"
1212

1313
- package-ecosystem: "docker"
1414
directory: "/"
1515
schedule:
16-
interval: "weekly"
16+
interval: "monthly"

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
platform: [linux/amd64, linux/386]
1717

1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v5
2020

2121
- name: Build the Docker image
2222
run: |

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
dockerhub:
1212
runs-on: ubuntu-24.04
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v5
1515

1616
- name: Build the Docker image
1717
run: |

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ permissions:
99
contents: write
1010

1111
env:
12-
COREDNS_VERSION: "1.12.2"
13-
GO_VERSION: "1.23"
12+
COREDNS_VERSION: "1.12.3"
13+
GO_VERSION: "1.24"
1414

1515
jobs:
1616
release:
@@ -23,14 +23,14 @@ jobs:
2323
go-version: ${{ env.GO_VERSION }}
2424

2525
- name: Checkout coredns
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@v5
2727
with:
2828
repository: coredns/coredns
2929
ref: v${{ env.COREDNS_VERSION }}
3030
path: coredns
3131

3232
- name: Checkout gslb plugin
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@v5
3434
with:
3535
path: coredns-gslb
3636

.github/workflows/testing.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ permissions:
1111
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
1212

1313
env:
14-
GOLANGCI_LINT_VERSION: "v2.1.6"
14+
GOLANGCI_LINT_VERSION: "v2.4.0"
1515

1616
jobs:
1717
unit_tests:
1818
runs-on: ubuntu-24.04
1919

2020
strategy:
2121
matrix:
22-
go-version: ['1.23', '1.24']
22+
go-version: ['1.24']
2323

2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v5
2626
- uses: actions/setup-go@v5
2727

2828
- uses: actions/setup-go@v5
@@ -52,7 +52,7 @@ jobs:
5252
runs-on: ubuntu-latest
5353
steps:
5454
- name: Checkout code
55-
uses: actions/checkout@v3
55+
uses: actions/checkout@v5
5656

5757
- name: Set up Docker Compose and dig
5858
run: |
@@ -141,7 +141,7 @@ jobs:
141141
runs-on: ubuntu-latest
142142
steps:
143143
- name: Checkout code
144-
uses: actions/checkout@v3
144+
uses: actions/checkout@v5
145145

146146
- name: Set up Docker Compose and dig
147147
run: |

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,11 @@ Execute linter before to commit
129129
```bash
130130
make lint
131131
```
132+
# Update CoreDNS
133+
134+
```bash
135+
go mod edit -go=1.24
136+
go get github.com/coredns/coredns@v1.12.3
137+
go get github.com/miekg/dns@v1.1.68
138+
go mod tidy
139+
```

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.23-bookworm AS builder
1+
FROM golang:1.24-bookworm AS builder
22

33
# Set the GOPATH and create directories for CoreDNS and the GSLB plugin
44
WORKDIR /go/src
@@ -7,7 +7,7 @@ WORKDIR /go/src
77
COPY . /go/src/gslb/
88

99
# Build CoreDNS with the GSLB plugin
10-
ARG COREDNS_VERSION=v1.12.2
10+
ARG COREDNS_VERSION=v1.12.3
1111
ARG GSLB_VERSION=dev
1212
RUN git clone https://github.com/coredns/coredns.git /coredns && \
1313
cd /coredns && \

go.mod

Lines changed: 21 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
module github.com/dmachard/coredns-gslb
22

3-
go 1.23.0
4-
5-
toolchain go1.23.4
3+
go 1.24
64

75
require (
86
github.com/coredns/caddy v1.1.2-0.20241029205200-8de985351a98
9-
github.com/coredns/coredns v1.12.2
7+
github.com/coredns/coredns v1.12.3
108
github.com/creasty/defaults v1.8.0
11-
github.com/miekg/dns v1.1.66
9+
github.com/go-sql-driver/mysql v1.9.3
10+
github.com/melbahja/goph v1.4.0
11+
github.com/miekg/dns v1.1.68
12+
github.com/oschwald/geoip2-golang v1.13.0
1213
github.com/prometheus-community/pro-bing v0.7.0
1314
github.com/prometheus/client_golang v1.22.0
1415
github.com/stretchr/testify v1.10.0
16+
github.com/yuin/gopher-lua v1.1.1
17+
golang.org/x/crypto v0.40.0
18+
google.golang.org/grpc v1.73.0
1519
gopkg.in/fsnotify.v1 v1.4.7
1620
gopkg.in/yaml.v3 v3.0.1
1721
)
@@ -23,41 +27,32 @@ require (
2327
github.com/cespare/xxhash/v2 v2.3.0 // indirect
2428
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
2529
github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568 // indirect
26-
github.com/fsnotify/fsnotify v1.8.0 // indirect
27-
github.com/go-sql-driver/mysql v1.9.3 // indirect
28-
github.com/go-task/slim-sprig/v3 v3.0.0 // indirect
29-
github.com/google/pprof v0.0.0-20241210010833-40e02aabc2ad // indirect
30+
github.com/fsnotify/fsnotify v1.9.0 // indirect
3031
github.com/google/uuid v1.6.0 // indirect
3132
github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect
3233
github.com/kr/fs v0.1.0 // indirect
3334
github.com/kr/text v0.2.0 // indirect
3435
github.com/kylelemons/godebug v1.1.0 // indirect
35-
github.com/melbahja/goph v1.4.0 // indirect
3636
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
37-
github.com/onsi/ginkgo/v2 v2.22.1 // indirect
3837
github.com/opentracing/opentracing-go v1.2.0 // indirect
39-
github.com/oschwald/geoip2-golang v1.11.0 // indirect
4038
github.com/oschwald/maxminddb-golang v1.13.0 // indirect
4139
github.com/pkg/errors v0.9.1 // indirect
4240
github.com/pkg/sftp v1.13.5 // indirect
4341
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
4442
github.com/prometheus/client_model v0.6.2 // indirect
45-
github.com/prometheus/common v0.64.0 // indirect
43+
github.com/prometheus/common v0.65.0 // indirect
4644
github.com/prometheus/procfs v0.15.1 // indirect
47-
github.com/quic-go/quic-go v0.52.0 // indirect
48-
github.com/rogpeppe/go-internal v1.13.1 // indirect
45+
github.com/quic-go/quic-go v0.54.0 // indirect
46+
github.com/rogpeppe/go-internal v1.14.1 // indirect
4947
github.com/stretchr/objx v0.5.2 // indirect
50-
github.com/yuin/gopher-lua v1.1.1 // indirect
51-
go.opentelemetry.io/otel/sdk/metric v1.35.0 // indirect
48+
go.opentelemetry.io/otel/sdk/metric v1.36.0 // indirect
5249
go.uber.org/mock v0.5.0 // indirect
53-
golang.org/x/crypto v0.38.0 // indirect
54-
golang.org/x/mod v0.24.0 // indirect
55-
golang.org/x/net v0.40.0 // indirect
56-
golang.org/x/sync v0.14.0 // indirect
57-
golang.org/x/sys v0.33.0 // indirect
58-
golang.org/x/text v0.25.0 // indirect
59-
golang.org/x/tools v0.32.0 // indirect
60-
google.golang.org/genproto/googleapis/rpc v0.0.0-20250512202823-5a2f75b736a9 // indirect
61-
google.golang.org/grpc v1.72.2 // indirect
50+
golang.org/x/mod v0.25.0 // indirect
51+
golang.org/x/net v0.42.0 // indirect
52+
golang.org/x/sync v0.16.0 // indirect
53+
golang.org/x/sys v0.34.0 // indirect
54+
golang.org/x/text v0.27.0 // indirect
55+
golang.org/x/tools v0.34.0 // indirect
56+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250715232539-7130f93afb79 // indirect
6257
google.golang.org/protobuf v1.36.6 // indirect
6358
)

0 commit comments

Comments
 (0)