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 module bazelbuild/rules_go to v0.23.1 #365

Conversation

renovate-bot
Copy link
Contributor

@renovate-bot renovate-bot commented Mar 19, 2020

This PR contains the following updates:

Package Type Update Change
github.com/bazelbuild/rules_go require minor v0.22.1 -> v0.23.1

Release Notes

bazelbuild/rules_go

v0.23.1

Compare Source

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

v0.22.5

Compare Source

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.22.4

Compare Source

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.22.3

Compare Source

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.22.2

Compare Source

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

Renovate configuration

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

🚦 Automerge: Enabled.

♻️ 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.

@renovate-bot renovate-bot force-pushed the renovate/github.ghproxy.top-bazelbuild-rules_go-0.x branch from 233e627 to 95da218 Compare April 9, 2020 13:16
@renovate-bot renovate-bot requested a review from achew22 as a code owner April 9, 2020 13:16
@renovate-bot renovate-bot changed the title Update module bazelbuild/rules_go to v0.22.2 Update module bazelbuild/rules_go to v0.22.3 Apr 9, 2020
@renovate-bot renovate-bot force-pushed the renovate/github.ghproxy.top-bazelbuild-rules_go-0.x branch from 95da218 to fc721df Compare April 14, 2020 16:14
@renovate-bot renovate-bot changed the title Update module bazelbuild/rules_go to v0.22.3 Update module bazelbuild/rules_go to v0.22.4 Apr 14, 2020
@renovate-bot renovate-bot force-pushed the renovate/github.ghproxy.top-bazelbuild-rules_go-0.x branch 2 times, most recently from 115cc10 to 94e20c0 Compare April 26, 2020 22:28
@achew22 achew22 closed this Apr 26, 2020
@achew22 achew22 reopened this Apr 26, 2020
@renovate-bot renovate-bot force-pushed the renovate/github.ghproxy.top-bazelbuild-rules_go-0.x branch from 94e20c0 to 263a36a Compare May 13, 2020 22:16
@renovate-bot renovate-bot changed the title Update module bazelbuild/rules_go to v0.22.4 Update module bazelbuild/rules_go to v0.23.0 May 13, 2020
@renovate-bot renovate-bot force-pushed the renovate/github.ghproxy.top-bazelbuild-rules_go-0.x branch from 263a36a to 2cfebb1 Compare May 15, 2020 22:13
@renovate-bot renovate-bot changed the title Update module bazelbuild/rules_go to v0.23.0 Update module bazelbuild/rules_go to v0.23.1 May 15, 2020
@achew22 achew22 merged commit e69d20a into bazelbuild:master May 15, 2020
@renovate-bot renovate-bot deleted the renovate/github.ghproxy.top-bazelbuild-rules_go-0.x branch May 15, 2020 23:40
karsmars pushed a commit to lucidsoftware/bazel-watcher that referenced this pull request Jun 10, 2020
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.

3 participants