Bazelregistry
kind: bazelregistry
On this page
| source | condition | target |
|---|---|---|
✔ | ✔ | ✗ |
Description
source
The Bazelregistry "source" retrieves an information from a bazelregistry file.
condition
The Bazelregistry "condition" tests that an information exist in a bazelregistry file.
target
Not supported. Feel free to open an issue if you want to see this implemented.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| module | string | Module specifies the Bazel module name to query from the registry compatible:
example:
| |
| url | string | URL specifies the custom registry URL (defaults to Bazel Central Registry) compatible:
default: https://raw.githubusercontent.com/bazelbuild/bazel-central-registry/main/modules/{module}/metadata.json example:
remarks:
| |
| versionfilter | object | VersionFilter provides parameters to specify version pattern and its type like regex, semver, or just latest. compatible:
default: kind: latest | |
| kind | string | specifies the version kind such as semver, regex, or latest | |
| pattern | string | specifies the version pattern according the version kind for semver, it is a semver constraint for regex, it is a regex pattern for time, it is a date format | |
| regex | string | specifies the regex pattern, used for regex/semver and regex/time. Output of the first capture group will be used. | |
| replaceall | object | replaceAll applies a regex replacement to version strings before filtering. This is useful for transforming versions (e.g., curl-8_15_0 to curl-8.15.0) before regex extraction. | |
| strict | boolean | strict enforce strict versioning rule. Only used for semantic versioning at this time |
Example
sources:
rules_python:
name: Get latest version of Bazel module rules_python
kind: bazelregistry
spec:
module: rules_python
versionfilter:
kind: semver
pattern: '>=0.25.0'