Skip to content

Commit db9d6ef

Browse files
authored
Pin go toolchain version to 1.26.1 (#695)
1 parent 31695f0 commit db9d6ef

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Build the libvirt-provider binary
2-
FROM --platform=$BUILDPLATFORM golang:1.26-bookworm AS builder
2+
FROM --platform=$BUILDPLATFORM golang:1.26.1-bookworm AS builder
3+
4+
# Prevent Go from downloading a different toolchain at build time.
5+
# The Docker image IS the toolchain — if go.mod requires something newer,
6+
# we want a loud failure, not a silent download.
7+
ENV GOTOOLCHAIN=local
38

49
WORKDIR /workspace
510

@@ -50,7 +55,7 @@ RUN if [ "$TARGETARCH" = "$BUILDARCH" ]; then \
5055
mv /go/bin/linux_$TARGETARCH/irictl-machine /workspace/irictl-machine; \
5156
fi
5257

53-
58+
5459
FROM busybox:1.37.0-uclibc AS busybox
5560

5661
# Since we're leveraging apt to pull in dependencies, we use `gcr.io/distroless/base` because it includes glibc.

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ module github.com/ironcore-dev/libvirt-provider
22

33
go 1.24.1
44

5+
toolchain go1.26.1
6+
57
require (
68
github.com/blang/semver/v4 v4.0.0
79
github.com/digitalocean/go-libvirt v0.0.0-20250616175656-5843751af96c

0 commit comments

Comments
 (0)