Skip to content

0.17.3

Pre-release
Pre-release
Compare
Choose a tag to compare
@jayconrod jayconrod released this 06 Apr 14:16
· 35 commits to release-0.17 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.17.3/rules_go-0.17.3.tar.gz",
    sha256 = "525befc2af51c4dbaa96cb8126b84391234efa487ca9c220dad0043498959102",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()