-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
chore(release): include manually updated aqua-registry entries in the changelog #7603
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 |
|---|---|---|
|
|
@@ -243,9 +243,13 @@ fi | |
| mise run fetch-gpg-keys | ||
| mise run render ::: lint-fix | ||
|
|
||
| # Capture current aqua-registry package list before updating | ||
| # Capture current aqua-registry package list before updating (from the last tag) | ||
| OLD_AQUA_PKGS="" | ||
| if [[ -d crates/aqua-registry/aqua-registry/pkgs ]]; then | ||
| LATEST_TAG=$(git tag --list "v[0-9]*" --sort=-v:refname | head -1) | ||
|
|
||
| if [[ -n $LATEST_TAG ]]; then | ||
| OLD_AQUA_PKGS="$(git ls-tree -r --name-only "$LATEST_TAG" crates/aqua-registry/aqua-registry/pkgs | grep "/registry.yaml$" | sed 's|crates/aqua-registry/aqua-registry/pkgs/||;s|/registry.yaml||' | sort)" | ||
|
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. Script crashes when grep finds no matchesHigh Severity The script uses |
||
| elif [[ -d crates/aqua-registry/aqua-registry/pkgs ]]; then | ||
| OLD_AQUA_PKGS="$(find crates/aqua-registry/aqua-registry/pkgs -name registry.yaml -type f | sed 's|crates/aqua-registry/aqua-registry/pkgs/||;s|/registry.yaml||' | sort)" | ||
| fi | ||
|
|
||
|
|
||
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.
The grep command in the pipeline could fail if no registry.yaml files exist in the tag, causing the script to exit due to pipefail. Consider adding
|| trueat the end of this command substitution, or usegrep ... || trueto handle the case where no files match the pattern.