Skip to content

Commit 437ff91

Browse files
authored
Update to go-1.24 and golangci-lint v2 (#43)
1 parent 153c4ab commit 437ff91

File tree

10 files changed

+101
-113
lines changed

10 files changed

+101
-113
lines changed

.github/workflows/docker.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ jobs:
4141
cache: false
4242

4343
- name: Lint
44-
uses: golangci/golangci-lint-action@v6
44+
uses: golangci/golangci-lint-action@v7
4545
with:
46-
args: --build-tags integration -p bugs -p unused -D protogetter --timeout=5m
46+
args: --build-tags integration -D protogetter --timeout=5m
4747

4848
- name: Make tag
4949
run: |
@@ -52,14 +52,14 @@ jobs:
5252
[ "${GITHUB_EVENT_NAME}" == 'push' ] && echo "tag=latest" >> $GITHUB_ENV || true
5353
5454
- name: Push server image
55-
uses: docker/build-push-action@v5
55+
uses: docker/build-push-action@v6
5656
with:
5757
context: .
5858
push: true
5959
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.tag }}
6060

6161
- name: Push client image
62-
uses: docker/build-push-action@v5
62+
uses: docker/build-push-action@v6
6363
with:
6464
context: .
6565
file: Dockerfile.client

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM golang:1.23-bookworm AS builder
1+
FROM golang:1.24-bookworm AS builder
22
COPY / /work
33
WORKDIR /work
44
RUN make server
55

6-
FROM gcr.io/distroless/static-debian12
6+
FROM gcr.io/distroless/static-debian12:nonroot
77
COPY --from=builder /work/bin/server /server
88
ENV SERVER_PORT=50051
99
EXPOSE ${SERVER_PORT}

Dockerfile.client

Lines changed: 1 addition & 1 deletion
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
COPY / /work
33
WORKDIR /work
44
RUN apt-get update \

api/proto/droptailer.pb.go

Lines changed: 33 additions & 79 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
module github.com/metal-pod/droptailer
22

3-
go 1.23
3+
go 1.24
44

55
require (
66
github.com/coreos/go-systemd/v22 v22.5.0
77
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0
8-
google.golang.org/grpc v1.67.1
9-
google.golang.org/protobuf v1.34.2
8+
google.golang.org/grpc v1.71.1
9+
google.golang.org/protobuf v1.36.6
1010
)
1111

1212
require (
13-
golang.org/x/net v0.29.0 // indirect
14-
golang.org/x/sys v0.25.0 // indirect
15-
golang.org/x/text v0.18.0 // indirect
16-
google.golang.org/genproto/googleapis/rpc v0.0.0-20240930140551-af27646dc61f // indirect
13+
golang.org/x/net v0.39.0 // indirect
14+
golang.org/x/sys v0.32.0 // indirect
15+
golang.org/x/text v0.24.0 // indirect
16+
google.golang.org/genproto/googleapis/rpc v0.0.0-20250414145226-207652e42e2e // indirect
1717
)

0 commit comments

Comments
 (0)