Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Update dependency io_bazel_rules_go to v0.13.0 #150

Merged
merged 3 commits into from
Jul 19, 2018

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 12, 2018

This Pull Request updates dependency io_bazel_rules_go from v0.11.0 to v0.13.0

Release Notes

v0.13.0

Compare Source

New features

  • A new repository, @go_googleapis, is declared in go_rules_dependencies(). This downloads github.com/googleapis/googleapis and includes proto_library and go_proto_library rules for everything inside.
    • Note that go_proto_library rules for the Well Known Types are still found in @io_bazel_rules_go//proto/wkt.
    • go_library rules using pre-generated .pb.go files may be found in @com_github_golang_protobuf and @org_golang_google_genproto. These should be used if you want to avoid a build-time dependency on protoc.
    • Gazelle 0.13.0 will resolve dependencies for these from both .go and .proto files depending on the proto mode.
  • Support for Go 1.10.3 and 1.9.7.
  • go_binary can now build plugins with linkmode = "plugin" (thanks @​teh-cmc)
  • Several fixes for Windows compatibility (thanks @​pmuetschard)
  • Several fixes for reproducibility (thanks @​siddharthab, @​bennyscetbun, @​steeve)
  • Fixes for platform compatibility (thanks @​lubinszARM, @​likan999, @​siddharthab, @​rescrv)
  • go_test now accepts goos and goarch attributes (thanks @​kerinin).
  • The compiler writes go_asm.h when .s files are present.
  • go_path can now bundle compiled .a files in pkg directories for its transitive dependencies (thanks @​steeve!).
  • Code generated in c-archive mode is position independent (thanks @​siddharthab).
  • race and msan tags are enabled in those modes.
  • importmap may now be inherited from embedded libraries.
  • .s files may include other .s files.
  • restricted_to and compatible_with are now propagated in cgo rules (thanks @​iley)

Notes

  • Removed deprecated features
    • Removed support for Go 1.8.
    • Removed go_prefix. importpath is now required on libraries. gazelle fix can help you migrate.
    • Removed the definition of go_repository in rules_go. Use the one in @bazel_gazelle//:deps.bzl instead. gazelle fix can help you migrate.

Updated dependencies

  • com_google_protobuf (github.com/google/protobuf) updated to v3.6.0.1.
  • org_golang_google_grpc (google.golang.org/grpc) updated to v1.13.0.
  • org_golang_google_genproto (google.golang.org/genproto) updated to master.
  • org_golang_x_net (golang.org/x/net) updated to master.

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

v0.12.1

Compare Source

Go support

Added support for Go 1.10.3 and 1.9.7.

Bug fixes

  • #​1524 - Add extra_files attribute to bazel_test
  • #​1542 - Fix deprecated skylark
  • #​1541 - Inherit importmap from embedded libraries
  • #​1526 - fix ios cross compilation with cgo
  • #​1521 - Allow .s files to include other .s files
  • #​1510 - Change base URL that SDKs are downloaded from
  • #​1497 - Enable use of FreeBSD SDK
  • #​1493 - Propagate restricted_to and compatible_with attributes in cgo rules

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.12.1/rules_go-0.12.1.tar.gz",
    sha256 = "8b68d0630d63d95dacc0016c3bb4b76154fe34fca93efd65d1c366de3fcb4294",
)
load("@​io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()

v0.12.0

Compare Source

New features

  • Go 1.10.2 and 1.9.6 are now supported.
  • Preliminary support for Objective C code in cgo srcs and cdeps.
    objc = True must be set in go_library to use this. It will only
    work on macOS, since it requires an Apple toolchain.
  • go_binary and go_test once again support importpath attributes. These
    targets are not importable, but go_path and other rules can use these to
    place source files in appropriate directories.
  • Build ids are no longer written into compiled standard library packages. This
    improve reproducibility.

Notes

  • Some important bug fixes have landed in Gazelle around proto dependency
    resolution. rules_go declares a @bazel_gazelle repository with these fixes,
    but this will be removed in the future. You should declare @bazel_gazelle
    explicitly in your WORKSPACE (see
    Running Gazelle with Bazel
    for setup instructions).
  • Several deprecated features are removed in this release.
    • The library attribute is removed in favor of embed.
    • The linkstamp attribute is removed in favor of x_defs.
    • The go_sdk and go_repositories rules are removed in favor of
      go_rules_dependencies, go_register_toolchains and related functions.
    • cgo_library and cgo_genrule are removed in favor of go_library.
    • The legacy proto rules in proto/go_proto_library.bzl are removed in favor
      of the new proto rules in proto/def.bzl.
  • Several more features are deprecated and scheduled for removal in the next
    release. See Deprecation schedule for more information.
    • Go 1.8 will no longer be supported.
    • go_prefix will be removed in favor of importpath attributes.
    • The legacy go_repository and new_go_repository will be removed in favor
      of the
      equivalent rule
      in the Gazelle repository.

Updated dependencies

The following repositories declared in go_rules_dependencies() were updated to
new versions.

  • bazel_gazelle to master as of 2018-05-08.
  • com_github_golang_protobuf to v1.1.0.
  • com_github_mwitkow_go_proto_validators to master as of 2018-05-07.
  • org_golang_x_net to master as of 2018-05-07.
  • org_golang_google_grpc to v1.10.3.
  • org_golang_google_genproto to master as of 2018-05-07.

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

v0.11.2

Compare Source

Go support

Added support for Go 1.10.3 and 1.9.7.

Bug fixes

  • #​1524 - Add extra_files attribute to bazel_test
  • #​1542 - Fix deprecated skylark
  • #​1541 - Inherit importmap from embedded libraries
  • #​1521 - Allow .s files to include other .s files
  • #​1510 - Change base URL that SDKs are downloaded from
  • #​1497 - Enable use of FreeBSD SDK
  • #​1493 - Propagate restricted_to and compatible_with attributes in cgo rules

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

v0.11.1

Compare Source

Go support

Added support for Go 1.10.2 and 1.9.6.

Bug fixes

  • #​1452 - Fix build error when go_test contains TestMain but no tests
  • #​1462 - Refactor coverage support
  • #​1471 - Fix coverage bugs
  • #​1478 - Fix coverage issues around cgo. (n.b. coverage with cgo is not supported yet, but it's closer to working than before).

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.11.1/rules_go-0.11.1.tar.gz",
    sha256 = "1868ff68d6079e31b2f09b828b58d62e57ca8e9636edff699247c9108518570b",
)
load("@​io_bazel_rules_go//go:def.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()


This PR has been generated by Renovate Bot.

@renovate renovate bot force-pushed the renovate/io_bazel_rules_go-0.x branch from 9a4cd04 to ff01179 Compare July 10, 2018 18:15
@renovate renovate bot changed the title Update dependency io_bazel_rules_go to v0.12.1 Update dependency io_bazel_rules_go to v0.13.0 Jul 10, 2018
@renovate
Copy link
Contributor Author

renovate bot commented Jul 19, 2018

PR has been edited

As this PR has been edited, Renovate will stop updating it in order to not cause any conflicts or other problems. If you wish to abandon your edits and have Renovate recreate this PR then you should rename this PR and then close it.

@alexeagle alexeagle merged commit 2c5c2cc into master Jul 19, 2018
@alexeagle alexeagle deleted the renovate/io_bazel_rules_go-0.x branch July 19, 2018 01:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants