bazel-skylib/gazelle/bzl
Andrew Z Allen b2ffc94b17
Gazelle now handles imports from `@bazel_tools` (#273)
`@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>
2020-10-19 12:49:17 -04:00
..
testdata Gazelle now handles imports from `@bazel_tools` (#273) 2020-10-19 12:49:17 -04:00
BUILD Add support for gazelle handling relative imports (#271) 2020-09-07 15:29:39 -06:00
README.md Move bzl ext (#265) 2020-08-20 13:14:55 -04:00
gazelle.go Gazelle now handles imports from `@bazel_tools` (#273) 2020-10-19 12:49:17 -04:00
gazelle_test.go Move bzl ext (#265) 2020-08-20 13:14:55 -04:00

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 loaded 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.