Skip to content

Releases: bazel-contrib/rules_go

0.14.3

16 Oct 21:23
Compare
Choose a tag to compare
0.14.3 Pre-release
Pre-release

Bug fixes

  • #1768 - Migrate to cc_common for collecting C/C++ paths and options
  • #1767 - lcov_merger: workaround for Bazel 0.18.0 coverage
  • #1764 - Use a more unique name for the cover variable
  • #1757 - Use absolute paths to make GoPack work on Windows
  • #1754 - Define the toolchain_type target used by go rules.

NOTE: The minimum Bazel version for this release is now 0.17.2 because cc_common is not available in older 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.14.3/rules_go-0.14.3.tar.gz",
    sha256 = "9c1cc022f4d5840fd261a782c05c65865399405f0c05b090706d6b5426b7a82f",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()

0.15.4

03 Oct 20:27
Compare
Choose a tag to compare
0.15.4 Pre-release
Pre-release

New Go versions

  • Go 1.11.1 is now supported.

Bug fixes

  • #1721 - Fix non-root package testing on Windows (thanks @filipesilva!)
  • #1724 - Add more explicit dependencies for bazel_test
  • #1727 - link: take absolute path of main file
  • #1731 - Do not depend on stdlib for CGo codegen anymore (thanks @steeve!)
  • #1732 - Add fake buildid when linking (thanks @steeve!)
  • #1747 - Use find_cpp_toolchain instead of ctx.fragments.cpp

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.15.4/rules_go-0.15.4.tar.gz",
    sha256 = "7519e9e1c716ae3c05bd2d984a42c3b02e690c5df728dc0a84b23f90c355c5a1",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()

0.14.2

03 Oct 20:26
Compare
Choose a tag to compare
0.14.2 Pre-release
Pre-release

New Go versions

  • Go 1.11.1 is now supported.

Bug fixes

  • #1721 - Fix non-root package testing on Windows (thanks @filipesilva!)
  • #1724 - Add more explicit dependencies for bazel_test
  • #1727 - link: take absolute path of main file
  • #1731 - Do not depend on stdlib for CGo codegen anymore (thanks @steeve!)
  • #1732 - Add fake buildid when linking (thanks @steeve!)
  • #1747 - Use find_cpp_toolchain instead of ctx.fragments.cpp

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.14.2/rules_go-0.14.2.tar.gz",
    sha256 = "f560ccb2c5161fc64ac9c9fd5a38c81971daae668968549baae88d4d17c24893",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()

0.13.2

03 Oct 20:23
Compare
Choose a tag to compare
0.13.2 Pre-release
Pre-release

New Go versions

  • Go 1.11.1 is now supported.

Bug fixes

  • #1721 - Fix non-root package testing on Windows (thanks @filipesilva!)
  • #1724 - Add more explicit dependencies for bazel_test
  • #1727 - link: take absolute path of main file
  • #1731 - Do not depend on stdlib for CGo codegen anymore (thanks @steeve!)
  • #1732 - Add fake buildid when linking (thanks @steeve!)

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.13.2/rules_go-0.13.2.tar.gz",
    sha256 = "6cbeb2e5fd7664073d96e91eef7d201b987817a2459702ac5f9a337285817597",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()

0.15.3

05 Sep 22:04
Compare
Choose a tag to compare
0.15.3 Pre-release
Pre-release

Bug fixes

  • #1686 - Filter out -lstdc++ for targets with no C++ code
  • #1684 - third_party/org_golang_google_grpc: fix android build

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.15.3/rules_go-0.15.3.tar.gz",
    sha256 = "97cf62bdef33519412167fd1e4b0810a318a7c234f5f8dc4f53e2da86241c492",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()

0.15.2

05 Sep 20:47
Compare
Choose a tag to compare
0.15.2 Pre-release
Pre-release

Bug fixes

  • #1696 - go/private: only enable -shared/-dynlink on selected platforms
  • #1595 - cgo: declare rules for each supported mode, select in aspect

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.15.2/rules_go-0.15.2.tar.gz",
    sha256 = "70d0204f1e834d14fa9eef1e9b97160917a48957cd1e3a39b5ef9acdbdde6972",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()

0.15.1

25 Aug 20:14
Compare
Choose a tag to compare
0.15.1 Pre-release
Pre-release

Go support

Added support for Go 1.11 and 1.10.14.

Bug fixes

  • #1688 - Build tags are space separated, not comma separated.

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.15.1/rules_go-0.15.1.tar.gz",
    sha256 = "5f3b0304cdf0c505ec9e5b3c4fc4a87b5ca21b13d8ecc780c97df3d1809b9ce6",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()

0.14.1

25 Aug 20:14
Compare
Choose a tag to compare
0.14.1 Pre-release
Pre-release

Go support

Added support for Go 1.11 and 1.10.14.

Bug fixes

  • #1688 - Build tags are space separated, not comma separated.

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.14.1/rules_go-0.14.1.tar.gz",
    sha256 = "ee0e3b346388c447f13009d789c8bf2d7bae4643ac70bd7997ded0ad09b2fff7",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()

0.13.1

25 Aug 20:14
Compare
Choose a tag to compare
0.13.1 Pre-release
Pre-release

Go support

Added support for Go 1.11 and 1.10.14.

Bug fixes

  • #1594 - Misc fixes for Windows
  • #1632 - Propagate mode aspect on "_coverdata" edges
  • #1688 - Build tags are space separated, not comma separated.

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.13.1/rules_go-0.13.1.tar.gz",
    sha256 = "96e50aca9efb652db6271ba9cacf21f8f1fb29b2eab57ebaacdc071a022d1ad2",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()

0.15.0

16 Aug 20:13
83e1979
Compare
Choose a tag to compare
0.15.0 Pre-release
Pre-release

Changes

  • Several internal changes and fixes have been made to the way we handle paths passed to the compiler and linker. These changes shouldn't affect most projects, but large builds on macOS and Windows should see fewer errors about long paths and command lines.
  • Gazelle and its dependencies have been removed from go_rules_dependencies(). If you use Gazelle, you should load it from github.com/bazelbuild/bazel-gazelle instead.
  • The minimum supported Bazel version is now 0.16.0.

Updated dependencies

  • The following repositories are no longer declared in go_rules_dependencies.
    • bazel_gazelle (github.com/bazelbuild/bazel-gazelle)
    • com_github_bazelbuild_buildtools (github.com/bazelbuild/buildtools)
    • com_github_pelletier_go_toml (github.com/pelletier/go-toml)
  • org_golang_x_sys (golang.org/x/sys) has been added to go_rules_dependencies, since it's now a dependency of org_golang_google_grpc (google.golang.org/grpc).
  • org_golang_google_genproto (google.golang.org/genproto) updated to master as of 2018-08-13.
  • go_googleapis (github.com/googleapis/googleapis) updated to master as of 2018-08-08.

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.15.0/rules_go-0.15.0.tar.gz",
    sha256 = "56d946edecb9879aed8dff411eb7a901f687e242da4fa95c81ca08938dd23bb4",
)
load("@io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()

https://github.com/bazelbuild/rules_go/releases/new#