Skip to content

Commit

Permalink
build: update go to 1.22.1
Browse files Browse the repository at this point in the history
* [x] Update `build/teamcity/internal/release/build-and-publish-patched-go/impl.sh` with the new version and adjust SHA256 sums as necessary.
* [x] Run the `Internal / Cockroach / Build / Toolchains / Publish Patched Go for Mac` build configuration in TeamCity with your latest version of the script above. Note the job depends on another job `Build and Publish Patched Go`. That job prints out the SHA256 of all tarballs, which you will need to copy-paste into `WORKSPACE` (see below). `Publish Patched Go for Mac` is an extra step that publishes the *signed* `go` binaries for macOS. That job also prints out the SHA256 of the Mac tarballs in particular.
* [x] Bump the version in `WORKSPACE` under `go_download_sdk`. You may need to bump [rules_go](https://github.com/bazelbuild/rules_go/releases). Also edit the filenames listed in `sdks` and update all the hashes to match what you built in the step above.
* [x] Run `./dev generate bazel` to refresh `distdir_files.bzl`, then `bazel fetch @distdir//:archives` to ensure you've updated all hashes to the correct value.
* [x] Bump the default installed version of Go in `bootstrap-debian.sh` ([source](./bootstrap/bootstrap-debian.sh)).

Epic: none
Release note: None
  • Loading branch information
rail committed Mar 6, 2024
1 parent 14f433f commit daa4726
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
14 changes: 7 additions & 7 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,14 @@ load(
go_download_sdk(
name = "go_sdk",
sdks = {
"darwin_amd64": ("go1.22.0.darwin-amd64.tar.gz", "04397fcb8eca99eb0c613cd0000ee45751777b06cd60946f55ac027e7ebb154c"),
"darwin_arm64": ("go1.22.0.darwin-arm64.tar.gz", "c1d6436a7273162be40e87d65d22c358c0e47e75d39110cc13acfa496dce6482"),
"linux_amd64": ("go1.22.0.linux-amd64.tar.gz", "b3f93826ba072b0d808264fd46e747b2b8e28cd04881aeb966fe4c44c5d8db8a"),
"linux_arm64": ("go1.22.0.linux-arm64.tar.gz", "baec0c1ef1f2029be76839eb702c263464c44987b470906d8b03ee696874c5db"),
"windows_amd64": ("go1.22.0.windows-amd64.tar.gz", "42d0bcc8db004a4f89d94e345be44f286841dfe439256946b71e8eab9e324642"),
"darwin_amd64": ("go1.22.1.darwin-amd64.tar.gz", "b55191237e25d023348a2096066f1e53af6693b965f0234c547a361805bb9447"),
"darwin_arm64": ("go1.22.1.darwin-arm64.tar.gz", "c2d5a541182a953d4c2e0e4fa4326b3935b73cb4053b901324c95aed7238781c"),
"linux_amd64": ("go1.22.1.linux-amd64.tar.gz", "9df52f8ae84d8143ce26e0872c44638468c764c4cd688a6737345dc0ba7620b6"),
"linux_arm64": ("go1.22.1.linux-arm64.tar.gz", "aa503f0c8450cf08a63e2e2312c2b1418157145160a075674c3b2577b41d184f"),
"windows_amd64": ("go1.22.1.windows-amd64.tar.gz", "14bfc09f96e539cf534802e57c0909fdf9534600f3dc4de6008592b0b7a4da08"),
},
urls = ["https://storage.googleapis.com/public-bazel-artifacts/go/20240227-175941/{}"],
version = "1.22.0",
urls = ["https://storage.googleapis.com/public-bazel-artifacts/go/20240306-025504/{}"],
version = "1.22.1",
)

# To point to a local SDK path, use the following instead. We'll call the
Expand Down
10 changes: 5 additions & 5 deletions build/bazelutil/distdir_files.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -1206,11 +1206,11 @@ DISTDIR_FILES = {
"https://storage.googleapis.com/public-bazel-artifacts/c-deps/20230718-202534/libproj_foreign.macosarm.20230718-202534.tar.gz": "b2c60ffe1f50c6e81ba906f773b95d3a6699538d57e71749579552f4211a1e3e",
"https://storage.googleapis.com/public-bazel-artifacts/c-deps/20230718-202534/libproj_foreign.windows.20230718-202534.tar.gz": "16de1e76ee8de4bd144dc57bfde05385d086943ca1b64cc246055c8b0cd71c65",
"https://storage.googleapis.com/public-bazel-artifacts/go/20240220-195058/go1.21.5fips.linux-amd64.tar.gz": "68fefc15b4328244fe78f1269e8856a2a2cd52f1fb9f451bb8bc0c23d590fe14",
"https://storage.googleapis.com/public-bazel-artifacts/go/20240227-175941/go1.22.0.darwin-amd64.tar.gz": "04397fcb8eca99eb0c613cd0000ee45751777b06cd60946f55ac027e7ebb154c",
"https://storage.googleapis.com/public-bazel-artifacts/go/20240227-175941/go1.22.0.darwin-arm64.tar.gz": "c1d6436a7273162be40e87d65d22c358c0e47e75d39110cc13acfa496dce6482",
"https://storage.googleapis.com/public-bazel-artifacts/go/20240227-175941/go1.22.0.linux-amd64.tar.gz": "b3f93826ba072b0d808264fd46e747b2b8e28cd04881aeb966fe4c44c5d8db8a",
"https://storage.googleapis.com/public-bazel-artifacts/go/20240227-175941/go1.22.0.linux-arm64.tar.gz": "baec0c1ef1f2029be76839eb702c263464c44987b470906d8b03ee696874c5db",
"https://storage.googleapis.com/public-bazel-artifacts/go/20240227-175941/go1.22.0.windows-amd64.tar.gz": "42d0bcc8db004a4f89d94e345be44f286841dfe439256946b71e8eab9e324642",
"https://storage.googleapis.com/public-bazel-artifacts/go/20240306-025504/go1.22.1.darwin-amd64.tar.gz": "b55191237e25d023348a2096066f1e53af6693b965f0234c547a361805bb9447",
"https://storage.googleapis.com/public-bazel-artifacts/go/20240306-025504/go1.22.1.darwin-arm64.tar.gz": "c2d5a541182a953d4c2e0e4fa4326b3935b73cb4053b901324c95aed7238781c",
"https://storage.googleapis.com/public-bazel-artifacts/go/20240306-025504/go1.22.1.linux-amd64.tar.gz": "9df52f8ae84d8143ce26e0872c44638468c764c4cd688a6737345dc0ba7620b6",
"https://storage.googleapis.com/public-bazel-artifacts/go/20240306-025504/go1.22.1.linux-arm64.tar.gz": "aa503f0c8450cf08a63e2e2312c2b1418157145160a075674c3b2577b41d184f",
"https://storage.googleapis.com/public-bazel-artifacts/go/20240306-025504/go1.22.1.windows-amd64.tar.gz": "14bfc09f96e539cf534802e57c0909fdf9534600f3dc4de6008592b0b7a4da08",
"https://storage.googleapis.com/public-bazel-artifacts/java/railroad/rr-1.63-java8.zip": "d2791cd7a44ea5be862f33f5a9b3d40aaad9858455828ebade7007ad7113fb41",
"https://storage.googleapis.com/public-bazel-artifacts/js/rules_jest-v0.18.4.tar.gz": "d3bb833f74b8ad054e6bff5e41606ff10a62880cc99e4d480f4bdfa70add1ba7",
"https://storage.googleapis.com/public-bazel-artifacts/js/rules_js-v1.26.1.tar.gz": "08061ba5e5e7f4b1074538323576dac819f9337a0c7d75aee43afc8ae7cb6e18",
Expand Down
4 changes: 2 additions & 2 deletions build/bootstrap/bootstrap-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ sudo tar -C /usr --strip-components=1 -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.22.0.linux-amd64.tar.gz > /tmp/go.tgz
curl -fsSL https://dl.google.com/go/go1.22.1.linux-amd64.tar.gz > /tmp/go.tgz
sha256sum -c - <<EOF
f6c8a87aa03b92c4b0bf3d558e28ea03006eb29db78917daec5cfb6ec1046265 /tmp/go.tgz
aab8e15785c997ae20f9c88422ee35d962c4562212bb0f879d052a35c8307c7f /tmp/go.tgz
EOF
sudo tar -C /usr/local -zxf /tmp/go.tgz && rm /tmp/go.tgz

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
set -xeuo pipefail

# When updating to a new Go version, update all of these variables.
GOVERS=1.22.0
GOVERS=1.22.1
GOLINK=https://go.dev/dl/go$GOVERS.src.tar.gz
SRCSHASUM=4d196c3d41a0d6c1dfc64d04e3cc1f608b0c436bd87b7060ce3e23234e1f4d5c
SRCSHASUM=79c9b91d7f109515a25fc3ecdaad125d67e6bdb54f6d4d98580f46799caea321
# We use this for bootstrapping (this is NOT re-published). Note the version
# matches the version we're publishing, although it doesn't technically have to.
GOLINUXLINK=https://go.dev/dl/go$GOVERS.linux-amd64.tar.gz
LINUXSHASUM=f6c8a87aa03b92c4b0bf3d558e28ea03006eb29db78917daec5cfb6ec1046265
LINUXSHASUM=aab8e15785c997ae20f9c88422ee35d962c4562212bb0f879d052a35c8307c7f

apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
Expand Down

0 comments on commit daa4726

Please sign in to comment.