About how to write registry.yaml, please see Registry Configuration.
Please read the following document.
Basically, you don't have to create an Issue before sending a Pull Request. But if the pull request requires the discussion before reviewing, you have to create an Issue in advance.
For example, you don't have to create an Issue in the following cases.
- Add a package
- Fix a typo
On the other hand, for example if you want to change the directory structure in pkgs
or the workflow adding a package,
you have to create an Issue and describe what is changed and why the change is needed.
Checkout the repository and install aqua-registry CLI.
$ git checkout https://github.com/aquaproj/aqua-registry
$ cd aqua-registry
$ aqua i -l # Install aqua-registry CLI
- Scaffold configuration:
aqua-registry scaffold <package name>
- Fix generated files if the scaffold fails
- Update registry.yaml:
aqua-registry gr
- Test:
aqua i
and run installed tools - Repeat the step 2 ~ 4 until packages are installed properly
- Create a pull request:
aqua-registry create-pr-new-pkg <package name>...
scaffold
command against the same package at multiple times.
pkgs/**/registry.yaml
, you have to run aqua-registry gr
to reflect the update to registry.yaml
on the repository root directory.
https://aquaproj.github.io/docs/reference/registry-style-guide
Please consider the following OS and CPU Architecture.
- OS
- windows
- darwin
- linux
- CPU Architecture
- amd64
- arm64
We test the registry in CI on the above environments by GitHub Actions' build matrix.
If the package has the field version_overrides,
please add not only the latest version but also old versions in pkg.yaml
to test if old versions can be installed properly.
e.g. pkg.yaml registry.yaml
packages:
- name: scaleway/scaleway-cli@v2.6.1
- name: scaleway/scaleway-cli
version: v2.4.0
<package name>@<version>
for the old version to prevent Renovate from updating the old version.
👎
packages:
- name: scaleway/scaleway-cli@v2.6.1
- name: scaleway/scaleway-cli@v2.6.1
Please see https://aquaproj.github.io/docs/reference/change-os-arch-for-test