Skip to content

Commit

Permalink
Update to go 1.22
Browse files Browse the repository at this point in the history
Ref: EC-598

Signed-off-by: Luiz Carvalho <[email protected]>
  • Loading branch information
lcarva committed Aug 30, 2024
1 parent 014a488 commit fb83421
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
golang 1.21.9
golang 1.22.5
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

## Build

FROM docker.io/library/golang:1.21 AS build
FROM docker.io/library/golang:1.22 AS build

ARG TARGETOS
ARG TARGETARCH
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile.dist
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
## Build

# This works fine but will produce an EC violation
# FROM docker.io/library/golang:1.21 AS build
# FROM docker.io/library/golang:1.22 AS build

FROM registry.access.redhat.com/ubi9/go-toolset:1.21@sha256:ae17d73e70a966f39ef4dfca74241e3ca4374cd1198b02c30ea0748b8dcc83a6 AS build
# Ideally, use the official image from Red Hat, but a 1.22 release does not yet exist.
# FROM registry.access.redhat.com/ubi9/go-toolset:1.21@sha256:ae17d73e70a966f39ef4dfca74241e3ca4374cd1198b02c30ea0748b8dcc83a6 AS build
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:v1.22@sha256:859b38e6f53f49350402ca0a8dc342402f0afd8434c2f8984a7a3e714173cdca AS build

ARG TARGETOS
ARG TARGETARCH
Expand Down
2 changes: 1 addition & 1 deletion acceptance/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/enterprise-contract/ec-cli/acceptance

go 1.21.4
go 1.22.5

require (
cuelang.org/go v0.9.2
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/enterprise-contract/ec-cli

go 1.21.9
go 1.22.5

require (
cuelang.org/go v0.9.2
Expand Down
2 changes: 1 addition & 1 deletion tools/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/enterprise-contract/ec-cli/tools

go 1.21.4
go 1.22.5

require (
github.com/daixiang0/gci v0.13.4
Expand Down

0 comments on commit fb83421

Please sign in to comment.