fix(hack): verify mikefarah yq in promote-retag

Address review feedback from gemini-code-assist on hack/promote-retag.sh:27: command -v yq only confirms some yq is on PATH; the script's queries use mikefarah syntax, so reject python-yq and other variants by checking the version string, mirroring the Makefile build-deps check.

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
This commit is contained in:
Myasnikov Daniil committed 2026-07-06 10:03:47 +05:00
1 parent 328394a873
commit 020e76a842
1 file changed
+3
+3
View File
@@ -24,6 +24,9 @@ DRY_RUN=0
[ "${2:-}" = "--dry-run" ] && DRY_RUN=1
command -v yq >/dev/null || { echo "yq (mikefarah) is required" >&2; exit 1; }
# The queries below use mikefarah syntax; reject python-yq and other variants
# (mirrors the build-deps check in the Makefile).
yq --version 2>&1 | grep -q mikefarah || { echo "yq (mikefarah) is required" >&2; exit 1; }
command -v skopeo >/dev/null || { echo "skopeo is required" >&2; exit 1; }
# Collect "repo@sha256:..." refs from every package values.yaml, across the