Skip to content

Commit

Permalink
bazel, golang: update to go 1.20.12 (#3133)
Browse files Browse the repository at this point in the history
* bazel: update to golang 1.20.12

Update rules_go and gazelle

Signed-off-by: Daniel Hiller <[email protected]>

* bazel: update version for project-infra, cached versions

Updates the cached bazel versions inside the bootstrap image. Also
updates the .bazelversion to latest v5 LTS release.

Signed-off-by: Daniel Hiller <[email protected]>

Signed-off-by: Daniel Hiller <[email protected]>

---------

Signed-off-by: Daniel Hiller <[email protected]>
  • Loading branch information
dhiller authored Dec 19, 2023
1 parent e7be9d9 commit bf5e580
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.4.0
5.4.1
14 changes: 7 additions & 7 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ http_archive(

http_archive(
name = "io_bazel_rules_go",
sha256 = "278b7ff5a826f3dc10f04feaf0b70d48b68748ccd512d7f98bf442077f043fe3",
sha256 = "91585017debb61982f7054c9688857a2ad1fd823fc3f9cb05048b0025c47d023",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.41.0/rules_go-v0.41.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.41.0/rules_go-v0.41.0.zip",
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.42.0/rules_go-v0.42.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.42.0/rules_go-v0.42.0.zip",
],
)

http_archive(
name = "bazel_gazelle",
sha256 = "d3fa66a39028e97d76f9e2db8f1b0c11c099e8e01bf363a923074784e451f809",
sha256 = "b7387f72efb59f876e4daae42f1d3912d0d45563eac7cb23d1de0b094ab588cf",
urls = [
"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",
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.34.0/bazel-gazelle-v0.34.0.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.34.0/bazel-gazelle-v0.34.0.tar.gz",
],
)

Expand All @@ -50,7 +50,7 @@ load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_depe

go_rules_dependencies()

go_register_toolchains(version = "1.20.5")
go_register_toolchains(version = "1.20.12")

load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

Expand Down
3 changes: 2 additions & 1 deletion images/bootstrap/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ RUN curl -Lo ./bazelisk https://github.com/bazelbuild/bazelisk/releases/downloa
# and remove resulting cache directories to save a few hundred MB
RUN USE_BAZEL_VERSION=4.1.0 bazel version && \
USE_BAZEL_VERSION=4.2.1 bazel version && \
USE_BAZEL_VERSION=5.3.0 bazel version && \
USE_BAZEL_VERSION=5.3.1 bazel version && \
USE_BAZEL_VERSION=5.4.1 bazel version && \
rm -rf /root/.cache/bazel

# create mixin directories
Expand Down

0 comments on commit bf5e580

Please sign in to comment.