the refusal offered a way out that relabels the repo
CI/CD / gate (push) Waiting to run
Hanzo CI/CD / cicd (push) Waiting to run

"or drop kind: to declare an image repository" buys a green run by calling the
repository something it is not, which is the ambiguity `kind:` was added to end.
The remedy for a chart repository is a lane, here or where the lane already is —
so the message names where that is and stops there.

Co-authored-by: Hanzo Dev <[email protected]>
This commit is contained in:
2026-08-28 20:47:56 -07:00
co-authored by Hanzo Dev
parent fd0ce777cf
commit 04c7fb8125
+6 -1
View File
@@ -459,8 +459,13 @@ jobs:
[ "$known" = 1 ] || {
echo "::error::hanzo.yml declares kind: ${k:-<empty>}, which is not one of: $kinds. The set is closed (HIP-0138), so a kind this pipeline does not know is refused rather than read as an image repository."
return 1; }
# No remedy of the form "drop kind: and it goes green" is offered, and
# that is deliberate: it would buy a green run by relabelling the
# repository as something it is not, which is the exact ambiguity the
# field was added to end. The remedy is a lane, here or where the
# lane already is.
[ "$k" = image ] || {
echo "::error::hanzo.yml declares kind: $k. This pipeline builds and pushes images and has no $k lane, so it would run the test gate, deliver nothing, and report success. Deliver it where the $k lane lives — platform reads this same hanzo.yml — or drop kind: to declare an image repository."
echo "::error::hanzo.yml declares kind: $k. This pipeline builds and pushes images and has no $k lane, so it would deliver nothing and report success — the reading kind: exists to end. A $k repository delivers through platform, which reads this same hanzo.yml."
return 1; }
echo "$k"
}