Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
132111: build: upgrade to Go 1.23.2 r=rail,fqazi a=rickystewart * [x] Adjust the Pebble tests to run in new version. * [x] Update `build/teamcity/internal/release/build-and-publish-patched-go/impl.sh` with the new version and adjust SHA256 sums as necessary. * [x] Adjust `GO_VERSION` and `GO_FIPS_COMMIT` for the FIPS Go toolchain ([source](./teamcity/internal/release/build-and-publish-patched-go/impl-fips.sh)). * [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] Adjust `--`@io_bazel_rules_go//go/toolchain:sdk_version`` in [.bazelrc](../.bazelrc). * [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] Bump the version in `WORKSPACE` under `go_download_sdk` for the FIPS version of Go (`go_sdk_fips`). * [ ] 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 go version in `go.mod`. * [x] Bump the default installed version of Go in `bootstrap-debian.sh` ([source](./bootstrap/bootstrap-debian.sh)). * [ ] Replace other mentions of the older version of go (grep for `golang:<old_version>` and `go<old_version>`). In addition to the upgrade, the following changes had to be made: * Needed to ugprade `staticcheck` to a version that supported Go 1.23 * Needed to update `errcheck` to a version that supported Go 1.23 * Needed to update `gosnowflake` to work around an issue that manifested in the error "failed to parse CA certificate". Updating this to the latest version would have resulted in a ton of packages being upgraded which would increase the risk of this change proportionally. Instead, I opted for a smaller jump plus the addition of a patch that applies snowflakedb/gosnowflake@f33dfc7eb567. Epic: CRDB-41921 Release note (build change): Upgrade to Go 1.23.2 Closes: #129900 Closes: #129897 Closes: #129902 Co-authored-by: Ricky Stewart <[email protected]>
- Loading branch information