gazelle

command
v0.0.0-...-2d0394b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 30 Imported by: 0

README

cmd/gazelle

This is essentially a copy of the files in bazel-contrib/bazel-gazelle/cmd/gazelle.

To upgrade gazelle, one must:

  • Compare changes in the source repo@version to the files here. It's easiest to just copy over each file and see where the diffs are. Make sure langs.go includes github.com/stackb/rules_proto/language/protobuf.
  • Since the proto_gazelle.bzl rule uses @bazel_gazelle//internal:gazelle.bash.in, changes there must remain compatible with proto_gazelle. Look at the diff there and make sure the _proto_gazelle_impl is satifying the needs of that template.
  • Remember that this cmd/gazelle must be buildable via the standard go toolchain (see proto_repository_tools.bzl). All deps must be in the vendor tree.

Documentation

Overview

Command gazelle is a BUILD file generator for Go projects. See "gazelle --help" for more details.

Directories

Path Synopsis
internal
wspace
Package wspace provides functions to locate and modify a bazel WORKSPACE file.
Package wspace provides functions to locate and modify a bazel WORKSPACE file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL