bazelbuild/rules_go
### [`v0.19.1`](https://togithub.com/bazelbuild/rules_go/releases/0.19.1)
[Compare Source](https://togithub.com/bazelbuild/rules_go/compare/0.19.0...0.19.1)
#### Bug fixes
This release contains fixes for coverage, debugging, and race mode that were discovered after the 0.19.0 release.
#### WORKSPACE code
To use this release, add this code to your WORKSPACE file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
urls = [
"https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.19.1/rules_go-0.19.1.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/0.19.1/rules_go-0.19.1.tar.gz",
],
sha256 = "8df59f11fb697743cbb3f26cfb8750395f30471e9eabde0d174c3aebc7a1cd39",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
### [`v0.19.0`](https://togithub.com/bazelbuild/rules_go/releases/0.19.0)
[Compare Source](https://togithub.com/bazelbuild/rules_go/compare/0.18.7...0.19.0)
#### Compatibility
The minimum supported version of Bazel is now 0.23.0.
Ubuntu 14.04 is no longer supported.
#### Changes
- When cross-compiling, a C/C++ toolchain is no longer required. Previously, a toolchain was required but usually not used. To cross-compile with cgo, add a `_cgo` suffix to the target platform. For example, `--platforms=@io_bazel_rules_go//go/toolchain:linux_amd64_cgo`.
- When stamping `go_binary` and `go_tests` with the `x_defs` attribute, the `--stamp` command-line flag must be used. Without this flag, link stamping is not done. This improves caching of link actions and is consistent with what `cc_binary` and other native Bazel rules do.
- A repository named `go_sdk` is no longer required. `go_register_toolchains` will automatically detect any declared SDK workspaces. This simplifies workspaces that use both local and remote execution.
- `linkmode = "pie"` is now supported in `go_binary` and `go_test`.
- `go_library` now supports an `importpath_aliases` attribute that accepts a list of alternative strings that may be used to import the package. This is needed for [minimal module compatibility](https://togithub.com/golang/go/wiki/Modules#how-are-v2-modules-treated-in-a-build-if-modules-support-is-not-enabled-how-does-minimal-module-compatibility-work-in-197-1103-and-111).
- Go packages are now built with a single `GoCompilePkg` action. We no longer use separate actions for compilation, coverage, assembly, packing, etc. cgo code is no longer built with `cc_library` and custom rules. This should reduce overhead in remote execution configurations.
#### Deprecations
- The `objc = True` feature is now deprecated. `go_library` and other rules can now compile .m and .mm files directly when `cgo = True` is set.
- Go 1.10 support is now deprecated.
See [Deprecation schedule](/deprecation.rst) for more information.
#### Updated dependencies
- `bazel_skylib` has been updated to 0.8.0.
- `org_golang_x_tools` has been updated to `master` as of 2019-07-08.
- `com_github_golang_protobuf` has been updated to v1.3.1.
- `com_github_mwitkow_go_proto_validators` has been updated to `master` as of 2019-07-08.
- `go_googleapis` has been updated to `master` as of 2019-07-09.
Several workspaces are no longer declared in `go_rules_dependencies`.
- `com_google_protobuf` is no longer declared. Users of `proto_library` and `go_proto_library` must declared it separately in WORKSPACE. Its dependencies must also be declared using its dependency macro, `protobuf_deps`, declared in `@com_google_protobuf//:protobuf_deps.bzl`. See [Proto dependencies](/go/workspace.rst#proto-dependencies) for more information.
- `org_golang_google_grpc` is no longer declared. Recent versions have a large number of dependencies, and we can't realistically manage all of them. It's better to import them as [`go_repository`](https://togithub.com/bazelbuild/bazel-gazelle/blob/master/repository.rst#go_repository) rules using [`gazelle update-repos`](https://togithub.com/bazelbuild/bazel-gazelle#update-repos). See [gRPC dependencies](/go/workspace.rst#grpc-dependencies) for more information.
- `org_golang_x_net`, `org_golang_x_text`, and `org_golang_x_sys` are no longer declared. They were provided as dependencies of gRPC.
- `com_github_golang_glog` is no longer declared. It was only used in a legacy example.
- `com_github_kevinburke_go_bindata` is now declared in the `go_embed_data_dependencies` macro in `@io_bazel_rules_go//extras:embed_data_deps.bzl`. It has been updated to v3.13.0, the latest version as of 2019-07-08.
#### WORKSPACE code
To use this release, add the code below to your WORKSPACE file.
**REMINDER:** `com_google_protobuf` and some other proto repositories are no longer declared in `go_rules_dependencies`. See [Proto dependencies](/go/workspace.rst#proto-dependencies) and [gRPC dependencies](/go/workspace.rst#grpc-dependencies) for details.
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
urls = [
"https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.19.0/rules_go-0.19.0.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/0.19.0/rules_go-0.19.0.tar.gz",
],
sha256 = "9fb16af4d4836c8222142e54c9efa0bb5fc562ffc893ce2abeac3e25daead144",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
### [`v0.18.7`](https://togithub.com/bazelbuild/rules_go/releases/0.18.7)
[Compare Source](https://togithub.com/bazelbuild/rules_go/compare/0.18.6...0.18.7)
#### New Go versions
Go 1.12.7 and 1.11.12 are now supported.
#### Compatibility and bug fixes
Several small bug fixes and compatibility improvements are included in this release.
However, recent Bazel compatibility changes have required significant changes in rules_go that cannot be backported to this branch. In particular, the new C/C++ toolchain selection mechanism causes problems with rules_go cross-compilation. This is fixed on `master`, and we'll be releasing rules_go 0.19.0 soon. Until then, if you have issues with cross-compilation, you may need to use either Bazel 0.25.2 or rules_go at `master`.
#### WORKSPACE code
To use this release, add this code to your WORKSPACE file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
urls = [
"https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.18.7/rules_go-0.18.7.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/0.18.7/rules_go-0.18.7.tar.gz",
],
sha256 = "45409e6c4f748baa9e05f8f6ab6efaa05739aa064e3ab94e5a1a09849c51806a",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".
:no_bell: 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 Renovate Bot. View repository job log here.
This PR contains the following updates:
0.18.6
->0.19.1
Release Notes
bazelbuild/rules_go
### [`v0.19.1`](https://togithub.com/bazelbuild/rules_go/releases/0.19.1) [Compare Source](https://togithub.com/bazelbuild/rules_go/compare/0.19.0...0.19.1) #### Bug fixes This release contains fixes for coverage, debugging, and race mode that were discovered after the 0.19.0 release. #### WORKSPACE code To use this release, add this code to your WORKSPACE file: load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "io_bazel_rules_go", urls = [ "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.19.1/rules_go-0.19.1.tar.gz", "https://github.com/bazelbuild/rules_go/releases/download/0.19.1/rules_go-0.19.1.tar.gz", ], sha256 = "8df59f11fb697743cbb3f26cfb8750395f30471e9eabde0d174c3aebc7a1cd39", ) load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains") go_rules_dependencies() go_register_toolchains() ### [`v0.19.0`](https://togithub.com/bazelbuild/rules_go/releases/0.19.0) [Compare Source](https://togithub.com/bazelbuild/rules_go/compare/0.18.7...0.19.0) #### Compatibility The minimum supported version of Bazel is now 0.23.0. Ubuntu 14.04 is no longer supported. #### Changes - When cross-compiling, a C/C++ toolchain is no longer required. Previously, a toolchain was required but usually not used. To cross-compile with cgo, add a `_cgo` suffix to the target platform. For example, `--platforms=@io_bazel_rules_go//go/toolchain:linux_amd64_cgo`. - When stamping `go_binary` and `go_tests` with the `x_defs` attribute, the `--stamp` command-line flag must be used. Without this flag, link stamping is not done. This improves caching of link actions and is consistent with what `cc_binary` and other native Bazel rules do. - A repository named `go_sdk` is no longer required. `go_register_toolchains` will automatically detect any declared SDK workspaces. This simplifies workspaces that use both local and remote execution. - `linkmode = "pie"` is now supported in `go_binary` and `go_test`. - `go_library` now supports an `importpath_aliases` attribute that accepts a list of alternative strings that may be used to import the package. This is needed for [minimal module compatibility](https://togithub.com/golang/go/wiki/Modules#how-are-v2-modules-treated-in-a-build-if-modules-support-is-not-enabled-how-does-minimal-module-compatibility-work-in-197-1103-and-111). - Go packages are now built with a single `GoCompilePkg` action. We no longer use separate actions for compilation, coverage, assembly, packing, etc. cgo code is no longer built with `cc_library` and custom rules. This should reduce overhead in remote execution configurations. #### Deprecations - The `objc = True` feature is now deprecated. `go_library` and other rules can now compile .m and .mm files directly when `cgo = True` is set. - Go 1.10 support is now deprecated. See [Deprecation schedule](/deprecation.rst) for more information. #### Updated dependencies - `bazel_skylib` has been updated to 0.8.0. - `org_golang_x_tools` has been updated to `master` as of 2019-07-08. - `com_github_golang_protobuf` has been updated to v1.3.1. - `com_github_mwitkow_go_proto_validators` has been updated to `master` as of 2019-07-08. - `go_googleapis` has been updated to `master` as of 2019-07-09. Several workspaces are no longer declared in `go_rules_dependencies`. - `com_google_protobuf` is no longer declared. Users of `proto_library` and `go_proto_library` must declared it separately in WORKSPACE. Its dependencies must also be declared using its dependency macro, `protobuf_deps`, declared in `@com_google_protobuf//:protobuf_deps.bzl`. See [Proto dependencies](/go/workspace.rst#proto-dependencies) for more information. - `org_golang_google_grpc` is no longer declared. Recent versions have a large number of dependencies, and we can't realistically manage all of them. It's better to import them as [`go_repository`](https://togithub.com/bazelbuild/bazel-gazelle/blob/master/repository.rst#go_repository) rules using [`gazelle update-repos`](https://togithub.com/bazelbuild/bazel-gazelle#update-repos). See [gRPC dependencies](/go/workspace.rst#grpc-dependencies) for more information. - `org_golang_x_net`, `org_golang_x_text`, and `org_golang_x_sys` are no longer declared. They were provided as dependencies of gRPC. - `com_github_golang_glog` is no longer declared. It was only used in a legacy example. - `com_github_kevinburke_go_bindata` is now declared in the `go_embed_data_dependencies` macro in `@io_bazel_rules_go//extras:embed_data_deps.bzl`. It has been updated to v3.13.0, the latest version as of 2019-07-08. #### WORKSPACE code To use this release, add the code below to your WORKSPACE file. **REMINDER:** `com_google_protobuf` and some other proto repositories are no longer declared in `go_rules_dependencies`. See [Proto dependencies](/go/workspace.rst#proto-dependencies) and [gRPC dependencies](/go/workspace.rst#grpc-dependencies) for details. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "io_bazel_rules_go", urls = [ "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.19.0/rules_go-0.19.0.tar.gz", "https://github.com/bazelbuild/rules_go/releases/download/0.19.0/rules_go-0.19.0.tar.gz", ], sha256 = "9fb16af4d4836c8222142e54c9efa0bb5fc562ffc893ce2abeac3e25daead144", ) load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains") go_rules_dependencies() go_register_toolchains() ### [`v0.18.7`](https://togithub.com/bazelbuild/rules_go/releases/0.18.7) [Compare Source](https://togithub.com/bazelbuild/rules_go/compare/0.18.6...0.18.7) #### New Go versions Go 1.12.7 and 1.11.12 are now supported. #### Compatibility and bug fixes Several small bug fixes and compatibility improvements are included in this release. However, recent Bazel compatibility changes have required significant changes in rules_go that cannot be backported to this branch. In particular, the new C/C++ toolchain selection mechanism causes problems with rules_go cross-compilation. This is fixed on `master`, and we'll be releasing rules_go 0.19.0 soon. Until then, if you have issues with cross-compilation, you may need to use either Bazel 0.25.2 or rules_go at `master`. #### WORKSPACE code To use this release, add this code to your WORKSPACE file: load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "io_bazel_rules_go", urls = [ "https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/rules_go/releases/download/0.18.7/rules_go-0.18.7.tar.gz", "https://github.com/bazelbuild/rules_go/releases/download/0.18.7/rules_go-0.18.7.tar.gz", ], sha256 = "45409e6c4f748baa9e05f8f6ab6efaa05739aa064e3ab94e5a1a09849c51806a", ) load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains") go_rules_dependencies() go_register_toolchains()Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!
".:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot. View repository job log here.