From 86ddbe9e1c419743389e7e46151eb33a51cbddb1 Mon Sep 17 00:00:00 2001 From: Takuto Ikuta Date: Fri, 30 Jun 2023 17:52:48 +0900 Subject: [PATCH] update go toolchain to 1.20.5 --- .bazelci/presubmit.yml | 12 ++++++------ WORKSPACE | 8 ++++---- go.mod | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml index ab6d36b24..50e7604bf 100644 --- a/.bazelci/presubmit.yml +++ b/.bazelci/presubmit.yml @@ -3,12 +3,12 @@ validate_config: 1 tasks: ubuntu1804: environment: - GO_HOME: "$HOME/go-1.19.5" + GO_HOME: "$HOME/go-1.20.5" PATH: "$PATH:$GO_HOME/bin" shell_commands: - - "echo --- Downloading and extracting Go 1.19.5 to $GO_HOME" + - "echo --- Downloading and extracting Go 1.20.5 to $GO_HOME" - "mkdir $GO_HOME" - - "curl https://mirror.bazel.build/golang.org/dl/go1.19.5.linux-amd64.tar.gz | tar xvz --strip-components=1 -C $GO_HOME" + - "curl https://mirror.bazel.build/go.dev/dl/go1.20.5.linux-amd64.tar.gz | tar xvz --strip-components=1 -C $GO_HOME" - "echo +++ Check go format" - "./check-gofmt.sh `find go -name '*.go'`" - "./check-golint.sh" @@ -23,12 +23,12 @@ tasks: platform: ubuntu1804 name: "go build / test" environment: - GO_HOME: "$HOME/go-1.19.5" + GO_HOME: "$HOME/go-1.20.5" PATH: "$PATH:$GO_HOME/bin" shell_commands: - - "echo --- Downloading and extracting Go 1.19.5 to $GO_HOME" + - "echo --- Downloading and extracting Go 1.20.5 to $GO_HOME" - "mkdir $GO_HOME" - - "curl https://mirror.bazel.build/golang.org/dl/go1.19.5.linux-amd64.tar.gz | tar xvz --strip-components=1 -C $GO_HOME" + - "curl https://mirror.bazel.build/go.dev/dl/go1.20.5.linux-amd64.tar.gz | tar xvz --strip-components=1 -C $GO_HOME" - "echo +++ Running go build" - "go build ./..." - "echo +++ Running go test" diff --git a/WORKSPACE b/WORKSPACE index 06390f11b..8b8f14b66 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -4,10 +4,10 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "io_bazel_rules_go", - sha256 = "6b65cb7917b4d1709f9410ffe00ecf3e160edf674b78c54a894471320862184f", + sha256 = "51dc53293afe317d2696d4d6433a4c33feedb7748a9e352072e2ec3c0dafd2c6", urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.39.0/rules_go-v0.39.0.zip", - "https://github.com/bazelbuild/rules_go/releases/download/v0.39.0/rules_go-v0.39.0.zip", + "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.40.1/rules_go-v0.40.1.zip", + "https://github.com/bazelbuild/rules_go/releases/download/v0.40.1/rules_go-v0.40.1.zip", ], ) @@ -25,7 +25,7 @@ load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_depe go_rules_dependencies() -go_register_toolchains(version = "1.19.8") +go_register_toolchains(version = "1.20.5") # Need "build_file_proto_mode" argument. go_repository( diff --git a/go.mod b/go.mod index 52968e65b..2209f4cf6 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/bazelbuild/remote-apis-sdks -go 1.19 +go 1.20 require ( github.com/bazelbuild/remote-apis v0.0.0-20230411132548-35aee1c4a425