Skip to content

The central registry of Bazel modules for the Bzlmod external dependency system.

License

Notifications You must be signed in to change notification settings

danielmachlab/bazel-central-registry

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bazel Central Registry

Status: This repository is still in alpha test phase, the content may not be accurate and can change without any notice.

Goal

A registry of Bazel modules for the Bzlmod external dependency system. It is the recommended Bazel registry to publish your Bazel open source projects for downstream users.

For more information, see the Bazel Central Registry Policies and Procedures.

Roles

Module Contributor

A person who contributes a Bazel module entry to this registry is a module contributor.

To contribute a Bazel module, you can start with the interactive helper script:

python3 ./tools/add_module.py

Module Maintainer

A person who maintains a specific module entry in this registry is a module maintainer. The name and contact information of the module maintainers are recorded in the metadata.json file for each module.

Note that, a module maintainer doesn't have to be the project owner. Ideally, we prefer the project owner to maintain the module entry, as they know the project the best. But if the project owner is not maintaining the entry, a Bazel user who is interested in making the project available in this registry could also take on the responsibility.

Being a module maintainer means:

  • You will be asked to review future changes of this module entry. For example, a PR for adding a new version for this module.
  • You will be asked for help when a new version of the module is required by users.
  • You should maintain the compatibility for this module when necessary.

To become a module maintainer, send a PR to add yourself as a maintainer in the metadata.json file of the module you want to maintain.

Registry Maintainer

Currently, the Bazel team is the registry maintainer, who are responsible for:

  • Review and merge PRs for this repository.
  • Maintain testing and serving infrastructures for the Bazel Central Registry.

presubmit.yml

We require every module version to have a presubmit.yml file. With this file, you can specify a list of build and test targets for supported platforms. Those could be the targets you want to expose to the downstream users and a few integration tests that have good coverage over your APIs.

Note that, it's NOT recommended to specify your entire test suite in this presubmit.yml file. Because running the entire test suite could be expensive and the result could be flaky. It's best to specify a list of test targets that are heavily used, well maintained and have a history of providing good signal and high-quality test results.

The presubmit.yml file will be used for:

About

The central registry of Bazel modules for the Bzlmod external dependency system.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 94.0%
  • Shell 6.0%