From 807a0d2a42a16d51aebaf5f7486fa536bf5ac53b Mon Sep 17 00:00:00 2001 From: Cam Hutchison Date: Fri, 6 Dec 2024 14:52:41 +1100 Subject: [PATCH] examples/teleport-usage: Bump Go to 1.22 for math/rand/v2 Bump Go to 1.22 in `go.mod` and the `Dockerfile` as that is the first version with `math/rand/v2`. bcbfa8192e4c60c33599fb7e38016804d26f958d changed this package to use `math/rand/v2` but the docker build failed because it uses Go 1.21. --- examples/teleport-usage/Dockerfile | 2 +- examples/teleport-usage/go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/teleport-usage/Dockerfile b/examples/teleport-usage/Dockerfile index ba959b0c00107..aa9f485221143 100644 --- a/examples/teleport-usage/Dockerfile +++ b/examples/teleport-usage/Dockerfile @@ -1,6 +1,6 @@ ARG BASE_IMAGE=gcr.io/distroless/static-debian12 -FROM golang:1.21-bookworm as builder +FROM golang:1.22-bookworm as builder WORKDIR /go/src/github.com/gravitational/teleport/examples/teleport-usage diff --git a/examples/teleport-usage/go.mod b/examples/teleport-usage/go.mod index eaf6665957da9..9c009bebf497a 100644 --- a/examples/teleport-usage/go.mod +++ b/examples/teleport-usage/go.mod @@ -1,6 +1,6 @@ module usage-script -go 1.19 +go 1.22 require ( github.com/aws/aws-sdk-go v1.47.4