Skip to content

Commit

Permalink
chore: upgrade Go from 1.21 -> 1.22 (#8914)
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasBlaskey authored Feb 28, 2024
1 parent 28c385c commit 4c50601
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .circleci/real_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ commands:
reinstall-go:
steps:
- run: sudo rm -rf /usr/local/go # Remove system go.
- run: tools/scripts/retry.sh curl --retry-connrefused --retry 10 https://dl.google.com/go/go1.21.0.linux-amd64.tar.gz -o /tmp/go.linux-amd64.tar.gz
- run: tools/scripts/retry.sh curl --retry-connrefused --retry 10 https://dl.google.com/go/go1.22.0.linux-amd64.tar.gz -o /tmp/go.linux-amd64.tar.gz
- run: sudo tar -C /usr/local -xzf /tmp/go.linux-amd64.tar.gz
- run: echo 'export PATH=$PATH:$HOME/go/bin' >> $BASH_ENV

Expand Down Expand Up @@ -1706,6 +1706,7 @@ jobs:
root: .
paths:
- master/coverage.out
- master/internal/mocks

test-intg-agent:
machine:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ get-deps-go:
$(MAKE) get-deps-agent
$(MAKE) get-deps-proto

# Go versions may look like goM, goM.N, or goM.N.P. Only 1.21.* is supported.
supported_go_minor_version = go1.21
# Go versions may look like goM, goM.N, or goM.N.P. Only 1.22.* is supported.
supported_go_minor_version = go1.22
system_go_version := $(shell go version | sed 's/.*\(go[[:digit:]][[:digit:].]*\).*/\1/')
.PHONY: go-version-check
go-version-check:
Expand Down
4 changes: 2 additions & 2 deletions docs/setup-cluster/k8s/k8s-dev-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ dependencies:
DEBIAN_FRONTEND=noninteractive add-apt-repository -y ppa:deadsnakes/ppa
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends git-all python3.8-dev python3.8-venv default-jre curl build-essential libkrb5-dev unzip jq
# Download and install Go 1.21.
curl -L https://go.dev/dl/go1.21.0.linux-amd64.tar.gz | tar -xz
# Download and install Go 1.22.
curl -L https://go.dev/dl/go1.22.0.linux-amd64.tar.gz | tar -xz
chown -R root:root go
mv go /usr/local/
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/determined-ai/determined

go 1.21
go 1.22

require (
cloud.google.com/go v0.94.0
Expand Down
2 changes: 1 addition & 1 deletion master/get-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ go install github.com/bufbuild/buf/cmd/[email protected]
go install golang.org/x/tools/cmd/[email protected]
go install github.com/goreleaser/[email protected]
go install github.com/swaggo/swag/cmd/[email protected]
go install github.com/vektra/mockery/v2@v2.20.0
go install github.com/vektra/mockery/v2@v2.42.0
go install gotest.tools/[email protected]

0 comments on commit 4c50601

Please sign in to comment.