Skip to content

Commit

Permalink
chore: update Go version to 1.21.1 and introduce toolchain directive
Browse files Browse the repository at this point in the history
The toolchain directive was introduced in Go 1.21.
  • Loading branch information
cat2608 committed Sep 22, 2023
1 parent d599edc commit b075df6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .circleci/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM --platform=$TARGETPLATFORM golang:1.20-bullseye

FROM --platform=$TARGETPLATFORM golang:1.21.1-bullseye
# install "normal" stuff

ARG NODEVERSION
Expand Down
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ parameters:
go_version:
type: string
# https://go.dev/doc/devel/release
default: '1.20.6'
default: '1.21.1'
aws_version:
type: string
# https://github.com/aws/aws-cli/blob/v2/CHANGELOG.rst
Expand Down
4 changes: 3 additions & 1 deletion cliv2/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module github.com/snyk/cli/cliv2

go 1.18
go 1.21

toolchain go1.21.0

require (
github.com/elazarl/goproxy v0.0.0-20230808193330-2592e75ae04a
Expand Down

0 comments on commit b075df6

Please sign in to comment.