Repository navigation
v0.21.0
Pre-release
Pre-release
·
19 commits
to release-0.21
since this release
Compatibility
- The minimum supported version of Bazel is now 1.2.0 (was 0.23.0). Some of our dependencies are no longer compatible with old versions of Bazel, so we needed to drop some support.
- The
go_rulewrapper function is now deprecated, since it doesn't work well after some Bazel compatibility changes in 2.0.0. See the deprecation schedule for rationale and migration information. In general, we're evaluating a change to the way we handle toolchains and flags in order to better support configurations. If you have custom rules declared withgo_ruleorgo_contextor if you use custom toolchains compatible withgo_toolchain, please reach out via go-bazel-discuss or on the#bazelchannel on Gophers Slack.
Changes
This release contains no significant user facing changes. Several bugs are fixed, and dependencies are updated. Compatibility with Bazel 2.0.0 and later versions is improved.
Updated dependencies
platforms(https://github.com/bazelbuild/platforms) has been added atmasteras of 2020-01-02 (see bazelbuild/bazel#8622).rules_cc(https://github.com/bazelbuild/rules_cc) has been added atmasteras of 2020-01-06 (see bazelbuild/bazel#8743).org_golang_x_toolsis updated tomasteras of 2020-01-02.com_github_golang_protobufis updated tov1.3.2, latest as of 2020-01-03.com_github_mwitkow_go_proto_validatorsis updated tov0.3.0, latest as of 2020-01-03.com_github_gogo_protobufis updated tov1.3.1, latest as of 2020-01-03.org_golang_google_genprotois updated tomasteras of 2020-01-03.go_googleapisis updated tomasteras of 2020-01-03.- If you use
proto_library, you may need to migrate torules_proto(https://github.com/bazelbuild/rules_proto) (see bazelbuild/bazel#8922).
WORKSPACE code
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
urls = [
"https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/v0.21.0/rules_go-v0.21.0.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.21.0/rules_go-v0.21.0.tar.gz",
],
sha256 = "b27e55d2dcc9e6020e17614ae6e0374818a3e3ce6f2024036e688ada24110444",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()