Go rules
- Support for Go 1.10, 1.9.3, 1.9.4, 1.8.6, and 1.8.7.
go_library
supports a new attribute,importmap
. This lets you set the "actual" import path of a library, which is what the compiler and linker will see. This is only needed when linking binaries that include multiple packages with the same import path.importpath
is still the name by which libraries are imported by source files in other libraries.go_test
may now include sources from both internal tests (compiled in the same archive as the code under test) and external tests (compiled in a separate archive).go_test
now recognizes the standardshard_count
attribute (see Attributes common to all test rules).- Removed
wtool
. Usegazelle update-repos example.com/repo
instead. - Removed old Gazelle tree. Use
github.com/bazelbuild/bazel-gazelle
instead.
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.10.0/rules_go-0.10.0.tar.gz",
sha256 = "53c8222c6eab05dd49c40184c361493705d4234e60c42c4cd13ab4898da4c6be",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
Direct download: rules_go-0.10.0.tar.gz