Skip to content

Commit

Permalink
Use latest go in UBI go-toolset
Browse files Browse the repository at this point in the history
We won't see go 1.23 there soon so we now stick to download the latest
golang version manually to be able to upgrade all our dependencies.

Signed-off-by: Sascha Grunert <[email protected]>
  • Loading branch information
saschagrunert committed Dec 5, 2024
1 parent 428e27d commit ac17759
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions Dockerfile.ubi
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ RUN dnf install -y \
ADD . /work
RUN mkdir -p build

# Use latest golang
RUN GO_VERSION=$(curl -sSfL "https://go.dev/VERSION?m=text" | head -n1) && \
curl -sSfL -o- https://go.dev/dl/$GO_VERSION.linux-amd64.tar.gz | \
tar xfz - -C /usr/local
ENV PATH="/usr/local/go/bin:$PATH"

ARG APPARMOR_ENABLED=0
ARG BPF_ENABLED=0

Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module sigs.k8s.io/security-profiles-operator

go 1.22.7

toolchain go1.23.2
go 1.23

require (
github.com/acobaugh/osrelease v0.1.0
Expand Down

0 comments on commit ac17759

Please sign in to comment.