Skip to content

v0.23.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@jayconrod jayconrod released this 08 Mar 20:39
e909144

Changes

  • Go
    • CXXFLAGS and CPPFLAGS #cgo directives are separated into cxxopts and cppopts attributes, respectively. Thanks @otan.
    • Dependencies on mapped kinds are now supported. Thanks @robfig.
    • The gazelle rule now supports the update-repos command.
    • The gazelle rule now has a data attribute and expands $(location) within arguments.
    • go_repository's build_naming_convention is now considered when resolving external dependencies. If a repository already has build files, this attribute may be set to indicate which naming convention it follows.
    • embedsrcs attributes are generated for packages that contain //go:embed directives.
  • Protobuf
    • proto_strip_import_prefix may be set in the root build file. Thanks @linzhp.

WORKSPACE code

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "bazel_gazelle",
    sha256 = "62ca106be173579c0a167deb23358fdfe71ffa1e4cfdddf5582af26520f1c66f",
    urls = [
        "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.23.0/bazel-gazelle-v0.23.0.tar.gz",
        "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.23.0/bazel-gazelle-v0.23.0.tar.gz",
    ],
)

load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")

gazelle_dependencies()