Skip to content

Commit a6a1621

Browse files
Copilotmythi
andauthored
build: use Go 1.26 (#2246)
Move to build using the latest Go v1.26 release. 1.26 has a regression with enabling spectre flags for the standard library assembler builds so drop spectre from all= for now. Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: mythi <1049565+mythi@users.noreply.github.com> Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
1 parent bcd6cd7 commit a6a1621

28 files changed

Lines changed: 48 additions & 48 deletions

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ e2e-operator:
188188

189189
pre-pull:
190190
ifeq ($(TAG),devel)
191-
@$(BUILDER) pull golang:1.25-trixie
191+
@$(BUILDER) pull golang:1.26-trixie
192192
@$(BUILDER) pull debian:unstable-slim
193193
@$(BUILDER) pull ubuntu:22.04
194194
endif

build/docker/build-image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if [ -d $(dirname $0)/../../vendor ] ; then
3030
BUILD_ARGS="${BUILD_ARGS} --build-arg DIR=/go/src/github.com/intel/intel-device-plugins-for-kubernetes --build-arg GO111MODULE=off"
3131
fi
3232

33-
GOLANG_BASE=golang:1.25-trixie
33+
GOLANG_BASE=golang:1.26-trixie
3434

3535
if [ "${UBI}" = '1' ]; then
3636
echo $DOCKERFILE | grep -q -e 'idxd-config' -e 'levelzero' && {

build/docker/intel-deviceplugin-operator.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ 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.25-trixie
37+
ARG GOLANG_BASE=golang:1.26-trixie
3838
###
3939
FROM ${GOLANG_BASE} AS builder
4040
ARG DIR=/intel-device-plugins-for-kubernetes
4141
ARG GO111MODULE=on
4242
ARG LDFLAGS="all=-w -s"
4343
ARG GOFLAGS="-trimpath"
4444
ARG GCFLAGS="all=-spectre=all -N -l"
45-
ARG ASMFLAGS="all=-spectre=all"
45+
ARG ASMFLAGS="-spectre=all"
4646
ARG GOLICENSES_VERSION
4747
ARG EP=/usr/local/bin/intel_deviceplugin_operator
4848
ARG CMD

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.25-trixie
36+
ARG GOLANG_BASE=golang:1.26-trixie
3737
###
3838
FROM ${GOLANG_BASE} AS builder
3939
ARG DIR=/intel-device-plugins-for-kubernetes

build/docker/intel-dlb-plugin.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ 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.25-trixie
37+
ARG GOLANG_BASE=golang:1.26-trixie
3838
###
3939
FROM ${GOLANG_BASE} AS builder
4040
ARG DIR=/intel-device-plugins-for-kubernetes
4141
ARG GO111MODULE=on
4242
ARG LDFLAGS="all=-w -s"
4343
ARG GOFLAGS="-trimpath"
4444
ARG GCFLAGS="all=-spectre=all -N -l"
45-
ARG ASMFLAGS="all=-spectre=all"
45+
ARG ASMFLAGS="-spectre=all"
4646
ARG GOLICENSES_VERSION
4747
ARG EP=/usr/local/bin/intel_dlb_device_plugin
4848
ARG CMD

build/docker/intel-dsa-plugin.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ 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.25-trixie
37+
ARG GOLANG_BASE=golang:1.26-trixie
3838
###
3939
FROM ${GOLANG_BASE} AS builder
4040
ARG DIR=/intel-device-plugins-for-kubernetes
4141
ARG GO111MODULE=on
4242
ARG LDFLAGS="all=-w -s"
4343
ARG GOFLAGS="-trimpath"
4444
ARG GCFLAGS="all=-spectre=all -N -l"
45-
ARG ASMFLAGS="all=-spectre=all"
45+
ARG ASMFLAGS="-spectre=all"
4646
ARG GOLICENSES_VERSION
4747
ARG EP=/usr/local/bin/intel_dsa_device_plugin
4848
ARG CMD

build/docker/intel-fpga-admissionwebhook.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ 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.25-trixie
37+
ARG GOLANG_BASE=golang:1.26-trixie
3838
###
3939
FROM ${GOLANG_BASE} AS builder
4040
ARG DIR=/intel-device-plugins-for-kubernetes
4141
ARG GO111MODULE=on
4242
ARG LDFLAGS="all=-w -s"
4343
ARG GOFLAGS="-trimpath"
4444
ARG GCFLAGS="all=-spectre=all -N -l"
45-
ARG ASMFLAGS="all=-spectre=all"
45+
ARG ASMFLAGS="-spectre=all"
4646
ARG GOLICENSES_VERSION
4747
ARG EP=/usr/local/bin/intel_fpga_admissionwebhook
4848
ARG CMD

build/docker/intel-fpga-initcontainer.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ 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.25-trixie
36+
ARG GOLANG_BASE=golang:1.26-trixie
3737
###
3838
FROM ${GOLANG_BASE} AS builder
3939
ARG DIR=/intel-device-plugins-for-kubernetes
4040
ARG GO111MODULE=on
4141
ARG LDFLAGS="all=-w -s"
4242
ARG GOFLAGS="-trimpath"
4343
ARG GCFLAGS="all=-spectre=all -N -l"
44-
ARG ASMFLAGS="all=-spectre=all"
44+
ARG ASMFLAGS="-spectre=all"
4545
ARG GOLICENSES_VERSION
4646
ARG CRI_HOOK=intel-fpga-crihook
4747
ARG CMD=fpga_crihook

build/docker/intel-fpga-plugin.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ 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.25-trixie
37+
ARG GOLANG_BASE=golang:1.26-trixie
3838
###
3939
FROM ${GOLANG_BASE} AS builder
4040
ARG DIR=/intel-device-plugins-for-kubernetes
4141
ARG GO111MODULE=on
4242
ARG LDFLAGS="all=-w -s"
4343
ARG GOFLAGS="-trimpath"
4444
ARG GCFLAGS="all=-spectre=all -N -l"
45-
ARG ASMFLAGS="all=-spectre=all"
45+
ARG ASMFLAGS="-spectre=all"
4646
ARG GOLICENSES_VERSION
4747
ARG EP=/usr/local/bin/intel_fpga_device_plugin
4848
ARG CMD

build/docker/intel-gpu-fakedev.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ 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.25-trixie
37+
ARG GOLANG_BASE=golang:1.26-trixie
3838
###
3939
FROM ${GOLANG_BASE} AS builder
4040
ARG DIR=/intel-device-plugins-for-kubernetes
4141
ARG GO111MODULE=on
4242
ARG LDFLAGS="all=-w -s"
4343
ARG GOFLAGS="-trimpath"
4444
ARG GCFLAGS="all=-spectre=all -N -l"
45-
ARG ASMFLAGS="all=-spectre=all"
45+
ARG ASMFLAGS="-spectre=all"
4646
ARG GOLICENSES_VERSION
4747
ARG EP=/usr/local/bin/intel_gpu_fakedev
4848
ARG CMD

0 commit comments

Comments
 (0)