github bazelbuild/rules_go v0.21.0

latest releases: v0.47.0, v0.46.0, v0.45.1...
pre-release4 years ago

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_rule wrapper 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 with go_rule or go_context or if you use custom toolchains compatible with go_toolchain, please reach out via go-bazel-discuss or on the #bazel channel 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

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()

Don't miss a new rules_go release

NewReleases is sending notifications on new releases.