Skip to content

Commit

Permalink
Update to Go 1.18 and rules_go v0.31.0 in WORKSPACE (bazel-contrib#1210)
Browse files Browse the repository at this point in the history
  • Loading branch information
blico authored Mar 23, 2022
1 parent f377e6e commit 0a1671e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@ should look like this:
http_archive(
name = "io_bazel_rules_go",
sha256 = "2b1641428dff9018f9e85c0384f03ec6c10660d935b750e3fa1492a281a53b0f",
sha256 = "f2dcd210c7095febe54b804bb1cd3a58fe8435a909db2ec04e31542631cf715c",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.29.0/rules_go-v0.29.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.29.0/rules_go-v0.29.0.zip",
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.31.0/rules_go-v0.31.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.31.0/rules_go-v0.31.0.zip",
],
)
Expand All @@ -166,7 +166,7 @@ should look like this:
go_rules_dependencies()
go_register_toolchains(version = "1.17.2")
go_register_toolchains(version = "1.18")
gazelle_dependencies()
Expand Down
11 changes: 4 additions & 7 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,10 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
name = "io_bazel_rules_go",
sha256 = "e0c127187c63f96158a7fd609300e216f70b44912806f62f0d17c7d3a3872bc1",
strip_prefix = "rules_go-027d78bed3952d73c6fb7099b3247f903aa7318d",
sha256 = "f2dcd210c7095febe54b804bb1cd3a58fe8435a909db2ec04e31542631cf715c",
urls = [
# Need a prerelease version of rules_go to pick up bzl_library fixes
# https://github.com/bazelbuild/rules_go/pull/2942
# Can go back to release artifact after 0.30 release
"https://github.com/bazelbuild/rules_go/archive/027d78bed3952d73c6fb7099b3247f903aa7318d.zip",
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.31.0/rules_go-v0.31.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.31.0/rules_go-v0.31.0.zip",
],
)

Expand All @@ -31,7 +28,7 @@ go_rules_dependencies()

go_register_toolchains(
nogo = "@bazel_gazelle//:nogo",
version = "1.17.2",
version = "1.18",
)

load("//:deps.bzl", "gazelle_dependencies")
Expand Down

0 comments on commit 0a1671e

Please sign in to comment.