Back to list
sluongng

bazel-central-registry

by sluongng

dotfiles and configurations for personal developement environment

5🍴 0📅 Jan 16, 2026

SKILL.md


name: bazel-central-registry description: Work with Bazel Central Registry (BCR) modules and bzlmod dependencies. Use for finding modules/versions in a BCR checkout, checking latest BCR versions, upgrading bazel_dep entries in MODULE.bazel (including includes), and analyzing dependency trees via the bundled scripts/bcr_tool.py and upstream scripts/registry.py.

Bazel Central Registry

Overview

Use this skill to query BCR module metadata, update bzlmod dependencies, and inspect dependency trees. The skill bundles the upstream registry.py helper and a thin CLI (bcr_tool.py) that wraps common workflows.

Quick start

  • List direct deps from a workspace (follows include() chains):
    • python3 scripts/bcr_tool.py list-deps --module-file /path/to/MODULE.bazel
  • Check latest versions from BCR:
    • python3 scripts/bcr_tool.py latest --module rules_go --module rules_python
  • Dry-run upgrade (print diffs only):
    • python3 scripts/bcr_tool.py upgrade --module-file /path/to/MODULE.bazel
  • Apply upgrade edits:
    • python3 scripts/bcr_tool.py upgrade --module-file /path/to/MODULE.bazel --write
  • Best-effort dependency tree (bounded depth):
    • python3 scripts/bcr_tool.py deps-tree --module-file /path/to/MODULE.bazel --max-depth 2

Tasks

Find modules / versions (local registry clone)

  1. Clone or point at a local bazel-central-registry checkout.
  2. Search by substring:
    • python3 scripts/bcr_tool.py find --registry-path /path/to/bazel-central-registry --query rules_
  3. List versions for a module:
    • python3 scripts/bcr_tool.py list-versions --registry-path /path/to/bazel-central-registry --module rules_go

Upgrade modules in MODULE.bazel

  • upgrade reads the root MODULE.bazel, follows include() files, and updates bazel_dep(..., version = "...") entries to the latest BCR version.
  • Use --module to target a subset and --include-overrides to update single_version_override entries.
  • Always start with a dry-run, then re-run with --write when the diff looks correct.

Analyze dependency tree

  • list-deps shows direct deps (names + versions) from all included module files.
  • deps-tree fetches MODULE.bazel files from BCR for a best-effort transitive tree (bounded by --max-depth).
  • For a fully resolved graph (including overrides/extensions), run Bazel directly:
    • bazel mod graph

Resources

scripts/

  • registry.py: upstream BCR registry helper (used for metadata and downloads).
  • bcr_tool.py: CLI wrapper for module search, latest version lookup, upgrades, and dependency inspection.

Score

Total Score

55/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon