Releases: bazel-contrib/rules_go
v0.22.1
Bug fix
This release fixes an issue with generated rules in the @go_googleapis
repository (#2387).
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.1/rules_go-v0.22.1.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.22.1/rules_go-v0.22.1.tar.gz",
],
sha256 = "e6a6c016b0663e06fa5fccf1cd8152eab8aa8180c583ec20c872f4f9953a7ac5",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
v0.22.0
New Go versions
Go 1.14 is now supported.
Compatibility
This release is outside the normal release schedule. It updates the version of com_github_golang_protobuf
declared in go_rules_dependencies
(along with other dependencies) in order to maintain compatibility with the newest version of com_google_cloud_go
and other repositories that require the latest proto compiler.
Updated dependencies
platforms
(https://github.com/bazelbuild/platforms) has been added atmaster
as of 2020-02-21 (see bazelbuild/bazel#8622).rules_cc
(https://github.com/bazelbuild/rules_cc) has been added atmaster
as of 2020-02-21 (see bazelbuild/bazel#8743).org_golang_x_tools
is updated tomaster
as of 2020-02-21.com_github_golang_protobuf
is updated tov1.3.3
, latest as of 2020-02-21.org_golang_google_genproto
is updated tomaster
as of 2020-02-21.go_googleapis
is updated tomaster
as of 2020-02-21.
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.0/rules_go-v0.22.0.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.22.0/rules_go-v0.22.0.tar.gz",
],
sha256 = "94f90feaa65c9cdc840cd21f67d967870b5943d684966a47569da8073e42063d",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
v0.21.4
New Go versions
Go 1.14 is 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.4/rules_go-v0.21.4.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.21.4/rules_go-v0.21.4.tar.gz",
],
sha256 = "221cf4a69eb30aa9b05a87b585f7b06a44cf3caff782e486a344fce8251dd4e3",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
v0.21.3
New Go versions
Go 1.13.8 and 1.12.17 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.3/rules_go-v0.21.3.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.21.3/rules_go-v0.21.3.tar.gz",
],
sha256 = "af04c969321e8f428f63ceb73463d6ea817992698974abeff0161e069cd08bd6",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
v0.20.7
New Go versions
Go 1.13.8 and 1.12.17 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.20.7/rules_go-v0.20.7.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.20.7/rules_go-v0.20.7.tar.gz",
],
sha256 = "62bedd372f125fe62c16c0cc2ad9d7a2b6a1171d639933a5651a729fdce497fc",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
v0.21.2
Changes
This release fixes a compatibility issue with Bazel at HEAD.
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.2/rules_go-v0.21.2.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.21.2/rules_go-v0.21.2.tar.gz",
],
sha256 = "f99a9d76e972e0c8f935b2fe6d0d9d778f67c760c6d2400e23fc2e469016e2bd",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
v0.20.6
Changes
This release fixes a compatibility issue with Bazel at HEAD.
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.20.6/rules_go-v0.20.6.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.20.6/rules_go-v0.20.6.tar.gz",
],
sha256 = "3d2f79520bf9b33706db63493f2ae69cfcbe8eb6cf44f37666861b42e120d846",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
v0.21.1
New Go versions
Go 1.13.7 and 1.12.16 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.1/rules_go-v0.21.1.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.21.1/rules_go-v0.21.1.tar.gz",
],
sha256 = "b34cbe1a7514f5f5487c3bfee7340a4496713ddf4f119f7a225583d6cafd793a",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
v0.20.5
New Go versions
Go 1.13.7 and 1.12.16 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.20.5/rules_go-v0.20.5.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.20.5/rules_go-v0.20.5.tar.gz",
],
sha256 = "d93230c446e5e0ec12c422412b9b88e3dd39a973572f0eaf3b473a110f65f215",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()
v0.21.0
Compatibility
- The minimum supported version of Bazel is now 1.2.0 (was 0.23.0). Some of our dependencies are no longer compatible with old versions of Bazel, so we needed to drop some support.
- The
go_rule
wrapper function is now deprecated, since it doesn't work well after some Bazel compatibility changes in 2.0.0. See the deprecation schedule for rationale and migration information. In general, we're evaluating a change to the way we handle toolchains and flags in order to better support configurations. If you have custom rules declared withgo_rule
orgo_context
or if you use custom toolchains compatible withgo_toolchain
, please reach out via go-bazel-discuss or on the#bazel
channel on Gophers Slack.
Changes
This release contains no significant user facing changes. Several bugs are fixed, and dependencies are updated. Compatibility with Bazel 2.0.0 and later versions is improved.
Updated dependencies
platforms
(https://github.com/bazelbuild/platforms) has been added atmaster
as of 2020-01-02 (see bazelbuild/bazel#8622).rules_cc
(https://github.com/bazelbuild/rules_cc) has been added atmaster
as of 2020-01-06 (see bazelbuild/bazel#8743).org_golang_x_tools
is updated tomaster
as of 2020-01-02.com_github_golang_protobuf
is updated tov1.3.2
, latest as of 2020-01-03.com_github_mwitkow_go_proto_validators
is updated tov0.3.0
, latest as of 2020-01-03.com_github_gogo_protobuf
is updated tov1.3.1
, latest as of 2020-01-03.org_golang_google_genproto
is updated tomaster
as of 2020-01-03.go_googleapis
is updated tomaster
as of 2020-01-03.- If you use
proto_library
, you may need to migrate torules_proto
(https://github.com/bazelbuild/rules_proto) (see bazelbuild/bazel#8922).
WORKSPACE code
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/v0.21.0/rules_go-v0.21.0.tar.gz",
"https://github.com/bazelbuild/rules_go/releases/download/v0.21.0/rules_go-v0.21.0.tar.gz",
],
sha256 = "b27e55d2dcc9e6020e17614ae6e0374818a3e3ce6f2024036e688ada24110444",
)
load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies", "go_register_toolchains")
go_rules_dependencies()
go_register_toolchains()