Skip to content

Commit b1acbf8

Browse files
committed
build: use Go 1.25 and trixie
golangci-lint 2.4.0 deprecates wsl and suggests wsl_v5 which finds many new places to fix. Leave these alone and simply disable wsl. noctx linter errors on net.Listen() and prefers ListenConfig. Signed-off-by: Mikko Ylinen <[email protected]>
1 parent c81472c commit b1acbf8

30 files changed

+40
-38
lines changed

.github/workflows/lib-validate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- name: golangci-lint
4747
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v7
4848
with:
49-
version: v2.1.6
49+
version: v2.4.0
5050
args: -v --timeout 5m
5151
build:
5252
name: Build and check device plugins

.golangci.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ linters:
3131
- unconvert
3232
- unused
3333
- whitespace
34-
- wsl
3534
settings:
3635
gocognit:
3736
min-complexity: 31
@@ -62,16 +61,11 @@ linters:
6261
- linters:
6362
- gocognit
6463
- gocyclo
65-
- wsl
6664
path: _test\.go
6765
- linters:
6866
- gocognit
6967
- gocyclo
70-
- wsl
7168
path: test/e2e/
72-
- linters:
73-
- wsl
74-
path: cmd/gpu_fakedev/
7569
- linters:
7670
- goconst
7771
path: (.+)_test\.go

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ EXTRA_BUILD_ARGS ?= ""
1010

1111
CERT_MANAGER_VERSION ?= v1.15.2
1212
CONTROLLER_GEN_VERSION ?= v0.17.0
13-
GOLANGCI_LINT_VERSION ?= v2.1.6
13+
GOLANGCI_LINT_VERSION ?= v2.4.0
1414
KIND_VERSION ?= v0.23.0
1515
GOLICENSES_VERSION ?= v1.6.0
1616
# Default bundle image tag
@@ -170,7 +170,7 @@ e2e-spr:
170170

171171
pre-pull:
172172
ifeq ($(TAG),devel)
173-
@$(BUILDER) pull golang:1.24-bookworm
173+
@$(BUILDER) pull golang:1.25-trixie
174174
@$(BUILDER) pull debian:unstable-slim
175175
@$(BUILDER) pull ubuntu:22.04
176176
endif

build/docker/build-image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fi
3131

3232
BUILD_ARGS="${BUILD_ARGS} \
3333
--build-arg FINAL_BASE=gcr.io/distroless/static \
34-
--build-arg BUILD_BASE=golang:1.24-bookworm \
34+
--build-arg BUILD_BASE=golang:1.25-trixie \
3535
--build-arg FINAL_BASE_DYN=debian:unstable-slim \
3636
--build-arg ROCKYLINUX=0"
3737

build/docker/intel-deviceplugin-operator.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
3434
##
3535
## This is used on release branches before tagging a stable version.
3636
## The main branch defaults to using the latest Golang base image.
37-
ARG GOLANG_BASE=golang:1.24-bookworm
37+
ARG GOLANG_BASE=golang:1.25-trixie
3838
###
3939
FROM ${GOLANG_BASE} AS builder
4040
ARG DIR=/intel-device-plugins-for-kubernetes

build/docker/intel-dlb-initcontainer.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
3333
##
3434
## This is used on release branches before tagging a stable version.
3535
## The main branch defaults to using the latest Golang base image.
36-
ARG GOLANG_BASE=golang:1.24-bookworm
36+
ARG GOLANG_BASE=golang:1.25-trixie
3737
###
3838
FROM ${GOLANG_BASE} AS builder
3939
ARG DIR=/intel-device-plugins-for-kubernetes

build/docker/intel-dlb-plugin.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
3434
##
3535
## This is used on release branches before tagging a stable version.
3636
## The main branch defaults to using the latest Golang base image.
37-
ARG GOLANG_BASE=golang:1.24-bookworm
37+
ARG GOLANG_BASE=golang:1.25-trixie
3838
###
3939
FROM ${GOLANG_BASE} AS builder
4040
ARG DIR=/intel-device-plugins-for-kubernetes

build/docker/intel-dsa-plugin.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
3434
##
3535
## This is used on release branches before tagging a stable version.
3636
## The main branch defaults to using the latest Golang base image.
37-
ARG GOLANG_BASE=golang:1.24-bookworm
37+
ARG GOLANG_BASE=golang:1.25-trixie
3838
###
3939
FROM ${GOLANG_BASE} AS builder
4040
ARG DIR=/intel-device-plugins-for-kubernetes

build/docker/intel-fpga-admissionwebhook.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
3434
##
3535
## This is used on release branches before tagging a stable version.
3636
## The main branch defaults to using the latest Golang base image.
37-
ARG GOLANG_BASE=golang:1.24-bookworm
37+
ARG GOLANG_BASE=golang:1.25-trixie
3838
###
3939
FROM ${GOLANG_BASE} AS builder
4040
ARG DIR=/intel-device-plugins-for-kubernetes

build/docker/intel-fpga-initcontainer.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ ARG FINAL_BASE=registry.access.redhat.com/ubi9-micro:latest
3333
##
3434
## This is used on release branches before tagging a stable version.
3535
## The main branch defaults to using the latest Golang base image.
36-
ARG GOLANG_BASE=golang:1.24-bookworm
36+
ARG GOLANG_BASE=golang:1.25-trixie
3737
###
3838
FROM ${GOLANG_BASE} AS builder
3939
ARG DIR=/intel-device-plugins-for-kubernetes

0 commit comments

Comments
 (0)