{"id":37629198,"url":"https://github.com/vectorgrp/bazel-rules","last_synced_at":"2026-01-26T17:27:58.026Z","repository":{"id":285395462,"uuid":"935343702","full_name":"vectorgrp/bazel-rules","owner":"vectorgrp","description":"Vector Bazel Rules and Toolchains","archived":false,"fork":false,"pushed_at":"2026-01-14T11:56:12.000Z","size":160,"stargazers_count":14,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-14T14:25:10.192Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Starlark","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vectorgrp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE.txt","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-19T09:43:50.000Z","updated_at":"2026-01-14T11:56:15.000Z","dependencies_parsed_at":"2025-03-31T14:30:47.681Z","dependency_job_id":"a2f024af-6843-4ee1-a71d-b1e004fb0a71","html_url":"https://github.com/vectorgrp/bazel-rules","commit_stats":null,"previous_names":["vectorgrp/bazel-rules"],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/vectorgrp/bazel-rules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vectorgrp%2Fbazel-rules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vectorgrp%2Fbazel-rules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vectorgrp%2Fbazel-rules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vectorgrp%2Fbazel-rules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vectorgrp","download_url":"https://codeload.github.com/vectorgrp/bazel-rules/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vectorgrp%2Fbazel-rules/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478088,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-16T10:53:51.615Z","updated_at":"2026-01-26T17:27:57.986Z","avatar_url":"https://github.com/vectorgrp.png","language":"Starlark","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vector Bazel Repository\n\nA 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.\n\n## Consumption of Vector Bazel rules\n\nTo consume the rules defined in this repository, you need to register the custom Bazel Central Registry (BCR) located in this repository.\n\n**Configuration Steps:**\n\n1.  **Update `.bazelrc`**: Add the following flag to your project's `.bazelrc` file to point Bazel to the registry directory and the Bazel Central Registry.\n\n    ```properties\n    common --registry=https://raw.githubusercontent.com/vectorgrp/bazel-rules/main/vector-bazel-central-registry\n    common --registry=https://bcr.bazel.build\n    ```\n\n2.  **Add Dependencies**: In your `MODULE.bazel` file, declare the dependencies you need using `bazel_dep`.\n\n    ```starlark\n    bazel_dep(name = \"rules_common\", version = \"0.2.0\")\n    ```\n\n## Project Overview\n\nThis repository is structured around three main development areas:\n\n### Core Components\n\n- **`bcr-modules/`** - Custom Bazel module development and packaging\n  - Contains module definitions, build configurations, and upload targets\n  - Uses extensive Bazel macros for automated archive building and registry management\n  - Recommended to use VS Code's Bazel Targets extension for managing build targets\n\n- **`rules/`** - Custom Bazel rules development\n  - Houses custom rule definitions and implementations\n  - Used for developing reusable build logic across projects\n\n- **`vector-bazel-central-registry/`** - Module registry management\n  - Maintains the central registry of all custom modules\n  - Automatically updated via Bazel targets - **do not edit manually**\n  - Updates performed via: `bazel run [--//:BUILD_PROD_MODULES=True] //bcr-modules/modules/\u003cmodule_name\u003e:\u003cmodule_name\u003e.add_to_repo`\n  - Use `--//:BUILD_PROD_MODULES=True` flag for production releases\n\n### Supporting Infrastructure\n\n- **`tools/`** - Custom scripts for module management and automation\n- **`docs/`** - Comprehensive documentation and guides\n- **`.github/`** - CI/CD configuration with GitHub Actions workflows\n\n## Repository Structure\n\n```\n├── bcr-modules/                    # Module development and packaging\n│   ├── macros/                     # Bazel macros for module automation\n│   │   ├── add_module_macro.bzl    # Registry integration macro\n│   │   ├── module_macro.bzl        # Module packaging macro\n│   │   └── upload_macro.bzl        # Upload automation macro\n│   ├── modules/                    # Individual module definitions\n│   │   ├── rules_common/           # Example module\n│   │   │   ├── 0.2.0/              # Version-specific configuration\n│   │   │   ├── BUILD.bazel         # Module build definition\n│   │   │   └── *.MODULE.bazel      # Module dependencies\n│   │   └── [other modules]/\n│   ├── rules/                      # Module build rules\n│   └── BUILD.bazel.tpl             # Default BUILD file template\n├── vector-bazel-central-registry/  # Central module registry\n├── tools/                          # Management scripts\n├── docs/                           # Documentation and guides\n└── .github/                        # CI/CD configuration\n```\n\n## Rule Documentation\n\nComprehensive documentation for each Bazel module is available in its respective directory:\n\n**User Documentation**: `bcr-modules/modules/\u003cmodule_name\u003e/README.md`\n\n### Available Modules\n\n- **rules_cfg5** - DaVinci Configurator 5 code generation\n- **rules_common** - Common utilities for DaVinci tool integration\n- **rules_davinci_developer** - DaVinci Developer toolchain\n- **rules_dvteam** - DaVinci Team integration automation\n- **rules_gradle** - Gradle toolchain and authentication\n- **rules_ocs** - OCS execution and CFG5 script tasks\n\nEach module's README.md contains installation instructions, usage examples, API reference and troubleshooting information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvectorgrp%2Fbazel-rules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvectorgrp%2Fbazel-rules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvectorgrp%2Fbazel-rules/lists"}