github bazel-contrib/rules_go 0.10.0

latest releases: v0.50.1, v0.50.0, v0.49.0...
pre-release6 years ago

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 standard shard_count attribute (see Attributes common to all test rules).
  • Removed wtool. Use gazelle 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

Don't miss a new rules_go release

NewReleases is sending notifications on new releases.