Skip to content

Commit

Permalink
examples/teleport-usage: Bump Go to 1.22 for math/rand/v2 (#49863)
Browse files Browse the repository at this point in the history
Bump Go to 1.22 in `go.mod` and the `Dockerfile` as that is the first
version with `math/rand/v2`. bcbfa81
changed this package to use `math/rand/v2` but the docker build failed
because it uses Go 1.21.
  • Loading branch information
camscale authored Dec 6, 2024
1 parent de8e27f commit 338b303
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/teleport-usage/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion examples/teleport-usage/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module usage-script

go 1.19
go 1.22

require (
github.com/aws/aws-sdk-go v1.47.4
Expand Down

0 comments on commit 338b303

Please sign in to comment.