From 5ccdc6c690007fe2c166554f7a3fd54b527579fd Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Tue, 8 Aug 2023 17:41:48 +0200 Subject: [PATCH] Bump Go versions to 1.21.1 Also requires updating Gazelle. --- MODULE.bazel | 2 +- WORKSPACE | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index 9b477670cf..0d3be56742 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -19,7 +19,7 @@ use_repo( go_sdk = use_extension("//go:extensions.bzl", "go_sdk") go_sdk.download( name = "go_default_sdk", - version = "1.20.7", + version = "1.21.1", ) use_repo(go_sdk, "go_toolchains") diff --git a/WORKSPACE b/WORKSPACE index 9c66602457..9543050961 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -5,7 +5,7 @@ load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_depe go_rules_dependencies() -go_register_toolchains(version = "1.20.7") +go_register_toolchains(version = "1.21.1") http_archive( name = "com_google_protobuf", @@ -71,15 +71,17 @@ bazel_skylib_workspace() http_archive( name = "bazel_gazelle", - sha256 = "178eba9540a616bda314afa25a91f195758a9fed178eda72e149eb0d20e9b670", - strip_prefix = "bazel-gazelle-9fe0a3ff751647789690293dcbb3c87ea33b7566", + sha256 = "d3fa66a39028e97d76f9e2db8f1b0c11c099e8e01bf363a923074784e451f809", urls = [ - "https://github.com/bazelbuild/bazel-gazelle/archive/9fe0a3ff751647789690293dcbb3c87ea33b7566.zip", + "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.33.0/bazel-gazelle-v0.33.0.tar.gz", + "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.33.0/bazel-gazelle-v0.33.0.tar.gz", ], ) load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository") +gazelle_dependencies() + go_repository( name = "com_github_google_go_github_v36", importpath = "github.com/google/go-github/v36", @@ -158,8 +160,6 @@ load("@io_bazel_rules_go//tests:grpc_repos.bzl", "grpc_dependencies") grpc_dependencies() -gazelle_dependencies() - local_repository( name = "runfiles_remote_test", path = "tests/core/runfiles/runfiles_remote_test",