Skip to content

Commit ff200f9

Browse files
authored
Merge pull request #1814 from mythi/PR-2024-020
build: use Go 1.23.0
2 parents 404508a + 7e5b280 commit ff200f9

26 files changed

+34
-29
lines changed

.github/workflows/lib-validate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: golangci-lint
4343
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6
4444
with:
45-
version: v1.57.2
45+
version: v1.60.3
4646
args: -v --timeout 5m
4747
build:
4848
name: Build and check device plugins

.golangci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ linters:
1212
- bodyclose
1313
- dogsled
1414
- errcheck
15-
- exportloopref
15+
- copyloopvar
1616
- gocognit
1717
- goconst
1818
- gocyclo
1919
- godot
20-
- goerr113
20+
- err113
2121
- gofmt
2222
- goimports
2323
- gomodguard
@@ -62,6 +62,9 @@ linters-settings:
6262

6363
issues:
6464
exclude-rules:
65+
- linters:
66+
- gosec
67+
text: "G115"
6568
- path: _test\.go
6669
linters:
6770
- gocognit

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.16.1
13-
GOLANGCI_LINT_VERSION ?= v1.57.2
13+
GOLANGCI_LINT_VERSION ?= v1.60.3
1414
KIND_VERSION ?= v0.23.0
1515
GOLICENSES_VERSION ?= v1.6.0
1616
# Default bundle image tag
@@ -176,7 +176,7 @@ e2e-spr:
176176

177177
pre-pull:
178178
ifeq ($(TAG),devel)
179-
@$(BUILDER) pull golang:1.22-bookworm
179+
@$(BUILDER) pull golang:1.23-bookworm
180180
@$(BUILDER) pull debian:unstable-slim
181181
@$(BUILDER) pull ubuntu:22.04
182182
endif

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.22-bookworm
37+
ARG GOLANG_BASE=golang:1.23-bookworm
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.22-bookworm
36+
ARG GOLANG_BASE=golang:1.23-bookworm
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.22-bookworm
37+
ARG GOLANG_BASE=golang:1.23-bookworm
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.22-bookworm
37+
ARG GOLANG_BASE=golang:1.23-bookworm
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.22-bookworm
37+
ARG GOLANG_BASE=golang:1.23-bookworm
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.22-bookworm
36+
ARG GOLANG_BASE=golang:1.23-bookworm
3737
###
3838
FROM ${GOLANG_BASE} as builder
3939
ARG DIR=/intel-device-plugins-for-kubernetes

build/docker/intel-fpga-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.22-bookworm
37+
ARG GOLANG_BASE=golang:1.23-bookworm
3838
###
3939
FROM ${GOLANG_BASE} as builder
4040
ARG DIR=/intel-device-plugins-for-kubernetes

0 commit comments

Comments
 (0)