-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
chore(release): vendor aqua registry from main #10286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -283,12 +283,12 @@ AQUA_REGISTRY_METADATA="$AQUA_REGISTRY_DIR/metadata.json" | |
| AQUA_REGISTRY_FILE="$AQUA_REGISTRY_DIR/registry.yml" | ||
| AQUA_REGISTRY_REPO="aquaproj/aqua-registry" | ||
|
|
||
| # Capture current aqua-registry tag before updating | ||
| # Capture current aqua-registry ref before updating | ||
| OLD_AQUA_REGISTRY_TAG="" | ||
| if [[ -f $AQUA_REGISTRY_METADATA ]]; then | ||
| OLD_AQUA_REGISTRY_TAG="$(jq -r '.tag // empty' "$AQUA_REGISTRY_METADATA")" | ||
| fi | ||
| NEW_AQUA_REGISTRY_TAG="$(gh release view --repo "$AQUA_REGISTRY_REPO" --json tagName --jq .tagName)" | ||
| NEW_AQUA_REGISTRY_TAG="$(gh api "repos/$AQUA_REGISTRY_REPO/commits/main" --jq .sha)" | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Commit SHA breaks tag assertionMedium Severity The release script now records the upstream Reviewed by Cursor Bugbot for commit 42eaa6c. Configure here. |
||
|
|
||
| rm -rf "$AQUA_REGISTRY_DIR" | ||
| mkdir -p "$AQUA_REGISTRY_DIR" | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maininstead of a tagged releaseFetching the latest commit SHA from
aquaproj/aqua-registry'smainbranch means the vendored registry can include WIP or unreleased changes that have not gone through aqua-registry's own release testing. Between upstream releases,mainmay contain broken YAML, schema changes, or incomplete package entries. Previously the code used the latest tagged release (gh release view), which is a stable, explicitly tested snapshot. This trade-off deliberately accepts instability to keep packages fresher, but it could cause a mise release to ship a vendored registry that aqua-registry themselves haven't yet cut as stable.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!