| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A comprehensive Bazel monorepo for developing, building, and managing custom Bazel rules and modules used across Vector projects. This repository provides a streamlined workflow for creating custom modules, packaging them into archives, uploading to artifact registries, and maintaining a central module registry.
To consume the rules defined in this repository, you need to register the custom Bazel Central Registry (BCR) located in this repository.
Configuration Steps:
Update .bazelrc: Add the following flag to your project's .bazelrc file to point Bazel to the registry directory and the Bazel Central Registry.
common --registry=https://raw.githubusercontent.com/vectorgrp/bazel-rules/main/vector-bazel-central-registry
common --registry=https://bcr.bazel.buildAdd Dependencies: In your MODULE.bazel file, declare the dependencies you need using bazel_dep.
bazel_dep(name = "rules_common", version = "0.2.0")This repository is structured around three main development areas:
bcr-modules/ - Custom Bazel module development and packaging
rules/ - Custom Bazel rules development
vector-bazel-central-registry/ - Module registry management
├── bcr-modules/ # Module development and packaging │ ├── macros/ # Bazel macros for module automation │ │ ├── add_module_macro.bzl # Registry integration macro │ │ ├── module_macro.bzl # Module packaging macro │ │ └── upload_macro.bzl # Upload automation macro │ ├── modules/ # Individual module definitions │ │ ├── rules_common/ # Example module │ │ │ ├── 0.2.0/ # Version-specific configuration │ │ │ ├── BUILD.bazel # Module build definition │ │ │ └── *.MODULE.bazel # Module dependencies │ │ └── [other modules]/ │ ├── rules/ # Module build rules │ └── BUILD.bazel.tpl # Default BUILD file template ├── vector-bazel-central-registry/ # Central module registry ├── tools/ # Management scripts ├── docs/ # Documentation and guides └── .github/ # CI/CD configuration
Comprehensive documentation for each Bazel module is available in its respective directory:
User Documentation: bcr-modules/modules/<module_name>/README.md
Each module's README.md contains installation instructions, usage examples, API reference and troubleshooting information.
| Back | FazBrowse Home | New Git URL |