Skip to content

Releases: bazel-contrib/rules_go

v0.23.2

28 May 16:37
Compare
Choose a tag to compare
v0.23.2 Pre-release
Pre-release

Bug fixes

  • race and msan instrumentation is now disabled when pure mode is enabled.
    Both kinds of instrumentation require cgo, so they're not compatible with
    pure.
  • The coverage mode is set to atomic when race instrumentation is enabled.
    (Thanks to @linzhp)
  • go_proto_library targets for well known types in
    @io_bazel_rules_go//proto/wkt now compile pre-generated sources, which are
    specially built for compatibility with APIv2.

WORKSPACE code

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "io_bazel_rules_go",
    sha256 = "0c10738a488239750dbf35336be13252bad7c74348f867d30c3c3e0001906096",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.23.2/rules_go-v0.23.2.tar.gz",
        "https://github.com/bazelbuild/rules_go/releases/download/v0.23.2/rules_go-v0.23.2.tar.gz",
    ],
)

load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

go_rules_dependencies()

go_register_toolchains()

v0.23.1

15 May 21:39
Compare
Choose a tag to compare
v0.23.1 Pre-release
Pre-release

New Go versions

Go 1.14.3 and 1.13.11 are now supported.

WORKSPACE code

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "io_bazel_rules_go",
    sha256 = "87f0fb9747854cb76a0a82430adccb6269f7d394237104a4523b51061c469171",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.23.1/rules_go-v0.23.1.tar.gz",
        "https://github.com/bazelbuild/rules_go/releases/download/v0.23.1/rules_go-v0.23.1.tar.gz",
    ],
)

load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

go_rules_dependencies()

go_register_toolchains()

v0.22.5

15 May 21:39
Compare
Choose a tag to compare
v0.22.5 Pre-release
Pre-release

New Go versions

Go 1.14.3 and 1.13.11 are now supported.

WORKSPACE code

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "io_bazel_rules_go",
    sha256 = "dbde93957f2a96e6c97edb74e29107b7de1b2b57608b8304401e10326e02c66d",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.22.5/rules_go-v0.22.5.tar.gz",
        "https://github.com/bazelbuild/rules_go/releases/download/v0.22.5/rules_go-v0.22.5.tar.gz",
    ],
)

load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

go_rules_dependencies()

go_register_toolchains()

v0.23.0

13 May 22:00
b2a2d93
Compare
Choose a tag to compare
v0.23.0 Pre-release
Pre-release

Changes

  • rules_go now supports the new API for protocol buffers.
    • To summarize the announcement, there's a new protobuf module, google.golang.org/protobuf (APIv2). The old module, github.com/golang/protobuf (APIv1) has been re-implemented in terms of the new module. Using either API is fine.
    • rules_go will continue to use protoc-gen-go from APIv1 for now, since the APIv2 does not support gRPC, and there is no gRPC generator yet. See the note on gRPC support in the v1.20.0 release notes.
    • Code generated with either module should work with both APIs. However, code generated with older versions of APIv1 will not not work with the latest version of either module.
  • rules_go has migrated to Starlark build settings and configuration transitions.
    • Instead of using feature flags like --features=race, you can now use flags like --@io_bazel_rules_go//go/config:race.
    • go_binary and go_test mode attributes such as race, pure, goos, and goarch have been reimplemented using transitions. Conditional dependencies chosen with select should now work correctly.
    • go_binary and go_test now support a gotags attribute, which lets a binary and its dependencies be built with a list of build constraints. This can also be set on the command line with --@io_bazel_rules_go//go/config:tags.
    • Output file paths no longer include extra configuration data. For example, //tests/core/go_binary:hello creates the file bazel-bin/tests/core/go_binary/hello_/hello. Note that output file paths are still not stable and should not be depended on unless the "out" attribute is set explicitly (for rules that support it).

Compatibility

  • The minimum supported version of Bazel is now 2.2.0. This version bump was needed to take advantage of support for build settings and configuration transitions.
  • Go versions older than 1.13 are no longer supported.
  • The deprecated searchpaths and searchpath fields have been removed from GoArchive and GoArchiveData.

Updated dependencies

  • platforms is updated to master as of 2020-05-12.
  • rules_cc is updated to master as of 2020-05-12.
  • org_golang_x_tools is updated to master as of 2020-05-12.
  • org_golang_x_xerrors (golang.org/x/xerrors) is added at master as of 2020-05-12. It's needed by org_golang_x_tools.
  • org_golang_google_protobuf (google.golang.org/protobuf) is added at v1.22.0, latest as of 2020-05-12.
  • com_github_golang_protobuf is updated to v1.4.1, latest as of 2020-05-12.
  • org_golang_google_genproto is updated to master as of 2020-05-12.
  • go_googleapis is updated to master as of 2020-05-12.

WORKSPACE code

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "io_bazel_rules_go",
    sha256 = "6a68e269802911fa419abb940c850734086869d7fe9bc8e12aaf60a09641c818",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.23.0/rules_go-v0.23.0.tar.gz",
        "https://github.com/bazelbuild/rules_go/releases/download/v0.23.0/rules_go-v0.23.0.tar.gz",
    ],
)

load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

go_rules_dependencies()

go_register_toolchains()

v0.22.4

14 Apr 15:53
Compare
Choose a tag to compare
v0.22.4 Pre-release
Pre-release

Bug fixes

  • A patch for com_github_golang_protobuf has been updated to no longer touch testdata files that were deleted in later versions upstream. This should make it easier to use newer versions of protobuf.
  • The cgocall analyzer is disabled in tools_nogo due to lack of support.
  • Some missing platforms and toolchains are added.
  • go_embed_data can now correctly embed .c, .go, and other source files.

WORKSPACE code

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "io_bazel_rules_go",
    sha256 = "7b9bbe3ea1fccb46dcfa6c3f3e29ba7ec740d8733370e21cdc8937467b4a4349",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.22.4/rules_go-v0.22.4.tar.gz",
        "https://github.com/bazelbuild/rules_go/releases/download/v0.22.4/rules_go-v0.22.4.tar.gz",
    ],
)

load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

go_rules_dependencies()

go_register_toolchains()

v0.21.7

14 Apr 15:53
Compare
Choose a tag to compare
v0.21.7 Pre-release
Pre-release

Bug fixes

  • A patch for com_github_golang_protobuf has been updated to no longer touch testdata files that were deleted in later versions upstream. This should make it easier to use newer versions of protobuf.
  • Some missing platforms and toolchains are added.
  • go_embed_data can now correctly embed .c, .go, and other source files.

WORKSPACE code

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "io_bazel_rules_go",
    sha256 = "c1a5614131bbd4e4764ad782de261a2e9c4173c9528a50dbaefcbea6fce7d66a",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.21.7/rules_go-v0.21.7.tar.gz",
        "https://github.com/bazelbuild/rules_go/releases/download/v0.21.7/rules_go-v0.21.7.tar.gz",
    ],
)

load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

go_rules_dependencies()

go_register_toolchains()

v0.22.3

09 Apr 13:12
Compare
Choose a tag to compare
v0.22.3 Pre-release
Pre-release

New Go versions

Go 1.14.2 and 1.13.10 are now supported.

WORKSPACE code

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "io_bazel_rules_go",
    sha256 = "db2b2d35293f405430f553bc7a865a8749a8ef60c30287e90d2b278c32771afe",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.22.3/rules_go-v0.22.3.tar.gz",
        "https://github.com/bazelbuild/rules_go/releases/download/v0.22.3/rules_go-v0.22.3.tar.gz",
    ],
)

load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

go_rules_dependencies()

go_register_toolchains()

v0.21.6

09 Apr 13:12
Compare
Choose a tag to compare
v0.21.6 Pre-release
Pre-release

New Go versions

Go 1.14.2 and 1.13.10 are now supported.

WORKSPACE code

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "io_bazel_rules_go",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.21.6/rules_go-v0.21.6.tar.gz",
        "https://github.com/bazelbuild/rules_go/releases/download/v0.21.6/rules_go-v0.21.6.tar.gz",
    ],
    sha256 = "5791ab3fbca784b49f2bbbfbfd93dc41e6898daa0bb8998a53f76f6ea98135a7",
)

load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")

go_rules_dependencies()

go_register_toolchains()

v0.22.2

19 Mar 21:35
Compare
Choose a tag to compare
v0.22.2 Pre-release
Pre-release

New Go versions

Go 1.14.1 and 1.13.9 are now supported.

WORKSPACE code

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "io_bazel_rules_go",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.22.2/rules_go-v0.22.2.tar.gz",
        "https://github.com/bazelbuild/rules_go/releases/download/v0.22.2/rules_go-v0.22.2.tar.gz",
    ],
    sha256 = "142dd33e38b563605f0d20e89d9ef9eda0fc3cb539a14be1bdb1350de2eda659",
)

load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")

go_rules_dependencies()

go_register_toolchains()

v0.21.5

19 Mar 21:35
Compare
Choose a tag to compare
v0.21.5 Pre-release
Pre-release

New Go versions

Go 1.14.1 and 1.13.9 are now supported.

WORKSPACE code

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "io_bazel_rules_go",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.21.5/rules_go-v0.21.5.tar.gz",
        "https://github.com/bazelbuild/rules_go/releases/download/v0.21.5/rules_go-v0.21.5.tar.gz",
    ],
    sha256 = "effce27c4ef53af96397d538c1b9e37e9b8546e4a912ed9eb43590bb33cbbf95",
)

load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")

go_rules_dependencies()

go_register_toolchains()