v0.29.0
Changes
-
nogo analyzers may now depend on
go_library
rules (#2922).This is a major upgrade to nogo usability that enables the use of
the popular staticcheck tool, via
https://github.com/sluongng/staticcheck-codegen.This requires an update to Gazelle v0.24
Many thanks to @thomas-wk
-
Editor / IDE integration (gopackagesdriver) now supports automatic target detection (#2932).
No user input is required after the
GOPACKAGESDRIVER
setup.
This effectively deprecates the following environment variables:GOPACKAGESDRIVER_BAZEL_TARGETS
GOPACKAGESDRIVER_BAZEL_QUERY
GOPACKAGESDRIVER_BAZEL_TAG_FILTERS
Many thanks to @steeve for his ongoing development of gopackagesdriver
-
The rules_cc dependency has been removed (#2950).
-
rules_go tool builds are now reproducible (#2952).
Thanks to all of the contributors.
Compatibility
- Bazel 4.2.0 or higher is now required. The previous minimum version
was 4.0.0.
Updated dependencies
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.
bazel_skylib
updated tov1.1.1
org_golang_x_tools
updated tov0.1.7
org_golang_x_sys
updated tomaster
as of 2021-10-06.org_golang_google_genproto
updated tomaster
as of 2021-10-06.go_googleapis
updated tomaster
as of 2021-10-06.
WORKSPACE
code
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "io_bazel_rules_go",
sha256 = "2b1641428dff9018f9e85c0384f03ec6c10660d935b750e3fa1492a281a53b0f",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.29.0/rules_go-v0.29.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.29.0/rules_go-v0.29.0.zip",
],
)
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
go_rules_dependencies()
go_register_toolchains(version = "1.17.1")
http_archive(
name = "bazel_gazelle",
sha256 = "de69a09dc70417580aabf20a28619bb3ef60d038470c7cf8442fafcf627c21cb",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz",
],
)
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
gazelle_dependencies()