v0.33.0
Breaking changes
- cover has been removed in v0.32.0. Please leave a comment if you are affected by this.
Deprecations
- The asm, compile, and pack action generators provided by go_context are deprecated and planned for removal in version v0.36.0. Please leave a comment on the tracking bug if archive and link are not suitable replacements for your use cases.
Bug Fixes
- @sluongng fixed a race condition that could cause non-sandboxed builds of
go_test
targets to fail (#3145) - @abhinav made
//go:embed
work withgo_path
(#3163) - @xytan0056 made gopackagesdriver work with Go 1.18 (#3157)
- @nickgooding ensured that
gomock
can be used with any Gazelle naming convention (#3155) go_library
targets using CGo can now reference unresolved symbols (#3174)
Thanks to all of the contributors!
Compatibility
The minimum required version of Bazel remains at 4.2.1.
Updated dependencies
- Updated
org_golang_x_sys
,org_golang_x_xerrors
,org_golang_google_genproto
,go_googleapis
to their most recent commit as of 2022-06-05
As always, you can use higher versions of rules_go's dependencies by declaring them in WORKSPACE before calling go_rules_dependencies. Lower versions may work but are not supported.
WORKSPACE
code
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "685052b498b6ddfe562ca7a97736741d87916fe536623afb7da2824c0211c369",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.33.0/rules_go-v0.33.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.33.0/rules_go-v0.33.0.zip",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.18.3")