Bazel Starlib is a collection of projects that contain rulesets and libraries that are useful for the implementation of Bazel projects.
| Project | Description | Documentation |
|---|---|---|
| bazeldoc | Generate Starlark documentation using Bazel Stardoc. Formerly hosted as bazel-doc. | API, How-to |
| bzlformat | Format Bazel Starlark files using Buildifier, test that the formatted files exist in the workspace directory, and copy formatted files to the workspace directory. Formerly hosted as rules_bzlformat. | API, How-to, Examples |
| bzllib | Collection of Starlark libraries. | API, How-to |
| bzlrelease | Automate and customize the generation of releases using GitHub Actions. | API, How-to |
| bzltidy | Collect Bazel actions that keep your source files up-to-date. | API, How-to |
| markdown | Maintain markdown files. | API, How-to, Examples |
| shlib | Collection of libraries useful when implementing shell binaries, libraries, and tests. Formerly hosted as bazel_shlib. | API, How-to |
| updatesrc | Copy files from the Bazel output directories to the workspace directory. Formerly hosted as rules_updatesrc | API, How-to, Examples |
The following provides a quick introduction on how to load this repository into your workspace. For more information on how to use the projects from this repository in your workspace, check out the how-to links above and review the the generated documentation.
bazel_dep(name = "cgrindel_bazel_starlib", version = "0.30.0")Execute the following to update the go module files, resolve the Golang dependencies and update the Bazel build files.
$ bazel run @io_bazel_rules_go//go -- github.com/sweet/go_pkg
$ bazel run //:go_mod_tidy
$ bazel run //:update_build_files