Skip to content

Commit

Permalink
MGMT-18230: Bump to go version 1.22
Browse files Browse the repository at this point in the history
In order to address a number of CVE's, a go version bump to v1.22 is recommended.
This PR changes to go version v1.22
  • Loading branch information
paul-maidment committed Nov 19, 2024
1 parent d65b670 commit a0b65b8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.assisted-service
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG RHEL_VERSION=9

FROM registry.access.redhat.com/ubi$RHEL_VERSION/go-toolset:1.21 AS golang
FROM registry.access.redhat.com/ubi$RHEL_VERSION/go-toolset:1.22.5 AS golang

ADD . /app
WORKDIR /app
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.assisted-service-build
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.access.redhat.com/ubi9/go-toolset:1.21 AS golang
FROM registry.access.redhat.com/ubi9/go-toolset:1.22.5 AS golang

RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.0
RUN go install gotest.tools/gotestsum@latest
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.assisted-service-debug
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM registry.access.redhat.com/ubi9/go-toolset:1.21 AS golang
FROM registry.access.redhat.com/ubi9/go-toolset:1.22.5 AS golang

RUN GOFLAGS=-mod=mod go install github.com/go-delve/delve/cmd/dlv@v1.21.2
RUN GOFLAGS=-mod=mod go install github.com/go-delve/delve/cmd/dlv@v1.22.1

FROM quay.io/centos/centos:stream9 AS builder

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/openshift/assisted-service

go 1.21
go 1.22

require (
github.com/IBM/netaddr v1.5.0
Expand Down

0 comments on commit a0b65b8

Please sign in to comment.