Skip to content

Commit

Permalink
Update Go to 1.21 (#7823)
Browse files Browse the repository at this point in the history
* Update to Go 1.21.0

* update go directive to allow optional patch versions

---------

Co-authored-by: Julien Schmidt <julienschmidt@users.noreply.github.com>
  • Loading branch information
jakecoffman and julienschmidt authored Aug 17, 2023
1 parent 8347e1e commit 0491f11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions go_modules/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ ARG TARGETARCH
USER root

# Install Go. See https://go.dev/dl/ for updates
ARG GOLANG_VERSION=1.20.7
ARG GOLANG_VERSION=1.21.0

# You can find the SHA's here: https://go.dev/dl/
ARG GOLANG_AMD64_CHECKSUM=f0a87f1bcae91c4b69f8dc2bc6d7e6bfcd7524fceec130af525058c0c17b1b44
ARG GOLANG_ARM64_CHECKSUM=44781ae3b153c3b07651d93b6bc554e835a36e2d72a696281c1e4dad9efffe43
ARG GOLANG_AMD64_CHECKSUM=d0398903a16ba2232b389fb31032ddf57cac34efda306a0eebac34f0965a0742
ARG GOLANG_ARM64_CHECKSUM=f3d4548edf9b22f26bbd49720350bbfe59d75b7090a1a2bff1afad8214febaf3

ENV PATH=/opt/go/bin:$PATH
RUN cd /tmp \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class GoModUpdater
/no space left on device/
].freeze

GO_MOD_VERSION = /^go 1\.[\d]+$/
GO_MOD_VERSION = /^go 1\.\d+(\.\d+)?$/

def initialize(dependencies:, dependency_files:, credentials:, repo_contents_path:,
directory:, options:)
Expand Down

0 comments on commit 0491f11

Please sign in to comment.