Skip to content

0.18.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@jayconrod jayconrod released this 06 Apr 14:16
· 52 commits to release-0.18 since this release

New Go version

Go 1.12.2 and 1.11.7 are now supported.

NOTE: The default linker on Ubuntu 14.04 doesn't support relocations used in the 1.12.2 distributions. If you're on Ubuntu 14.04, there are a few possible workarounds:

  • Stay on go1.12.1 by calling go_register_toolchains(go_version = "1.12.1") in your WORKSPACE.
  • Build without cgo by using --features=pure on the Bazel command line or pure = "on" in go_binary rules.
  • Configure a custom C/C++ toolchain with a newer linker.

The upstream tracking issue is golang/go#31293.

Bug fixes

  • Workarounds for gRPC cross-compilation. As a reminder, the goos and goarch attributes do not work in conjunction with select expressions, which are used in the build files for org_golang_google_grpc. Use --platforms for cross-compilation if possible. See Cross compilation for more information.
  • x_defs are now correctly applied to the main package.
  • Fix some incompatibilities with future Bazel versions.

WORKSPACE code

To use this release, add this code to your WORKSPACE file:

http_archive(
    name = "io_bazel_rules_go",
    url = "https://github.com/bazelbuild/rules_go/releases/download/0.18.2/rules_go-0.18.2.tar.gz",
    sha256 = "31f959ecf3687f6e0bb9d01e1e7a7153367ecd82816c9c0ae149cd0e5a92bf8c",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()