From 4766afcae520eec998a90c6bfd012a5126994a02 Mon Sep 17 00:00:00 2001 From: Ricky Stewart Date: Tue, 30 Mar 2021 12:58:35 -0500 Subject: [PATCH] build: upgrade go to 1.15.10 Pick up a patch to a compiler bug (see #62521). * [ ] Adjust the Pebble tests to run in new version. * [x] Adjust version in Docker image ([source](./builder/Dockerfile)). * [x] Rebuild and push the Docker image (following [Basic Process](#basic-process)) * [x] Bump the version in `WORKSPACE` under `go_register_toolchains`. You may need to bump [rules_go](https://github.com/bazelbuild/rules_go/releases). * [x] Bump the version in `builder.sh` accordingly ([source](./builder.sh#L6)). * [ ] Bump the version in `go-version-check.sh` ([source](./go-version-check.sh)), unless bumping to a new patch release. * [ ] Bump the go version in `go.mod`. You may also need to rerun `make vendor_rebuild` if vendoring has changed. * [x] Bump the default installed version of Go in `bootstrap-debian.sh` ([source](./bootstrap/bootstrap-debian.sh#L40-42)). * [x] Replace other mentions of the older version of go (grep for `golang:` and `go`). * [ ] Update the `builder.dockerImage` parameter in the TeamCity [`Cockroach`](https://teamcity.cockroachdb.com/admin/editProject.html?projectId=Cockroach&tab=projectParams) and [`Internal`](https://teamcity.cockroachdb.com/admin/editProject.html?projectId=Internal&tab=projectParams) projects. * [ ] Adjust `GO_VERSION` in the TeamCity agent image ([setup script](./packer/teamcity-agent.sh)) and ask the Developer Infrastructure team to deploy new images. Resolves #62809. Release note (general change): Upgrade the CRDB binary to Go 1.15.10. --- WORKSPACE | 2 +- build/README.md | 2 +- build/bootstrap/bootstrap-debian.sh | 4 ++-- build/builder.sh | 2 +- build/builder/Dockerfile | 4 ++-- build/packer/teamcity-agent.sh | 23 ++++++++++++----------- 6 files changed, 19 insertions(+), 18 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index a70970f8b559..f2bf027f2790 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -98,7 +98,7 @@ load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_depe go_rules_dependencies() -go_register_toolchains(go_version = "1.15.6") +go_register_toolchains(go_version = "1.15.10") # Configure nodeJS. load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install") diff --git a/build/README.md b/build/README.md index 7142f7ee4eb1..9698d70a00fd 100644 --- a/build/README.md +++ b/build/README.md @@ -80,7 +80,7 @@ Please copy this checklist (based on [Basic Process](#basic-process)) into the r back to this document and perform these steps: * [ ] Adjust the Pebble tests to run in new version. -* [ ] Adjust version in Docker image ([source](./builder/Dockerfile#L199-L200)). +* [ ] Adjust version in Docker image ([source](./builder/Dockerfile)). * [ ] Rebuild and push the Docker image (following [Basic Process](#basic-process)) * [ ] Bump the version in `WORKSPACE` under `go_register_toolchains`. You may need to bump [rules_go](https://github.com/bazelbuild/rules_go/releases). * [ ] Bump the version in `builder.sh` accordingly ([source](./builder.sh#L6)). diff --git a/build/bootstrap/bootstrap-debian.sh b/build/bootstrap/bootstrap-debian.sh index 8bd7cfb91160..07dea0a03ca5 100755 --- a/build/bootstrap/bootstrap-debian.sh +++ b/build/bootstrap/bootstrap-debian.sh @@ -46,9 +46,9 @@ sudo tar -C /usr -zxf /tmp/cmake.tgz && rm /tmp/cmake.tgz # Install Go. trap 'rm -f /tmp/go.tgz' EXIT -curl -fsSL https://dl.google.com/go/go1.15.6.linux-amd64.tar.gz > /tmp/go.tgz +curl -fsSL https://dl.google.com/go/go1.15.10.linux-amd64.tar.gz > /tmp/go.tgz sha256sum -c - < /etc/apt/sources.list.d/docker.list < /tmp/go.tgz +sha256sum -c - <