b2ffc94b17
`@bazel_tools` is tricky since it is effectively a part of the standard library that can not have a `bzl_library` attached to it. As a simple fix for this, `bzl_library` can have a srcs dependency on it so that it includes the transitive closure of all of its dependencies. `@bazel_tools` imports are rewritten into the `srcs` attribute since they are `exports_files`ed from the @bazel_tools. Co-authored-by: c-parsons <cparsons@google.com> |
||
---|---|---|
.. | ||
testdata | ||
BUILD | ||
README.md | ||
gazelle.go | ||
gazelle_test.go |
README.md
Gazelle
Gazelle is a BUILD
file generator for Bazel. This directory contains a
language extension for the Gazelle generator that allows it to automatically
parse valid bzl_library
targets for all .bzl
files in a repo in which it
runs. It will additionally include a deps
entry tracking every .bzl
that is
load
ed into the primary file.
This can be used, for example, to generate
stardoc
documentation for your
.bzl
files, both simplify the task of and improve the quality of
documentation.