feat(generate-registry): support config file and filter versions and assets #3562
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Close #3561
This pull request enables you to filter versions and assets when running
aqua gr
command.Scaffold configuration file
aqua-generate-registry.yaml
:aqua-generate-registry.yaml:
The fields
version
andasset
are expr's expressions.https://expr-lang.org/docs/language-definition
These expressions must return boolean.
If they return true, the version and asset are used.
Otherwise, they are ignored.
For instance,
version: not (Version matches "-rc$")
excludes versions with the suffix-rc
.Example
In this example, we create the registry for fission/fission.
aqua-generate-registry.yaml is generated:
Practice
I think
asset
should be an expression to negate.⭕
❌
Because
Asset matches "foo"
excludes assets likeSHA256SUM
andmultiple.intoto.jsonl
.And it's hard to find the mistake.
So you should specify excluded assets explicitly.