Skip to content

Commit d682ea7

Browse files
stuggiclaude
andcommitted
Improve error logging in pin-bundle-images.sh for EMPTY_SHA
Add detailed error output when SHA cannot be found for a bundle image. This helps debug issues like local path replacements being processed as bundles. Error output now includes: - MOD_PATH: The go module path being processed - BASE: The extracted operator base name - REF: The git reference/version - REPO_URL: The repository URL being queried - REPO_CURL_URL: The API URL used for queries - Bundle: The full bundle image reference attempted Example output when failing: ERROR: Failed to find bundle image SHA for: MOD_PATH: ./api BASE: api REF: 00010101000000-000000000000 REPO_URL: quay.io/openstack-k8s-operators REPO_CURL_URL: https://quay.io/api/v1/repository/./api Bundle: quay.io/openstack-k8s-operators/api-operator-bundle:... Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
1 parent 15fdbf6 commit d682ea7

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

hack/pin-bundle-images.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ for MOD_PATH in ${MOD_PATHS}; do
104104
fi
105105

106106
if [ -z "$SHA" ]; then
107+
echo "ERROR: Failed to find bundle image SHA for:"
108+
echo " MOD_PATH: $MOD_PATH"
109+
echo " BASE: $BASE"
110+
echo " REF: $REF"
111+
echo " REPO_URL: $REPO_URL"
112+
echo " REPO_CURL_URL: $REPO_CURL_URL"
113+
echo " Bundle: ${REPO_URL}/${BASE}-operator-bundle:$REF"
107114
echo ",EMPTY_SHA:$REF:$REPO_CURL_URL"
108115
exit 1
109116
fi

0 commit comments

Comments
 (0)