Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency io_bazel_rules_go to v0.23.0 (v2) #1328

Merged
merged 1 commit into from
May 14, 2020

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 13, 2020

This PR contains the following updates:

Package Type Update Change
io_bazel_rules_go http_archive minor v0.22.4 -> v0.23.0

Release Notes

bazelbuild/rules_go

v0.23.0

Compare Source

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()

Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

@codecov-io
Copy link

Codecov Report

Merging #1328 into v2 will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##               v2    #1328   +/-   ##
=======================================
  Coverage   54.43%   54.43%           
=======================================
  Files          41       41           
  Lines        4343     4343           
=======================================
  Hits         2364     2364           
  Misses       1724     1724           
  Partials      255      255           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9f52fd1...b4bafc3. Read the comment docs.

@achew22 achew22 merged commit 448189f into v2 May 14, 2020
@achew22 achew22 deleted the renovate/v2-io_bazel_rules_go-0.x branch May 14, 2020 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants