github bazel-contrib/rules_go 0.17.1

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

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 of go_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, not def.bzl. Starting in this version, def.bzl now references a compatibility repository declared in go_rules_dependencies, so loading def.bzl before calling go_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()

Don't miss a new rules_go release

NewReleases is sending notifications on new releases.