From 5bc347aed44157162e1871cabafa6ada7242955b Mon Sep 17 00:00:00 2001 From: Timothy Stewart Date: Thu, 30 Jul 2026 22:41:59 -0500 Subject: [PATCH] fix(ci): support installed yq syntax - Use portable yq raw-output syntax when enumerating Molecule boxes\n- Preserve repository-scoped Vagrant cache discovery --- .github/download-boxes.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/download-boxes.sh b/.github/download-boxes.sh index 1d650433..1e81afa1 100755 --- a/.github/download-boxes.sh +++ b/.github/download-boxes.sh @@ -9,14 +9,12 @@ set -euo pipefail GIT_ROOT=$(git rev-parse --show-toplevel) PROVIDER=virtualbox -yq --version - # Define the path to the molecule.yml files -MOLECULE_YML_PATH="${GIT_ROOT}/molecule/*/molecule.yml" +MOLECULE_YML_PATH=("${GIT_ROOT}"/molecule/*/molecule.yml) # Extract and sort unique boxes from all molecule.yml files -all_boxes=$(for file in $MOLECULE_YML_PATH; do - yq eval '.platforms[].box' "$file" +all_boxes=$(for file in "${MOLECULE_YML_PATH[@]}"; do + yq -r '.platforms[].box' "$file" done | sort -u) echo all_boxes: "$all_boxes"