New Go version
Go 1.12 is now supported.
Compatibility
- If you're using
go_repository
rules and Go 1.12, Gazelle 0.17.0 is now required. Earlier versions ofgo_repository
don't work with Go 1.12. - If you are upgrading from a rules_go version before 0.17.0, note that WORKSPACE definitions must now be loaded from
@io_bazel_rules_go//go:deps.bzl
, notdef.bzl
. Starting in this version,def.bzl
now references a compatibility repository declared ingo_rules_dependencies
, so loadingdef.bzl
before callinggo_rules_dependencies
will result in an error. This is necessary to support older and newer versions of Bazel across breaking Bazel API changes.
Bug fixes
- Several nogo fact serialization bug fixes. Most vet analyzers should work now.
- The
go_googleapis
repository should work on FreeBSD. (Thanks @EdSchouten) - cgo no longer requires that
cc_library
dependencies produce any files.
WORKSPACE code
http_archive(
name = "io_bazel_rules_go",
url = "https://github.com/bazelbuild/rules_go/releases/download/0.17.1/rules_go-0.17.1.tar.gz",
sha256 = "6776d68ebb897625dead17ae510eac3d5f6342367327875210df44dbe2aeeb19",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()