ข้ามไปยังเนื้อหา
AggregaAggregaAggregaAggrega
เลือกภาษา: ไทย
หน้านี้ถูกแปลด้วยเครื่อง อ่านต้นฉบับภาษาอังกฤษ

Error sentinels — canonical reference (sentinel ของข้อผิดพลาด — เอกสารอ้างอิงมาตรฐาน)

ทุกการหยุดร้ายแรงที่คอมไพเลอร์ส่งออกระบุเงื่อนไขหนึ่ง และแต่ละเงื่อนไขมีตัวระบุ 3 ตัว เพราะการรู้จักเงื่อนไข การบันทึกเงื่อนไข และการอ้างเงื่อนไขเป็นงาน 3 อย่างที่ต่างกัน sentinel คือค่า Go ที่ errors.Is จับคู่ ได้จากการเรียก accessor ที่แพ็กเกจผู้ประกาศส่งออก: ตัวระบุที่โค้ด Go ใช้รู้จัก รหัส คือสตริงที่เงื่อนไขลงทะเบียนไว้: ระบุตัวเงื่อนไขเป็นคำ และคงที่ขณะที่แพ็กเกจ Go รอบข้างพัฒนา — ตัวระบุที่โปรแกรมบันทึก รหัสย่อ คือตัวอักษร E กับตัวเลข 4 หลัก สั้นพอจะอ่านออกเสียง พิมพ์ลงช่องค้นหา หรือวางในรายงาน: ตัวระบุที่คนอ้าง เงื่อนไข 1 รายการมีตัวระบุ 3 ตัว — จับคู่ sentinel เพื่อรู้จักเงื่อนไขจาก Go อ่านรหัสเมื่อต้องบันทึกหรือใช้เป็นคีย์ และหาค่ารหัสย่อกับตารางของทุกเงื่อนไขที่อยู่ท้ายหน้านี้

การวินิจฉัยที่ผู้ใช้เห็น (ข้อความที่มีคำนำหน้าซึ่งรวบรวมไว้ใน fatal-halts.md และ error-translation.md) มีถ้อยคำที่เขียนสำหรับนักพัฒนา ส่วน sentinel ที่ห่อไว้คือสิ่งที่ errors.Is จับคู่ในผู้บริโภคเชิงโปรแกรม

หน้านี้คือมุมมองของแค็ตตาล็อกที่จัดตาม sentinel โปรแกรมเมอร์ที่เขียนด่านตรวจ CI การผสานรวม IDE หรือโค้ดจัดการการบิลด์ที่ต้องแยกประเภทข้อผิดพลาด ใช้ predicate มาตรฐาน errors.Is จับคู่กับ sentinel ที่ระบุไว้ที่นี่ ผู้เขียนที่ดีบักการบิลด์โดยอ่านข้อความข้อผิดพลาดที่ส่งออกมักต้องการมุมมองที่จัดตามข้อความ — fatal-halts.md สำหรับข้อผิดพลาดที่หยุดการบิลด์ warnings.md สำหรับเอาต์พุตเชิงแนะนำ

แต่ละแถวในตารางข้างล่างระบุ accessor — ฟังก์ชันที่ไม่รับอาร์กิวเมนต์ ส่งออกจากแพ็กเกจที่ตารางระบุ และคืน sentinel การนำเข้าแพ็กเกจนั้นและเรียก accessor คือพื้นผิวการผสานรวมที่รองรับ ตารางจึงเขียนแต่ละตัวพร้อมวงเล็บ — การเรียกคือสิ่งที่ให้ค่าที่ errors.Is จับคู่ได้ และชื่อที่ไม่มีวงเล็บคือฟังก์ชัน ไม่ใช่ข้อผิดพลาด:

import (
"errors"
"github.com/aggrega-ai/aggrega-cli/pkg/resolver"
)
if errors.Is(err, resolver.ErrParameterContractViolation()) {
// handle parameter contract violations
}

ตัวระบุทั้ง 3 มีความเสถียรแยกกัน และการแยกนี้คือเหตุผลที่เงื่อนไขมีครบทั้ง 3 accessor ที่ระบุข้างล่างเสถียรข้ามรุ่นแพตช์ การเปลี่ยนชื่อหรือการลบประกาศไว้ในรายการของ changelog สำหรับรุ่นที่ทำการเปลี่ยน และการเพิ่ม accessor ใหม่ในแพ็กเกจเป็นการเพิ่มเติมที่ไม่ทำให้ตัวจับคู่เดิมเสียหาย รหัสคงที่เมื่อเงื่อนไขเผยแพร่แล้ว จึงเป็นตัวระบุที่ควรบันทึกทุกที่ที่ต้องระบุเงื่อนไขอย่างยั่งยืน: การเปลี่ยนชื่อ accessor ไม่ย้ายรหัสที่เงื่อนไขลงทะเบียนไว้ และรหัสที่คุณบันทึกไว้อยู่รอดจากการปรับโครงสร้างพื้นผิว Go รหัสย่อคือตัวที่ทนทานที่สุดใน 3 ตัว: หมายเลขมอบให้ครั้งเดียวแล้วคงที่ และหมายเลขของเงื่อนไขที่ปลดระวางแล้วยังคงปลดระวาง ไม่ส่งต่อให้เงื่อนไขอื่น รหัสย่อที่บันทึกในรายงานเก่าจึงยังระบุเงื่อนไขที่ระบุเมื่อบันทึก นั่นบังคับใช้จริง ไม่ใช่แค่ตั้งใจ — เงื่อนไขที่ประกาศภายใต้หมายเลขที่ปลดระวางแล้วจะถูกปฏิเสธก่อนที่คอมไพเลอร์จะอ่านอินพุตใดๆ ในทุกการรัน — และทุกหมายเลขที่ปลดระวางแล้วเผยแพร่ไว้ข้างหมายเลขที่ใช้งานใน ตารางของทุกเงื่อนไข คอลัมน์รหัสข้างล่างมีรหัส และเป็นค่าที่ไคลเอนต์ของการวินิจฉัยที่มีโครงสร้างอ่านโดยไม่ต้องลิงก์แพ็กเกจเหล่านี้ รหัสเผยแพร่ไว้แทนที่จะอนุมาน เพราะไม่จำเป็นต้องกล่าวซ้ำแถวที่รหัสอยู่ — ชื่อที่ส่งออกซ้ำรายงานรหัสของเงื่อนไขที่ส่งต่อไป และรหัสของกฎระบุกฎ ไม่ใช่ accessor คอลัมน์ข้อความคือข้อความตามตัวอักษรที่ sentinel เรนเดอร์ การวินิจฉัยที่ผู้ใช้เห็นวางส่วนหัวในวงเล็บเหลี่ยมและตำแหน่งซอร์สไว้ก่อนข้อความนั้น ส่วนหัวนั้นมีรหัสย่อของเงื่อนไข พร้อมหมวดหมู่ของครั้งที่เกิดข้างกันเมื่อมี เช่น [DEVELOPER_ERROR E0007] — ผู้อ่านจึงหาค่าได้อย่างอิสระ: หมวดหมู่ (DEVELOPER_ERROR / OPS_ERROR / CATALOG_ERROR / TRANSLATION_ERROR / FETCH_ERROR / POLICY_ERROR / TRUST_ERROR) สอนไว้ใน error-translation.md และรหัสย่อหาค่าได้ใน ตารางของทุกเงื่อนไข ในหน้านี้ เมื่อปลั๊กอินยกเงื่อนไขขึ้น โทเค็นรหัสจะมีปลั๊กอินที่ยกขึ้นกำกับ — [TRANSLATION_ERROR provider/example:1.0.0/E0007] — และรหัสย่อคือส่วนสุดท้าย error-translation.md อธิบายเหตุผลที่มีตัวกำกับและเหตุผลที่ส่วนสุดท้ายคือส่วนที่ต้องหาค่า

Reading the code of a condition (การอ่านรหัสของเงื่อนไข)

รหัสระบุเงื่อนไขและไม่มีสิ่งอื่น ในรูป kebab-case — parameter-contract-violation, lockfile-drift รหัสไม่มีคำนำหน้า: ไม่ใช่แพ็กเกจที่ประกาศ ไม่ใช่ขั้นตอนที่ยกขึ้น ไม่ใช่การจัดกลุ่มใดๆ รหัสจึงคงเดิมเมื่อคอมไพเลอร์ถูกจัดโครงสร้างใหม่รอบๆ และเงื่อนไขที่ยกขึ้นมากกว่า 1 จุดในการคอมไพล์ก็ยังมีชื่อเดียว ชื่อของทุกเงื่อนไขแตกต่างกันในตัวเอง ซึ่งทำให้ไม่จำเป็นต้องมีคำนำหน้า และเงื่อนไข 2 รายการลงทะเบียนภายใต้รหัสเดียวกันไม่ได้ อ่านรหัสจากข้อผิดพลาดด้วย CodeOf จาก github.com/aggrega-ai/aggrega-cli/pkg/errors ซึ่งไล่ลำดับการห่อแบบเดียวกับ errors.Is รหัสจึงอยู่รอดไม่ว่ามีกี่เฟรมที่ห่อข้อผิดพลาดระหว่างทางกลับถึงคุณ แพ็กเกจนั้นชื่อ errors เอง จึงใช้ alias ของการนำเข้าเพื่อแยกจากไลบรารีมาตรฐาน:

package release
import (
"log"
aggregaerrors "github.com/aggrega-ai/aggrega-cli/pkg/errors"
"github.com/aggrega-ai/aggrega-cli/pkg/resolver"
)
// Load reads a Release and reports the code of whatever condition halted it.
func Load(path string) error {
_, err := resolver.LoadRelease(path)
if err == nil {
return nil
}
if code, ok := aggregaerrors.CodeOf(err); ok {
// code names the condition in words, such as parameter-contract-violation.
log.Printf("%s halted: %s", path, code)
}
return err
}

CodeOf ยังรายงานว่ามีข้อผิดพลาดใดในลำดับที่มีรหัสหรือไม่ ลำดับที่ไม่มีรหัสเป็นข้อเท็จจริงเกี่ยวกับลำดับนั้น ไม่ใช่ความล้มเหลว ถ้าต้องการจับคู่อินเทอร์เฟซเอง แพ็กเกจเดียวกันส่งออกเป็น CodedError และ errors.As พบในการไล่แบบเดียวกัน

รหัสเดินทางทางเดียว รหัสคือสิ่งที่เงื่อนไขรายงาน ไม่ใช่สิ่งที่ระบุเงื่อนไขให้ตัวจับคู่ การเขียนสตริงลงในโค้ดของคุณให้สตริงเท่านั้น และไม่มีทางกลับจากสตริงไปยังค่าที่ errors.Is จับคู่ จับคู่ sentinel เพื่อรู้จักเงื่อนไข อ่านรหัสเพื่อบันทึก

รหัสที่ aggrega พิมพ์บนเทอร์มินัลคือรหัสย่อ ไม่ใช่รหัสนี้ การวินิจฉัยที่หยุดขึ้นต้นด้วยส่วนหัวในวงเล็บเหลี่ยมที่มีรหัสย่อของเงื่อนไข พร้อมหมวดหมู่ของครั้งที่เกิดข้างกันเมื่อมี — [DEVELOPER_ERROR E0007] หรือ [TRANSLATION_ERROR provider/example:1.0.0/E0007] เมื่อปลั๊กอินยกเงื่อนไขขึ้นและรหัสมีปลั๊กอินที่ยกขึ้นกำกับ หรือ [E0007] เมื่อความล้มเหลวไม่มีความรับผิดชอบใดให้ชี้ทางคุณ — ตามด้วยตำแหน่งซอร์สและข้อความที่รวบรวมไว้ใน fatal-halts.md รหัสเชิงบรรยายระบุเงื่อนไขเป็นคำและกว้างเกินไปสำหรับตำแหน่งนั้น: สำหรับเงื่อนไขที่ยาวที่สุดจะเต็มเทอร์มินัลแคบก่อนข้อความเริ่ม ซึ่งเป็นเหตุผลทั้งหมดที่มีตัวระบุกะทัดรัดตัวที่สอง ตัวที่ใช้ทำงานเมื่อมีเพียงเอาต์พุตที่พิมพ์คือรหัสย่อ และหาค่าได้กับ Every condition, by short code (ทุกเงื่อนไข จัดตามรหัสย่อ) ท้ายหน้านี้: จากหมายเลขที่อ่านออกเสียงทางโทรศัพท์ได้ คุณถึงเงื่อนไข accessor และข้อความของเงื่อนไขนั้น aggrega explain <code> หาค่านั้นที่เทอร์มินัล — รับรหัสใดรหัสหนึ่งของเงื่อนไขและพิมพ์เงื่อนไขพร้อมรายการที่บันทึกทางแก้ในการเขียน และอธิบายไว้ใน aggrega explain มุมมองที่จัดตามข้อความใน fatal-halts.md ยังเป็นวิธีทำงานจากถ้อยคำแทนตัวระบุ

ที่ที่รหัสเดินทางออกนอก Go คือการวินิจฉัยที่มีโครงสร้างซึ่ง daemon ของคอมไพเลอร์แบบบริการเผยแพร่ เป็นฟิลด์ code ของตนในแต่ละรายการ ไม่ได้ผสมเข้าในข้อความ — ส่วนขยายตัวแก้ไขหรือไคลเอนต์อื่นของโปรโตคอลนั้นจึงแตกแขนงตามสิ่งที่รายการรายงานโดยไม่ต้องลิงก์แพ็กเกจเหล่านี้และไม่ต้องแยกวิเคราะห์ข้อความ คีย์นั้นคีย์เดียวมีรหัสที่จับคู่ด้วยเครื่องได้ไม่ว่าใครกำหนด และรายการบอกว่าชั้นใดยกขึ้น รหัสตรงนั้นมีต้นกำเนิด 3 แบบ และแบบที่ 3 คือเหตุผลที่รหัสที่คุณค้นหาได้ในหน้านี้ ไม่ใช่ สัญญาณของตัวมันเองว่ามีสิ่งใดล้มเหลว:

  • รหัสของเงื่อนไขที่ความล้มเหลวระบุ ซึ่งเป็นสิ่งที่หน้านี้รวบรวม
  • รหัสชั้นของข้อแนะนำเกี่ยวกับเอาต์พุตที่เรนเดอร์ — unsupported-field เป็นหนึ่งในนั้น และ warnings.md อธิบายไว้ รหัสนี้กำหนดที่ที่ยกข้อแนะนำขึ้น ไม่ได้ลงทะเบียนเป็นเงื่อนไข จึงไม่มีแถวที่นี่
  • รหัสที่ลงทะเบียนของข้อแนะนำเกี่ยวกับเอกสารที่เขียน — ชื่อที่ต่างจากที่ประกาศไว้เพียงการแก้ไขเดียว พารามิเตอร์ที่ไม่มีสิ่งใดอ่าน ข้อค้นพบเช่นนี้ระบุเงื่อนไขในรูปแบบเดียวกับความล้มเหลว รหัสจึงลงทะเบียนและ มีแถวในหน้านี้ และการอ่านแถวนั้นบอกว่าข้อค้นพบเกี่ยวกับอะไร

ดังนั้นรหัสเดียวกับที่คุณอ่านจากการหยุดอาจมาถึงคุณจากการบิลด์ที่เสร็จสิ้น โดยมากับข้อค้นพบที่ไม่เปลี่ยนผลของการบิลด์ สิ่งที่แยกสองกรณีคือผลที่คุณได้รับและชั้นที่รายการระบุ — ไม่ใช่รูปแบบของรหัสเอง และไม่ใช่ว่าหาค่าได้ที่นี่หรือไม่ ฟิลด์ละไว้เมื่อไม่มีสิ่งใดที่ผลิตรายการกำหนดรหัส: ความล้มเหลวที่ไม่ระบุเงื่อนไขของ Aggrega เอง และข้อแนะนำที่ผู้ยกขึ้นไม่กำหนดรหัส aggrega serve บันทึกรูปแบบรายการ คีย์ที่ระบุชั้น และเวลาที่ฟิลด์ปรากฏ

การวินิจฉัยที่มีโครงสร้างมีตัวระบุของเงื่อนไขทั้ง 2 ตัว และการรู้ว่าอันไหนคืออะไรคือความต่างระหว่างตัวระบุที่คุณใช้ได้กับที่ใช้ไม่ได้ คีย์ code ข้างบนสำหรับ โปรแกรม: ใช้ยัติภังค์และระบุเงื่อนไขเป็นคำ ส่วนขยายที่แตกแขนงตามรหัสจึงอ่านได้ตามความหมาย และเป็นค่าที่ CodeOf รายงานใน Go คีย์ shortCode ข้างกันสำหรับ คน — ตัวอักษร E กับตัวเลข 4 หลัก เป็นโทเค็นเดียวกับที่การวินิจฉัยที่หยุดพิมพ์ในส่วนหัวในวงเล็บเหลี่ยม เป็นสิ่งที่คุณอ่านออกเสียงทางโทรศัพท์ พิมพ์ในช่องค้นหา หรือวางใน issue และเป็นโทเค็นที่ ตารางของทุกเงื่อนไข ใช้เป็นคีย์

ทั้งสองไม่ใช่ตัวย่อของอีกตัว และไม่ใช่ตัวสำรองของอีกตัว จับคู่ที่รหัสเชิงบรรยาย แสดงรหัสย่อให้ผู้อ่าน พื้นผิวที่เสนอเฉพาะรหัสเชิงบรรยายจะยื่นตัวระบุที่ออกแบบสำหรับตัวจับคู่ให้ผู้เขียน และพื้นผิวที่จับคู่ที่รหัสย่อจะจับคู่กับหมายเลขที่ไม่บอกอะไรเกี่ยวกับเงื่อนไข — จึงต้องส่งทั้งสองแทนที่จะเลือกตัวเดียว

คีย์ที่ 3 codeDescription ระบุที่ที่เงื่อนไขเผยแพร่ เป็นข้อมูลอ้างอิงสำหรับเปิดดูเพิ่มเติมเกี่ยวกับการวินิจฉัย ที่อยู่ของลิงก์นั้นหาค่าไปยังตารางของทุกเงื่อนไขในหน้านี้ ผู้อ่านที่ตามจากตัวแก้ไขจึงมาถึงพร้อมรหัสย่อที่ตารางใช้เป็นคีย์ รายการมีรหัสย่อและข้อมูลอ้างอิง ด้วยกัน หรือไม่มีทั้งคู่ ทั้งสองมีอยู่เมื่อรายการระบุเงื่อนไขที่ลงทะเบียน — มีแถวในตารางนั้น — และไม่มีเมื่อรหัสระบุชั้นของข้อแนะนำหรือตัวตนของกฎธรรมเนียมจาก linter ของคุณที่ Aggrega ไม่ได้ประกาศ เพราะไม่มีหมายเลขให้อ้างสำหรับสิ่งเหล่านั้นและไม่มีสิ่งใดที่นี่อธิบาย

ไปทางกลับ — จากรหัสที่คุณถืออยู่ไปยังเงื่อนไขที่รหัสระบุ — ตารางข้างล่างคือรายการที่เผยแพร่ แต่ละแถวมีรหัสข้าง accessor ที่ให้เงื่อนไขเดียวกันใน Go รหัสที่อ่านจากการวินิจฉัยที่มีโครงสร้างจึงหาค่าได้เป็นชื่อที่คุณจับคู่ได้และข้อความที่เงื่อนไขเรนเดอร์ ตารางครอบคลุมเงื่อนไขที่คุณนำเข้า accessor ได้ และรหัส 2 ประเภทอยู่นอกตาราง: รหัสชั้น ซึ่งระบุชั้นของข้อแนะนำไม่ใช่เงื่อนไข จึงไม่มี accessor ให้วางข้าง และรหัสที่เงื่อนไขประกาศเฉพาะในแพ็กเกจที่คุณนำเข้าไม่ได้และไม่ส่งออกซ้ำที่ใดเลย จึงไม่มีชื่อที่จับคู่ได้ให้วางข้าง ประเภทหลังยังระบุเงื่อนไข และเงื่อนไขนั้นยังมีรหัสย่อ — ตารางของทุกเงื่อนไขท้ายหน้านี้ใช้รหัสย่อเป็นคีย์แทนชื่อที่นำเข้าได้ จึงครอบคลุมเหล่านั้นด้วย

The matchable surface, by declaring package (พื้นผิวที่จับคู่ได้ จัดตามแพ็กเกจที่ประกาศ)

ทุกส่วนข้างล่างคือแพ็กเกจ 1 ตัวที่คุณนำเข้าได้ หัวข้อคือเส้นทางแพ็กเกจเทียบกับเส้นทางโมดูล github.com/aggrega-ai/aggrega-cli ส่วนที่หัวข้อ pkg/resolver จึงนำเข้าเป็น github.com/aggrega-ai/aggrega-cli/pkg/resolver

รายการจัดกลุ่มตามแพ็กเกจที่ ประกาศ sentinel เพราะเป็นแพ็กเกจที่ตัวจับคู่นำเข้า จุดในการบิลด์ที่เงื่อนไขยกขึ้นเป็นคำถามแยก และหน้านี้ตั้งใจไม่ตอบ: sentinel ตัวเดียวมักยกขึ้นจากหลายที่ และหลายตัวยกขึ้นจากโค้ดที่โมดูลไม่ส่งออกเท่านั้น คำตอบรายรายการจึงไม่เป็นจริงกับทุกแถว มุมมองที่จัดตามข้อความตอบคำถามว่าเมื่อใดในการบิลด์ด้วยถ้อยคำที่คุณสังเกตได้ — โดยเฉพาะ fatal-halts.md ข้างบน

ชื่อไม่กี่ชื่อปรากฏในมากกว่า 1 แพ็กเกจ ชื่อเหล่านั้นคือการส่งออกซ้ำของค่าร่วม 1 ค่า ไม่ใช่เงื่อนไข 2 รายการ การจับคู่ชื่อใดก็สำเร็จ ตารางบอกไว้ที่ที่ทั้งสองชื่อนำเข้าได้ ทั้งสองแถวมีรหัสเดียวกัน ซึ่งเป็นข้อเท็จจริงเดียวกันที่ระบุบนตัวระบุที่ไคลเอนต์นอก Go ถือ: 1 เงื่อนไข 1 รหัส ไม่ว่ากี่ชื่อจะไปถึง

pkg/catalog

sentinelรหัสข้อความ
ErrAllVersionsRetracted()all-versions-retractedevery published version this reference could select has been withdrawn
ErrAmbiguousImporterPlugin()ambiguous-importer-pluginformat is advertised by more than one importer plugin
ErrAmbiguousParserPlugin()ambiguous-parser-pluginformat is advertised by more than one parser plugin
ErrAmbiguousProviderPlugin()ambiguous-provider-plugincapability is served by more than one provider plugin; add a plugins.providers entry to select one
ErrAmbiguousTypeMapping()ambiguous-type-mappingManifest maps multiple version-distinct keys to the same base type; the type-to-recipe lookup is ambiguous
ErrConflictingVersionConstraints()conflicting-version-constraintsno version of a component or feature type satisfies every constraint declared on the instance
ErrDuplicateEntityIdentity()duplicate-entity-identityduplicate entity identity within a single catalog directory
ErrImporterVersionUnsatisfiable()importer-version-unsatisfiableno importer plugin version satisfies the plugins.importer entry's version pin
ErrManifestImplementsMismatch()manifest-implements-mismatchManifest mapping entry's recipe spec.implements does not match the mapped component-type / feature-type key
ErrNameMappingMatchedNothing()name-mapping-matched-nothinga Manifest name mapping's key names no component instance or attachment in this build, so the entry binds nothing
ErrNoImporterForFormat()no-importer-for-formatno importer plugin advertises the requested format
ErrNoParserForFormat()no-parser-for-formatno parser plugin advertises the requested format
ErrNoRecipeResolved()no-recipe-resolvedno recipe resolved for component/feature instance: add an explicit Manifest mapping for its type
ErrProviderBindingCapabilityUnserved()provider-binding-capability-unservedplugins.providers entry names a capability no provider-rendering plugin the build reads serves
ErrProviderBindingUnsatisfied()provider-binding-unsatisfiedplugins.providers entry names a plugin no provider-rendering plugin serving the capability matches
ErrProviderVersionUnsatisfiable()provider-version-unsatisfiableno provider-rendering plugin version satisfies the recipe's provider version pin
ErrQualifiedPluginReference()plugin-reference-must-not-be-registry-qualifiedwasm plugin reference must be the plugin coordinate identity (<pluginType>/<name>:<version>), not a registry-qualified or artifact path
ErrUnknownCatalogDocumentKind()unknown-catalog-document-kindcatalog document declares a kind a catalog does not hold
ErrUnsatisfiableEntityVersion()unsatisfiable-entity-versionno catalog version satisfies the referenced version constraint
ErrUnscopedPluginReference()plugin-reference-must-be-scopedwasm plugin reference must carry a pluginType scope (<pluginType>/<name>); an empty scope cannot bind to an OCI location
ErrUnscopedRecipeReference()recipe-reference-must-be-scopedrecipe reference must be provider-scoped (<provider>/<name>); an empty provider cannot bind to an OCI location
ErrUnusableSchemaImport()unusable-schema-importa schema `$import:` could not be applied
  • ErrManifestImplementsMismatch() เป็นค่าเดียวกับ pkg/resolver.ErrManifestImplementsMismatch() การจับคู่กับชื่อใดชื่อหนึ่งจึงสำเร็จ

pkg/closure

sentinelรหัสข้อความ
ErrInvalidLibraryRef()invalid-library-refresolve: invalid library reference URI
ErrMVSConflict()version-selection-conflictresolve: consumers of one library require versions in incompatible majors
ErrNoAggregateLoader()catalog-cannot-load-sub-aggregate-bodiesresolve: catalog lookup cannot load resolved sub-aggregate bodies
ErrNoRecipeLoader()catalog-cannot-load-recipe-bodiesresolve: catalog lookup cannot load resolved recipe and plugin bodies
ErrSourceTemplateAtLockTime()source-template-at-lock-timeresolve: source-template evaluation failure at lock time
ErrSourceTemplateParse()source-template-not-parsableresolve: source-template parse error
ErrSourceTemplateProvidesRef()source-template-provides-refresolve: source-template references .provides (invalid reverse reference)
ErrSubAggregateDepth()sub-aggregate-depthresolve: sub-aggregate inclusion depth exceeded
ErrUnresolvableURI()unresolvable-uriresolve: no entity in the catalog matches this URI

pkg/compactform

sentinelรหัสข้อความ
ErrAmbiguousDispatch()ambiguous-dispatchcompactform: ambiguous dispatch — $mode required
ErrCircularRef()reference-cyclecircular reference expansion
ErrConstraintTypeMismatch()constraint-type-mismatchcompactform: constraint not valid for declared type
ErrEscapeContentInvalid()escape-content-invalidcompactform: $jsonschema content invalid
ErrHostInLibraryRef()host-in-library-refcompactform: cross-document $ref carries a registry host; reference the library by identity
ErrReferenceUnresolvable()reference-unresolvablecompactform: $ref unresolvable
ErrUnknownKeyword()unknown-keywordcompactform: unknown keyword
ErrUnresolvedSchemaLibraryRef()unresolved-schema-library-refcompactform: cross-document $ref target not found
  • ErrCircularRef() เป็นค่าเดียวกับ pkg/refcycle.ErrCycle() การจับคู่กับชื่อใดชื่อหนึ่งจึงสำเร็จ

pkg/deprecation

sentinelรหัสข้อความ
ErrDeprecatedEntity()deprecated-entitydeprecation: build consumes a deprecated entity

pkg/docscache

sentinelรหัสข้อความ
ErrFetchNotFound()fetch-not-foundoci: artifact not found at remote source
ErrNotDocsBundle()not-docs-bundledocscache: artifact is not a documentation bundle
ErrPageNotFound()page-not-founddocscache: page not found in documentation bundle
  • ErrFetchNotFound() เป็นค่าเดียวกับ pkg/oci.ErrFetchNotFound() การจับคู่กับชื่อใดชื่อหนึ่งจึงสำเร็จ

pkg/egress

sentinelรหัสข้อความ
ErrNoAnswerInTime()no-answer-in-timeegress: the server did not answer in time
ErrOfflineEgress()offline-egressegress: network access refused because the workspace is offline; remediation: pass `--offline=false` to allow the network for this one run, or clear the top-level `offline` key in the configuration file (or AGGREGA_OFFLINE) to allow it from now on; where the work is a build that needs content the machine does not have, run `aggrega pull --release <release>` from a connected environment first to populate the cache

pkg/externalinputs

sentinelรหัสข้อความ
ErrAcquisitionDisabled()acquisition-disabledexternalinputs: acquisition is disabled for unpinned inputs
ErrDigestMismatch()digest-mismatchexternalinputs: fetched bytes mismatch the pinned digest
ErrSchemeNotAllowed()scheme-not-allowedexternalinputs: URL scheme is not allowed
ErrStoreCorrupt()store-corruptexternalinputs: store blob mismatches its pinned record

pkg/lockfile

sentinelรหัสข้อความ
ErrLockfileDrift()lockfile-driftlockfile: out of date; it no longer matches what its Release resolves to
ErrLockfileInvalid()lockfile-invalidlockfile: file failed schema validation
ErrSignatureNotRecorded()signature-not-recordedsigning: no verified signature is recorded for an artifact that requires one

pkg/oci

sentinelรหัสข้อความ
ErrAmbiguousContentLayer()ambiguous-content-layeroci: manifest has multiple layers of the expected content media type
ErrBundleAmbiguousEntityDocument()bundle-ambiguous-entity-documentoci: published bundle carries more than one entity document
ErrBundleNoEntityDocument()bundle-no-entity-documentoci: published bundle carries no entity document
ErrBundleUnreadable()bundle-unreadableoci: published bundle cannot be unpacked
ErrCacheLocationOutsideCache()cache-location-outside-cachea value a cache location is built from would place cached files outside the place it names in the cache
ErrCachedManifestIntegrity()cached-manifest-integrityoci: cached manifest digest mismatch
ErrFetchIntegrity()fetch-integrityoci: content digest mismatch
ErrFetchInterrupted()fetch-interruptedoci: the transfer from the registry broke off
ErrFetchNetworkUnreachable()fetch-network-unreachableoci: network unreachable
ErrFetchNotFound()fetch-not-foundoci: artifact not found at remote source
ErrFetchServerError()fetch-server-erroroci: the registry answered with a server error
ErrFetchUnauthorized()fetch-unauthorizedoci: authentication required or failed
ErrImmutableTagConflict()immutable-tag-conflictoci: tag already published with different content
ErrNoContentLayer()no-content-layeroci: manifest has no layer of the expected content media type
ErrOCILocationCollision()oci-location-collisionoci: distinct catalog identities map to the same OCI repository location
ErrPublishedArtifactNotAnEntity()published-artifact-not-an-entityoci: published artifact is not an entity document
ErrReferrerDiscoveryUnavailable()referrer-discovery-unavailableoci: referrer discovery could not be completed
ErrRegistryTooBusy()registry-too-busyoci: the registry kept asking to slow down
ErrRetiredMediaType()retired-media-typeoci: artifact carries a media type this compiler no longer reads
ErrSignatureBundleDigestMismatch()signature-bundle-digest-mismatchcached signature bundle does not match its recorded digest
ErrSignatureForAnotherArtifact()signature-for-another-artifactsigning: the recorded signature was made for a different artifact
ErrUnknownEntityKind()unknown-entity-kindoci: unknown entity kind for mediatype dispatch

pkg/pathscope

sentinelรหัสข้อความ
ErrNameWindowsCannotHold()name-windows-cannot-holda name this operation writes holds a path segment Windows cannot hold as written

pkg/pluginpath

sentinelรหัสข้อความ
ErrPluginArtifactNotFound()plugin-artifact-not-foundplugin artifact not found on this machine
ErrPluginEntityNotFound()plugin-entity-not-foundplugin reference is not a Plugin entity

pkg/pluginstrust

sentinelรหัสข้อความ
ErrVerdictAttachmentNotConfigured()verdict-attachment-not-configureda plugin recorded as trusted for an accept-or-reject verdict is no longer attached at any verdict role

pkg/plugintest

sentinelรหัสข้อความ
ErrCommandsMismatch()wasm-command-set-mismatchwasm: recorded command mirror does not match plugin describe()
ErrContractMismatch()wasm-contract-mismatchwasm: entity contract claim does not match plugin describe()
ErrHostFunctionsMismatch()wasm-host-function-set-mismatchwasm: stamped host-function record does not match .wasm imports
ErrRejected()wasm-manifest-rejectedwasm: plugin rejected by the sandbox
ErrTypeMismatch()wasm-plugin-type-mismatchwasm: declared plugin type does not match plugin describe()

pkg/readscope

sentinelรหัสข้อความ
ErrReadLeadsOutOfWorkspace()read-leads-out-of-workspacea file this operation reads leads through a link out of the directory it must stay inside
ErrReferenceLeadsOutOfWorkspace()reference-leads-out-of-workspacea reference a document makes to another file leads out of the directory it must stay inside

pkg/recipepin

sentinelรหัสข้อความ
ErrEntityNotPinned()entity-not-pinnedan input the entity reads has no pin recorded for it in the entity.lock beside it
ErrLocalSourceContentMismatch()local-source-content-mismatchthe files of the entity's local source do not match the pins recorded for them in entity.lock

pkg/refcycle

sentinelรหัสข้อความ
ErrCycle()reference-cyclecircular reference expansion

pkg/registrytrust

sentinelรหัสข้อความ
ErrMalformedTrust()malformed-trust-policyregistrytrust: advertised trust config is malformed
ErrNoTrustAdvertised()no-trust-advertisedregistrytrust: registry advertises no trust config
ErrOfflineRegistrationWithoutTrustPolicy()offline-registration-without-trust-policya registry other than the official hub is not registered offline without a trust policy supplied by hand, because the policy it advertises cannot be fetched; register it once while online, or pin its trust by hand with `aggrega registry add <host> --identity <identity>=<issuer>` or `--key <public-key-file>`

pkg/resolver

sentinelรหัสข้อความ
ErrAnnotationBindingPillarOverlap()annotation-binding-pillar-overlapannotation binding declares one path in both pillar lists
ErrAnnotationBindingTargetUnresolved()annotation-binding-target-unresolvedannotation binding does not resolve against its target Feature
ErrAnnotationScalarNotRoutable()annotation-scalar-not-routablea scalar annotation value does not route to exactly one path of its binding
ErrAnnotationSidePillarMismatch()annotation-side-pillar-mismatchannotation routes through a pillar its authoring side may not use
ErrAnnotationSubkeyNotBound()annotation-subkey-not-boundannotation subkey is not routed by the annotation's binding
ErrAnnotationSubkeyNotConforming()annotation-subkey-not-conformingannotation subkey does not conform to the target Feature's schema at the routed pillar
ErrAttachmentInjectValue()attachment-inject-valueinject entry on an attachment carries `value:`; an attachment delivers the keys its FeatureRecipe publishes, each named with `from:`, and a literal belongs in the component's own inject block
ErrAttachmentSlotNearMiss()attachment-slot-near-missattachment name is a near miss for a declared slot
ErrAttachmentSlotShape()attachment-slot-shapeattachment does not conform to its declared slot shape
ErrConnectionAttachmentSlotUndeclared()connection-attachment-slot-undeclareda connection carries an attachment under a name its socket declares no slot for
ErrDuplicateBoundaryComponent()duplicate-boundary-componentcomponent declared in more than one boundary: declare each component in exactly one boundary
ErrDuplicateTriadIdentity()duplicate-triad-identityduplicate Aggregate/Manifest identity (metadata.name) in the Release directory
ErrFeatureMergeConflict()feature-merge-conflictfeature merge conflict: reconcile the Aggregate and Release declarations for the feature
ErrGuardEntityViewInconsistency()internal-catalog-view-disagreementthe compiler's own views of the catalog disagree
ErrInheritedBoundaryDirectoryIsLiteral()inherited-boundary-directory-is-literalinherited boundary directory carries no template variable, so it resolves to the path the extended Release writes to
ErrInjectDeliveryShape()inject-delivery-shapeinject delivery: shape must be a list of entries, each `in:` with exactly one of `from:` or `value:`
ErrInjectEntryAmbiguous()inject-entry-ambiguousinject entry carries both `value:` and `from:`; schema requires exactly one
ErrInjectKeyCollision()inject-key-collisionduplicate delivery key across inject sources
ErrInvalidInjectKey()invalid-inject-keyinvalid inject key: the from-key must name a provides key its source publishes
ErrInvalidParameterRef()invalid-parameter-refinvalid parameter reference: check the {{ .parameters.* }} expression names a declared parameter and parses as a Go template
ErrMalformedRecipeReference()malformed-recipe-referencemalformed recipe reference in a Manifest mapping value
ErrManifestCrossBindingPillarCollision()manifest-cross-binding-pillar-collisionManifest annotation bindings collide on same Feature path+pillar
ErrManifestImplementsMismatch()manifest-implements-mismatchManifest mapping entry's recipe spec.implements does not match the mapped component-type / feature-type key
ErrManifestReservedPrefix()manifest-reserved-prefixManifest annotation binding uses reserved prefix
ErrMisnamedSlotFill()misnamed-slot-fillattachment written under a name no slot declares fits a slot its component leaves empty
ErrMissingRequiredFeature()missing-required-featuremissing required feature: attach a Feature of the required type to the component
ErrMissingRequiredSocket()missing-required-socketrequired uses socket not populated
ErrParameterContractViolation()parameter-contract-violationparameter contract violated
ErrParameterMissing()parameter-missingrequired parameter not supplied
ErrProvidesKeyNotDeclared()provides-key-not-declaredRecipe publishes a provides key its Component does not declare
ErrReleaseChainComposesBothRoutingKeys()release-chain-composes-both-routing-keysrelease extends chain composes both named boundaries and top-level components: declare one routing shape across the chain, never both
ErrSchemaConformance()schema-conformanceauthored pillar does not conform to its declared schema
ErrSchemaContractCompileFailure()schema-contract-compile-failuredeclared schema contract could not be compiled into a usable schema, so nothing was validated against it: correct the contract where it is declared, or remove it if the configuration it covers needs no validation
ErrSelfInjectForbidden()self-inject-forbiddenself-inject on component without spec.inject allowlist
ErrTriadRefUnresolvable()triad-ref-unresolvableAggregate/Manifest reference unresolvable
ErrUnknownUsesSocket()unknown-uses-socketunknown uses socket: name a socket the entity declares in its usesSchema — only a component's own uses block may name one the catalog did not declare
ErrUnnormalizedRelease()release-not-in-canonical-formrelease reached resolve un-normalized (non-empty root components alongside a synthesized default boundary)
ErrUnreadParameter()unread-parameterdeclared parameter is read by no reference in the Aggregate
ErrUsesInjectValue()uses-inject-valueinject entry on a connection carries `value:`; a connection delivers the target's published keys, each named with `from:`
ErrUsesSocketNearMiss()uses-socket-near-missuses socket name is a near miss for a declared socket
ErrVerdictPluginTrustMismatch()verdict-plugin-trust-mismatchthe digest recorded as trusted for this plugin does not match the digest its cached manifest reports
ErrYAMLLoad()document-not-loadablefile load failed: the file could not be read, or its bytes did not parse

pkg/signing

sentinelรหัสข้อความ
ErrKeylessLive()keyless-signing-requires-networksigning: keyless signing requires a live identity provider, Fulcio, and Rekor
ErrMixedSigningCredentials()mixed-signing-credentialssigning: the references named together need different signing credentials, so nothing was signed
ErrNoSignatureFound()no-signature-foundsigning: no signature found for an artifact that requires one
ErrNoTrustedIdentities()no-trusted-identitiessigning: keyless verification requires at least one trusted identity
ErrSignatureInvalid()signature-invalidsigning: signature does not verify
ErrSignatureVerificationFailed()signature-verification-failedsigning: signature bundle does not verify
ErrSigningPolicyRequiresSignature()signing-policy-requires-signaturesigning: signing policy requires a signature for this artifact kind; refusing to push unsigned content
ErrTrustRootLoad()trust-root-not-loadablesigning: cannot load pinned trust root
ErrUnsignedPushRefused()unsigned-push-refusedsigning: registry requires signatures; refusing to push unsigned content
ErrUnsupportedKey()unsupported-keysigning: unsupported held-key type
ErrUntrustedIdentity()untrusted-identitysigning: signature identity is not trusted for this registry

pkg/sourcecache

sentinelรหัสข้อความ
ErrFetchIntegrity()fetch-integrityoci: content digest mismatch
ErrFetchNotFound()fetch-not-foundoci: artifact not found at remote source
  • ErrFetchIntegrity() เป็นค่าเดียวกับ pkg/oci.ErrFetchIntegrity() การจับคู่กับชื่อใดชื่อหนึ่งจึงสำเร็จ
  • ErrFetchNotFound() เป็นค่าเดียวกับ pkg/oci.ErrFetchNotFound() การจับคู่กับชื่อใดชื่อหนึ่งจึงสำเร็จ

pkg/sourcekind

sentinelรหัสข้อความ
ErrOCIModuleSourceMalformed()oci-module-source-malformedthe source does not name one artifact of its OCI module kind
ErrUnknownKind()unknown-source-kindno source adapter serves the source kind

pkg/sourceresolver

sentinelรหัสข้อความ
ErrFetchIntegrity()fetch-integrityoci: content digest mismatch
ErrFetchNetworkUnreachable()fetch-network-unreachableoci: network unreachable
ErrFetchNotFound()fetch-not-foundoci: artifact not found at remote source
ErrFetchUnauthorized()fetch-unauthorizedoci: authentication required or failed
ErrNoAdapterRegistered()source-adapter-not-registeredno source adapter is registered in this program for the source kind
  • ErrFetchIntegrity() เป็นค่าเดียวกับ pkg/oci.ErrFetchIntegrity() การจับคู่กับชื่อใดชื่อหนึ่งจึงสำเร็จ
  • ErrFetchNetworkUnreachable() เป็นค่าเดียวกับ pkg/oci.ErrFetchNetworkUnreachable() การจับคู่กับชื่อใดชื่อหนึ่งจึงสำเร็จ
  • ErrFetchNotFound() เป็นค่าเดียวกับ pkg/oci.ErrFetchNotFound() การจับคู่กับชื่อใดชื่อหนึ่งจึงสำเร็จ
  • ErrFetchUnauthorized() เป็นค่าเดียวกับ pkg/oci.ErrFetchUnauthorized() การจับคู่กับชื่อใดชื่อหนึ่งจึงสำเร็จ

pkg/sourceresolver/cacheslot

sentinelรหัสข้อความ
ErrEmptyWorkspaceRoot()empty-workspace-rootcacheslot: empty workspaceRoot

pkg/sourceresolver/netrc

sentinelรหัสข้อความ
ErrNetrcFileUnreadable()netrc-file-unreadablethe netrc file could not be read
ErrSourceURLCarriesCredential()source-url-carries-credentialthe source URL carries a credential

pkg/types

sentinelรหัสข้อความ
ErrArtifactEntryShape()artifact-entry-shapeartifacts entry: shape must be a string scalar or {$import: <local-path>}
ErrArtifactLibraryEntryShape()artifact-library-entry-shapeartifactlibrary: entry must be a mapping of filename to a string body
ErrForbiddenKeyword()forbidden-keywordschemalibrary: forbidden JSON Schema keyword
ErrLibraryReferenceWhitespace()library-reference-whitespacelibrary reference: a reference to a library entry carries no whitespace or line break
ErrMalformedVersionPin()malformed-version-pinreference carries a malformed version pin
ErrMappingEntryNotScalar()mapping-entry-not-scalarmappinglibrary: entry body must be a string scalar
ErrOrderedMapDecodeDepthExceeded()document-nesting-depth-exceededa document nests too many levels deep
ErrParametersShape()parameters-shapeparameters: shape must be an inline object or {$import: <local-path>}
ErrTemplateNotFound()template-not-foundschemalibrary: template not found
ErrTemplateParamMissing()template-param-missingschemalibrary: template parameter missing
ErrTemplateParamTypeMismatch()template-param-type-mismatchschemalibrary: template parameter type mismatch
ErrValuesMappingShape()values-mapping-shapevaluesmapping: shape must be a string scalar or {$import: <path-or-library-identity>}
ErrWellKnownAnnotationScope()well-known-annotation-scopewellKnownAnnotations: a key is declared at a scope the provider's contract does not render
ErrWorkloadEntryNotScalar()workload-entry-not-scalarworkloadlibrary: entry body must be a string scalar
ErrWorkloadTemplateShape()workload-template-shapeworkload: shape must be a string scalar or {$import: <path-or-library-identity>}

pkg/usesedge

sentinelรหัสข้อความ
ErrDanglingUsesTarget()dangling-uses-targetuses edge target does not exist
ErrReleaseEdgeRetarget()release-edge-retargetrelease edge retargets a developer-declared edge

pkg/validator

sentinelรหัสข้อความ
ErrAssertionNameCollision()assertion-name-collisionassertion name declared twice across the extends chain
ErrCyclicExtension()cyclic-extensioncyclic extends chain
ErrDuplicateContainerEnvironmentVariable()duplicate-container-environment-variablea container declares one environment variable twice
ErrEmptySource()recipe-source-is-emptyrecipe source is an empty string, which names neither sourceless mode nor sourced mode
ErrExtendsChainTooDeep()extends-chain-too-deepextends chain exceeds maximum depth
ErrFeatureRecipeValuesMappingRequiresSource()feature-recipe-values-mapping-requires-sourceFeatureRecipe: valuesMapping requires source
ErrInheritanceMerge()extends-merge-failedinheritance merge failed
ErrRecipeFilenameCollisionAcrossInputKinds()recipe-filename-collision-across-input-kindsfilename collision across input kinds: two input-kind blocks produced a file under one output name
ErrRecipeNoInputKind()recipe-no-input-kindRecipe: at least one input kind required
ErrRecipeOutputComponentLabelCollision()recipe-output-component-label-collisionrecipe output-component-labels constraint: key is also declared in outputLabels
ErrRecipeOutputLabelReservedNamespace()recipe-output-label-reserved-namespacerecipe output-labels constraint: key uses a reserved namespace
ErrRecipeValuesMappingRequiresSource()recipe-values-mapping-requires-sourceRecipe: valuesMapping requires source
ErrSlotNotReferenceable()slot-not-referenceableworkload attachment slot is not referenceable
ErrUnknownSchemaPillar()unknown-schema-pillara schema block declares a key that names no data pillar
ErrWorkloadFeaturesSchema()workload-features-schemaworkload featuresSchema cross-check failed
ErrWorkloadValidation()workload-not-validworkload validation failed

pkg/validator/envelope

sentinelรหัสข้อความ
ErrDuplicatePipelineStepID()duplicate-pipeline-step-ida pipeline declares one step id twice
ErrEntityEnvelope()entity-envelope-invaliddocument envelope validation failed
ErrRetiredABIVersion()retired-abi-versiona plugin declares a plugin ABI version this compiler no longer speaks
ErrRetiredAPIVersion()retired-api-versiona document declares an API version this compiler no longer reads

pkg/validator/jsonschema

sentinelรหัสข้อความ
ErrExtensionEval()schema-extension-evaluation-failedvalidator/jsonschema: x-aggrega extension evaluation failed
ErrSchemaResolve()schema-not-resolvablevalidator/jsonschema: schema resolution failed

pkg/validator/merger

sentinelรหัสข้อความ
ErrMergeInvalid()schema-merge-input-invalidmerger: invalid merge input

pkg/workspaceconfig

sentinelรหัสข้อความ
ErrAmbiguousRegistryAlias()ambiguous-registry-aliasregistry alias matches more than one host
ErrCapabilityOnCrossCuttingSocket()capability-on-cross-cutting-socketa cross-cutting socket is bound by capability but attaches by uri
ErrColonInProviderBindingCapability()colon-in-provider-binding-capabilitya provider socket binding names a capability containing a colon, which no Recipe can select
ErrConfigInvalid()workspace-config-invalidworkspace configuration is invalid
ErrDuplicateImporterAttachment()duplicate-importer-attachmentimporter is attached by more than one plugins.importer entry
ErrDuplicateProviderTarget()duplicate-provider-targetcapability is bound to more than one provider plugin
ErrDuplicateRegistryAlias()duplicate-registry-aliasregistry alias is already used by another host
ErrGovernanceRoleInvalid()governance-role-invalida governance attachment declares no role or an unknown role
ErrInertFieldOnProviderSocket()inert-field-on-provider-socketa provider socket binding sets a field with no referent on that socket

pkg/writescope

sentinelรหัสข้อความ
ErrWriteLeadsOutOfWorkspace()write-leads-out-of-workspacea path this operation writes or deletes leads through a link out of the directory it must stay inside

pkg/yamlpos

sentinelรหัสข้อความ
ErrPositionOutOfRange()position-out-of-rangeposition out of range

Sentinels that carry another sentinel (sentinel ที่ห่อ sentinel อีกตัว)

ErrCacheMetadataInvalid (pkg/sourceresolver/metadata) รายงานสล็อตแคชของอาร์ติแฟกต์ซอร์สที่เสียหาย ประกาศไว้เป็นตัวห่อ ErrFetchIntegrity() แทนที่จะเป็นตัวตนของตัวเอง จึงไม่ปรากฏในตารางข้างต้น และการจับคู่กับ ErrFetchIntegrity() ก็สำเร็จสำหรับเงื่อนไขนี้ด้วย เนื่องจากห่อ sentinel แทนที่จะประกาศ sentinel จึงถูกเอ็กซ์พอร์ตเป็นค่าแทนที่จะเป็นฟังก์ชัน ให้จับคู่เป็น ErrCacheMetadataInvalid โดยไม่มีวงเล็บ จับคู่กับตัวห่อเมื่อต้องการเงื่อนไขเฉพาะนั้น และจับคู่กับ sentinel ที่ถูกห่อเมื่อต้องการทั้งประเภทของความคลาดเคลื่อนด้านความสมบูรณ์

Sentinels reachable under a second name in one package (sentinel ที่เข้าถึงได้ด้วยชื่อที่สองในแพ็กเกจเดียว)

เมื่อแพ็กเกจเอ็กซ์พอร์ตตัวเข้าถึงสองตัวสำหรับเงื่อนไขเดียว โดยตัวที่สองประกาศเป็นการส่งต่อไปยังตัวแรก ตารางข้างต้นจะแสดงตัวเข้าถึงที่ประกาศและไม่แสดงชื่อที่ส่งต่อ ทั้งสองชื่อถูกเอ็กซ์พอร์ตจากแพ็กเกจเดียวกัน การนำเข้าที่เข้าถึงชื่อใดชื่อหนึ่งจึงเข้าถึงอีกชื่อหนึ่งอยู่แล้ว และแถวที่สองจะแสดงเงื่อนไขเดียวสองครั้งภายใต้ชื่อที่ไม่ตรงกับสิ่งใหม่ใดเลย การจับคู่ชื่อใดก็สำเร็จ เพราะการส่งต่อคืนค่าเดียวกับที่ตัวเข้าถึงที่ประกาศคืน

กรณีนี้ไม่ใช่กรณีข้ามแพ็กเกจ sentinel ที่เอ็กซ์พอร์ตซ้ำจากแพ็กเกจอื่นมีแถวในตารางของแต่ละแพ็กเกจ เพราะตัวจับคู่ที่นำเข้าแพ็กเกจหนึ่งเข้าถึงชื่อของอีกแพ็กเกจไม่ได้ หากไม่นำเข้าแพ็กเกจนั้นด้วย ส่วนการส่งต่อภายในแพ็กเกจเดียวไม่ต้องมีแถวที่สอง เพราะการนำเข้าครั้งเดียวเข้าถึงได้ทั้งสองชื่อ

ErrDuplicateRecipeIdentity() ใน pkg/catalog เป็นการส่งต่อในลักษณะนี้ โดยคืนค่า ErrDuplicateEntityIdentity() ซึ่งเป็นชื่อที่ตารางของแพ็กเกจนั้นแสดง

Conditions with no matchable sentinel (เงื่อนไขที่ไม่มี sentinel ให้จับคู่)

ขั้นตอนการคอมไพล์บางขั้นตอนประกาศ sentinel ในแพ็กเกจที่คอมไพเลอร์ไม่เอ็กซ์พอร์ต จึงไม่มีสิ่งใดให้ errors.Is อ้างอิง และเขียนตัวจับคู่กับเงื่อนไขเหล่านี้ไม่ได้ หน้านี้จึงอธิบายไว้แทนที่จะแสดงเป็นตาราง เพราะตารางในหน้านี้เป็นคำมั่นว่าคอลัมน์ซ้ายสามารถอ้างอิงถึงค่าจริงได้

การวินิจฉัยของเงื่อนไขเหล่านี้ไปถึงคุณครบถ้วนผ่านข้อความข้อผิดพลาดที่ส่งออกและผ่านมุมมองที่จัดตามข้อความ โดยเฉพาะ fatal-halts.md ซึ่งเป็นวิธีที่รองรับในการระบุเงื่อนไขเหล่านี้

  • การสร้างโทโพโลยี (การสร้างกราฟและการแผ่ Aggregate ย่อย) รายงาน Aggregate ย่อยที่โหลดไม่ได้ โดยระบุ URI ของ Aggregate ที่เข้าถึงไม่ได้ การประกาศ uses: ที่รูปทรงเชิงโครงสร้างไม่ตรงกับสคีมา ความลึกของการซ้อนที่เกินกำหนด และการชนกันของ ID โหนดที่แผ่แล้ว ซึ่ง Aggregates ย่อยสองรายการคอมไพล์เป็น ID โหนดเดียวกัน และต้องเปลี่ยนชื่ออินสแตนซ์หนึ่งชื่อเพื่อแยกความแตกต่าง
  • การทำกราฟให้เสร็จสมบูรณ์ (การรวม Feature ข้ามพื้นผิวของ Aggregate และ Release) รายงานชนิดของ Feature ที่ประกาศไม่สอดคล้องกันระหว่างสองพื้นผิวนั้น
  • การวิเคราะห์เชิงสถิต (การประเมินค่าตัวคัดเลือกและการตรวจสอบความปลอดภัยของชนิดข้ามโหนด) รายงานการละเมิด selector: การหาค่าแค็ตตาล็อกที่พลาดจนดำเนินต่อไม่ได้ โดยระบุเอนทิตีที่เข้าถึงไม่ได้ และการปฏิเสธตามนโยบาย ซึ่งปลั๊กอินที่แนบในบทบาทคำตัดสินด้านการกำกับดูแลปฏิเสธการบิลด์ที่ประกอบขึ้น การปฏิเสธตามนโยบายมีหมวด POLICY_ERROR ชื่อของปลั๊กอินที่ปฏิเสธ และข้อความกฎที่ปลั๊กอินระบุไว้
  • การเรนเดอร์ (การกระจายไปยังผู้ให้บริการและการเรนเดอร์ของผู้ให้บริการแต่ละราย) รายงานผู้ให้บริการที่ไม่รู้จัก
  • ตัวโหลดโฮสต์ Wasm แบบฝังในตัว ส่ง sentinel ของราวกั้นของตัวเองออกมา ได้แก่ ราวกั้นที่ปฏิเสธแมนิเฟสต์ (ปลั๊กอินร้องขอความสามารถในการเข้าถึงขณะรันที่ไฟร์วอลล์ความบริสุทธิ์แบบ AOT ปฏิเสธ) การกู้คืนจาก panic ของเกสต์ และ trap การออกของปลั๊กอินที่กำหนดแน่นอน สิ่งเหล่านี้ปรากฏในการวินิจฉัยที่ผู้ใช้เห็นเมื่อรันปลั๊กอิน (เช่นผ่าน aggrega lint) ผู้เขียน Plugin ที่ทดสอบเกสต์กับโฮสต์เข้าถึงเงื่อนไขเดียวกันได้ด้วยชื่อที่นำเข้าได้ผ่าน pkg/plugintest ตามรายการข้างต้น

หากต้องการใช้การปฏิเสธตามนโยบายเป็นด่านตรวจของไปป์ไลน์โดยเฉพาะ ให้จับคู่คำนำหน้าหมวด POLICY_ERROR ในการวินิจฉัยแทนการจับคู่ sentinel หมวดนี้เป็นส่วนที่มีเอกสารของพื้นผิวข้อผิดพลาด ซึ่งอธิบายไว้ใน error-translation.md

Every condition, by short code (ทุกเงื่อนไข จัดตามรหัสย่อ)

ตารางด้านล่างค้นในทิศทางตรงกันข้าม คือรหัสย่อในคอลัมน์ซ้าย และข้างๆ คือเงื่อนไขที่รหัสนั้นระบุพร้อมข้อความที่เงื่อนไขนั้นเรนเดอร์ ตารางครอบคลุมทุกเงื่อนไขที่ aggrega รายงานได้ รวมถึงเงื่อนไขที่ส่วนข้างต้นแสดงรายการไม่ได้

ความครอบคลุมที่กว้างกว่านั้นคือจุดประสงค์ของตารางนี้ ไม่ใช่ผลพลอยได้ ส่วนข้างต้นจัดตามชื่อที่นำเข้าได้ ดังนั้นเงื่อนไขที่ประกาศเฉพาะในแพ็กเกจที่นำเข้าไม่ได้ และไม่ได้เอ็กซ์พอร์ตซ้ำในที่ใดที่นำเข้าได้ จึงไม่มีสิ่งใดจะใส่ในคอลัมน์ซ้ายของส่วนเหล่านั้น ตารางนี้จัดตามรหัสย่อ และทุกเงื่อนไขมีรหัสย่อ จึงไม่มีเงื่อนไขที่รายงานได้ตกอยู่นอกตาราง รหัสย่อที่คุณถืออยู่หาค่าได้ที่นี่ ไม่ว่าเงื่อนไขเบื้องหลังจะมีตัวเข้าถึงที่จับคู่ได้หรือไม่

สิ่งที่ทำให้เงื่อนไขมีที่ในตารางนี้คือคอมไพเลอร์รายงานเงื่อนไขนั้นได้จริง แถวต่างๆ ได้มาจากโค้ดแทนที่จะถูกคัดลอกลงไปในโค้ด เงื่อนไขปรากฏที่นี่เพราะมีบางส่วนในคอมไพเลอร์ยกขึ้น ดังนั้นทุกรหัสในคอลัมน์ซ้ายจึงเป็นรหัสที่ aggrega พิมพ์ได้ นั่นคือคำมั่นของตาราง และทำให้อ่านแถวเป็นการตรวจสอบที่รันจริงได้

ข้อยกเว้นโดยเจตนาคือเงื่อนไขที่ประกาศก่อนที่โค้ดซึ่งรายงานเงื่อนไขนั้นจะมีอยู่ เพื่อให้รหัสและถ้อยคำถูกกำหนดไว้ล่วงหน้าและไม่เปลี่ยนใต้ผู้อ่านที่อ้างอิงไปแล้ว เงื่อนไขเช่นนั้นระบุไว้ในหมายเหตุใต้ตารางโดยตรง เงื่อนไขนั้นถูกแสดงรายการแทนที่จะซ่อน เพราะรหัสที่คุณถืออยู่ควรหาค่าได้เสมอ และหมายเหตุข้างเงื่อนไขบอกอย่างตรงไปตรงมาว่ายังไม่มีการบิลด์ใดยกเงื่อนไขนั้นขึ้น และต้องมีสิ่งใดเกิดขึ้นก่อนจึงจะยกขึ้นได้

หมายเลขที่ถูกถอนแล้วก็แสดงรายการไว้เช่นกัน ในชุดหมายเหตุของตัวเองใต้ตาราง และคงอยู่ในรายการถาวร เงื่อนไขบางครั้งถูกถอน โดยถูกแทนที่ด้วยเงื่อนไขที่ครอบคลุมกว้างกว่า หรือไม่เคยมีสิ่งใดรายงานเงื่อนไขนั้น และตั้งแต่ขณะนั้นหมายเลขของเงื่อนไขถือว่าถูกถอนแล้ว ไม่ถูกมอบให้เงื่อนไขอื่นเลย ดังนั้นรหัสย่อที่คุณยกมาจากรายงานเก่าจึงระบุได้เฉพาะสิ่งที่ระบุไว้ ณ เวลาที่เขียนรายงานเท่านั้น คำมั่นนี้เป็นกลไก ไม่ใช่การบรรณาธิการ เงื่อนไขที่ประกาศภายใต้หมายเลขที่ถูกถอนแล้วจะถูกปฏิเสธก่อนที่คอมไพเลอร์จะอ่านอินพุตใดๆ ในทุกการรัน ดังนั้นจึงไม่มีรุ่นใดบรรจุเงื่อนไขเช่นนั้นได้ ซึ่งเป็นการปฏิเสธประเภทเดียวกับที่เงื่อนไขที่ยังใช้งานอยู่สองรายการพยายามใช้หมายเลขร่วมกันจะเจอ โดยมีถ้อยคำที่ต่างกันเพื่อให้แยกได้ว่าเจออย่างใด หมายเหตุของรหัสที่ถูกถอนแล้วบอกคุณ เมื่อการถอนบันทึกไว้ ว่ารหัสนั้นเคยระบุอะไร และเมื่อเงื่อนไขถูกแทนที่ รหัสใดรายงานขอบเขตนั้นในตอนนี้

การไม่นำหมายเลขกลับมาใช้อีกยังทำให้ลำดับมีช่องว่างถาวร และหมายเหตุทำให้ช่องว่างเหล่านั้นอ่านเข้าใจได้ หมายเลขที่หายไปไม่ใช่หลักฐานของสิ่งใดด้วยตัวเอง หมายเลขนั้นอาจถูกถอนแล้ว และอาจเป็นหมายเลขที่ยังไม่มีสิ่งใดไปถึงก็ได้ หมายเหตุเป็นบันทึกว่าหมายเลขใดถูกถอนแล้ว และเมื่อบันทึกไว้ แต่ละหมายเลขเคยระบุอะไร ดังนั้นรหัสที่หาค่าไม่ได้ทั้งแถวและหมายเหตุคือรหัสที่คอมไพเลอร์นี้ไม่เคยออกให้

รหัสย่อทึบโดยเจตนา ตัวเลขสี่หลักไม่บอกอะไรเกี่ยวกับเงื่อนไขด้วยตัวเอง ซึ่งเป็นราคาของตัวระบุที่สั้นพอจะอ่านออกเสียง พิมพ์ลงในการค้นหา หรือวางลงในรายงาน ความสอดคล้องด้านล่างทำให้ใช้งานได้ หมายเลขถูกมอบให้ครั้งเดียวจากลำดับที่เพิ่มขึ้นลำดับเดียว และคงที่ตั้งแต่นั้นเป็นต้นไป หมายเลขไม่บอกอะไรเกี่ยวกับเงื่อนไขที่ระบุ ดังนั้นรหัสย่อเป็นตัวระบุและไม่ใช่สิ่งอื่น ค่าของรหัสไม่ใช่การจัดประเภท และทั้งรหัสและการจัดกลุ่มใดๆ ที่คุณสังเกตเห็นในตารางไม่ใช่แนวทางว่าเงื่อนไขอยู่ที่ใดหรือเกี่ยวกับอะไร

ตารางไม่มีคอลัมน์หมวด และนั่นไม่ใช่การละเว้น หมวดเป็นคุณสมบัติของความล้มเหลวหนึ่งๆ ไม่ใช่ของเงื่อนไขเบื้องหลัง เงื่อนไขบางรายการอยู่ในหมวดเดียวโดยโครงสร้าง ส่วนรายการอื่นหมวดขึ้นกับประเภทของเอนทิตีที่ความล้มเหลวเกี่ยวข้อง เงื่อนไขเช่นนั้นที่รายงานครั้งหนึ่งกับ Aggregate และอีกครั้งกับ Release จึงมีหมวดต่างกันในแต่ละครั้ง และค่าเดียวที่เขียนไว้ข้างเงื่อนไขที่นี่จะผิดสำหรับทุกเงื่อนไขประเภทที่สองนั้น

หมวดสอนอยู่ที่ error-translation.md ได้แก่แต่ละหมวด ความหมาย และที่ที่ทางแก้อยู่ หมวดและรหัสย่อตอบคำถามต่างกันเกี่ยวกับความล้มเหลวเดียวกัน หมวดระบุพื้นผิวที่ทางแก้อยู่ และรหัสย่อระบุว่าเงื่อนไขใดหยุดการบิลด์ ทั้งสองอย่างไม่ได้มาจากอีกอย่างหนึ่ง จึงมีรายการที่เผยแพร่ของแต่ละอย่าง และทำให้ความล้มเหลวที่ไม่มีพื้นผิวการเขียนให้ระบุก็ยังมีรหัสที่คุณหาได้ที่นี่

รหัสเงื่อนไขข้อความ
E0001no-plugin-resolution-configuredcliplugin: no plugin resolver configured
E0003malformed-attachment-requirementmalformed attachment requirement
E0004overridden-annotationannotation contribution overridden by an explicit value
E0005policy-violationpolicy violation
E0006required-slot-unfilledrequired attachment slot unfilled
E0007selector-violationselector violation
E0008slot-selector-unsatisfiedattachment slot selector unsatisfied
E0009pipeline-contract-violationpipeline step typed-I/O contract violation
E0010pipeline-step-failedpipeline step failed
E0011pipeline-target-absentpipeline patch targets a document not present in the set
E0012pipeline-target-opaquepipeline patch targets an opaque (non-structured) unit
E0013feature-type-mismatchfeature type mismatch between Aggregate and Release
E0014inject-entry-ambiguousinject entry carries both `value:` and `from:`; schema requires exactly one
E0015uses-inject-forbiddenuses-edge inject dictates a delivery mechanism the socket does not permit
E0016patch-test-operation-failedjsonpatch: test operation failed
E0017annotation-injection-rejectedannotation-transform plugin output was rejected: an injection targets a component coordinate the host did not supply, or carries a value that is not a string or an object of subkeys
E0018policy-settings-invalidpolicy attachment settings do not satisfy the plugin's declared settings schema
E0019endpoint-requires-reference-formendpoint requires form: reference
E0020invalid-cron-scheduleschedule is not a valid cron expression
E0021persistent-template-requires-stateful-formpersistentTemplate volume requires form: stateful
E0022pipeline-patch-target-not-structuredpipeline PATCH target is not parseable structured YAML/JSON
E0023reference-form-requires-endpointform: reference requires an endpoint
E0024schedule-requires-scheduled-formschedule requires form: scheduled
E0025scheduled-form-requires-scheduleform: scheduled requires a schedule
E0026artifact-content-mismatchimported artifact content does not match the digest recorded for it in entity.lock
E0027artifact-import-shapeartifacts $import: is not a bare-name artifact-library reference (<Library>#/artifacts/<entry>)
E0028artifact-output-collisionartifacts output filename collision: two artifact outputs carry the same filename
E0029artifact-pillar-not-declaredartifact template references a pillar the Recipe does not declare
E0030artifact-library-entry-not-foundartifact-library import references a bundle not present in the ArtifactLibrary
E0031artifact-library-not-foundartifact-library import references an ArtifactLibrary not present in the catalog
E0032assembled-output-collisionassembled output collision: two contributors write the same output path
E0033authored-assertion-failedassertion failed
E0034attachment-inject-key-collisionduplicate delivery key across attachment-inject and another inject source
E0035boundary-assembly-not-providedprovider expected to assemble its dispatch group provides no boundary assembler
E0036chart-name-mismatchmerged-path assembly has conflicting assembly-name annotation values
E0037cross-provider-link-unsupportedcross-boundary link between endpoints rendered by different providers is not supported
E0038derived-key-collisionderived name collision: one name is derived more than once in one key space
E0039featurerecipe-template-invalid-fieldFeatureRecipe template references a per-component-only field with executionScope: boundary
E0040host-in-library-importlibrary $import: carries a registry host; reference the library by bare-name identity
E0041instance-id-collisionmultiple contributors share an instance ID at the same dispatch path
E0042locals-forward-referencelocals entry references a sibling defined later in the same block
E0043locals-unknown-referencetemplate references a key the locals block does not declare
E0044mapping-entry-not-foundmapping-library import references an entry not present in the MappingLibrary
E0045mapping-import-shapevaluesMapping $import: is not a bare-name mapping-library reference (<Library>#/mappings/<entry>)
E0046mapping-library-not-foundmapping-library import references a MappingLibrary not present in the catalog
E0047orphan-cross-boundary-link-placeholderassembled output retains an unresolved cross-boundary link placeholder
E0048path-collisiondispatch path produced multiple provider outputs
E0049path-template-invalid-fieldpath template references a field not in the documented allowlist
E0050pipeline-host-scope-unavailablepipeline /host operation from a step with no host component
E0051pipeline-patch-targets-unassembled-fragmentspipeline PATCH targets an assembler provider's pre-assembly fragments
E0052pipeline-target-not-emittedpipeline PATCH targets a document the node did not emit
E0053plugin-provider-incompatiblepipeline plugin is not compatible with the rendering provider
E0054provider-node-input-invalidprovider rejected node input
E0055provides-contract-unfulfilledRecipe or FeatureRecipe does not publish a provides key its abstract entity's schema.provides contract declares
E0056provides-evaluation-failedprovides template evaluation failed
E0057provides-self-containmentprovides block references a root outside the self-contained set
E0058render-nondeterministicprovider render is not deterministic
E0059self-inject-key-collisionduplicate delivery key across self-inject and uses-inject
E0060template-unknown-roottemplate references a root the render context does not define
E0061unknown-providerunknown provider
E0062custom-mechanism-has-no-mappingcustom inject mechanism has no matching key in injectMapping output; add the mechanism's key to the Recipe injectMapping
E0063workload-entry-not-foundworkload-library import references an entry not present in the WorkloadLibrary
E0064workload-import-shapeworkload $import: is not a bare-name workload-library reference (<Library>#/workloads/<entry>)
E0065workload-library-not-foundworkload-library import references a WorkloadLibrary not present in the catalog
E0066dangling-uses-targetuses edge target does not exist
E0067active-toggle-not-a-booleanactive toggle did not resolve to a boolean
E0068sub-aggregate-nesting-depth-exceededmax sub-aggregate nesting depth exceeded
E0069mutator-patch-rejectedmutator patch rejected
E0070reexport-cyclere-exported component alias forms a cycle
E0071release-edge-retargetrelease edge retargets a developer-declared edge
E0072sub-aggregate-not-loadablesub-aggregate load failed
E0073sub-aggregate-name-collisionflattened node ID collision: rename one of the colliding instances so their flattened IDs differ
E0074unbound-release-edge-configrelease per-edge configuration has no edge to apply to
E0075aggregate-not-in-canonical-formaggregate reached topology un-normalized (non-empty root components alongside a synthesized default subsystem)
E0076unplaced-sub-modulesub-module placed in no boundary: route it into a boundary under `aggregates`, or name its components there under `components`
E0077uses-target-not-activeuses edge target was pruned because its active toggle resolved to false
E0078wasm-nested-producer-consumption-deniedproducer-consumption re-entry denied: a producer reached through the host may not issue a further producer-consumption call
E0079wasm-command-set-mismatchwasm: recorded command mirror does not match plugin describe()
E0080wasm-contract-mismatchwasm: entity contract claim does not match plugin describe()
E0081wasm-diagnostic-severity-invalidwasm: guest plugin returned a diagnostic whose severity the contract does not declare
E0082wasm-guest-errorwasm: guest plugin reported an error
E0083wasm-guest-panicwasm: guest plugin panicked during call
E0084wasm-host-function-set-mismatchwasm: stamped host-function record does not match .wasm imports
E0085wasm-manifest-rejectedwasm: plugin rejected by the sandbox
E0086wasm-plugin-exitedwasm: plugin invoked proc_exit
E0087wasm-plugin-type-mismatchwasm: declared plugin type does not match plugin describe()
E0088wasm-plugin-version-mismatchwasm: entity metadata.version does not match plugin describe()
E0089all-versions-retractedevery published version this reference could select has been withdrawn
E0090ambiguous-importer-pluginformat is advertised by more than one importer plugin
E0091ambiguous-parser-pluginformat is advertised by more than one parser plugin
E0092ambiguous-provider-plugincapability is served by more than one provider plugin; add a plugins.providers entry to select one
E0093ambiguous-type-mappingManifest maps multiple version-distinct keys to the same base type; the type-to-recipe lookup is ambiguous
E0094duplicate-entity-identityduplicate entity identity within a single catalog directory
E0095malformed-recipe-referencemalformed recipe reference in a Manifest mapping value
E0096manifest-implements-mismatchManifest mapping entry's recipe spec.implements does not match the mapped component-type / feature-type key
E0097no-importer-for-formatno importer plugin advertises the requested format
E0098no-parser-for-formatno parser plugin advertises the requested format
E0099no-recipe-resolvedno recipe resolved for component/feature instance: add an explicit Manifest mapping for its type
E0100provider-binding-unsatisfiedplugins.providers entry names a plugin no provider-rendering plugin serving the capability matches
E0101provider-version-unsatisfiableno provider-rendering plugin version satisfies the recipe's provider version pin
E0102plugin-reference-must-not-be-registry-qualifiedwasm plugin reference must be the plugin coordinate identity (<pluginType>/<name>:<version>), not a registry-qualified or artifact path
E0103unsatisfiable-entity-versionno catalog version satisfies the referenced version constraint
E0104plugin-reference-must-be-scopedwasm plugin reference must carry a pluginType scope (<pluginType>/<name>); an empty scope cannot bind to an OCI location
E0105recipe-reference-must-be-scopedrecipe reference must be provider-scoped (<provider>/<name>); an empty provider cannot bind to an OCI location
E0106invalid-library-refresolve: invalid library reference URI
E0107version-selection-conflictresolve: consumers of one library require versions in incompatible majors
E0108catalog-cannot-load-sub-aggregate-bodiesresolve: catalog lookup cannot load resolved sub-aggregate bodies
E0109catalog-cannot-load-recipe-bodiesresolve: catalog lookup cannot load resolved recipe and plugin bodies
E0110source-template-at-lock-timeresolve: source-template evaluation failure at lock time
E0111source-template-not-parsableresolve: source-template parse error
E0112source-template-provides-refresolve: source-template references .provides (invalid reverse reference)
E0113sub-aggregate-depthresolve: sub-aggregate inclusion depth exceeded
E0114unresolvable-uriresolve: no entity in the catalog matches this URI
E0115ambiguous-dispatchcompactform: ambiguous dispatch — $mode required
E0116constraint-type-mismatchcompactform: constraint not valid for declared type
E0117escape-content-invalidcompactform: $jsonschema content invalid
E0118host-in-library-refcompactform: cross-document $ref carries a registry host; reference the library by identity
E0119reference-unresolvablecompactform: $ref unresolvable
E0120unknown-keywordcompactform: unknown keyword
E0121unresolved-schema-library-refcompactform: cross-document $ref target not found
E0122deprecated-entitydeprecation: build consumes a deprecated entity
E0123not-docs-bundledocscache: artifact is not a documentation bundle
E0124page-not-founddocscache: page not found in documentation bundle
E0125offline-egressegress: network access refused because the workspace is offline; remediation: pass `--offline=false` to allow the network for this one run, or clear the top-level `offline` key in the configuration file (or AGGREGA_OFFLINE) to allow it from now on; where the work is a build that needs content the machine does not have, run `aggrega pull --release <release>` from a connected environment first to populate the cache
E0126acquisition-disabledexternalinputs: acquisition is disabled for unpinned inputs
E0127digest-mismatchexternalinputs: fetched bytes mismatch the pinned digest
E0128scheme-not-allowedexternalinputs: URL scheme is not allowed
E0129store-corruptexternalinputs: store blob mismatches its pinned record
E0130lockfile-driftlockfile: out of date; it no longer matches what its Release resolves to
E0131lockfile-invalidlockfile: file failed schema validation
E0132ambiguous-content-layeroci: manifest has multiple layers of the expected content media type
E0133cached-manifest-integrityoci: cached manifest digest mismatch
E0135fetch-integrityoci: content digest mismatch
E0136fetch-network-unreachableoci: network unreachable
E0137fetch-not-foundoci: artifact not found at remote source
E0138fetch-unauthorizedoci: authentication required or failed
E0139immutable-tag-conflictoci: tag already published with different content
E0140no-content-layeroci: manifest has no layer of the expected content media type
E0141oci-location-collisionoci: distinct catalog identities map to the same OCI repository location
E0142referrer-discovery-unavailableoci: referrer discovery could not be completed
E0143unknown-entity-kindoci: unknown entity kind for mediatype dispatch
E0144signature-bundle-digest-mismatchcached signature bundle does not match its recorded digest
E0145plugin-entity-not-foundplugin reference is not a Plugin entity
E0146reference-cyclecircular reference expansion
E0147malformed-trust-policyregistrytrust: advertised trust config is malformed
E0148no-trust-advertisedregistrytrust: registry advertises no trust config
E0149attachment-slot-near-missattachment name is a near miss for a declared slot
E0150attachment-slot-shapeattachment does not conform to its declared slot shape
E0151duplicate-boundary-componentcomponent declared in more than one boundary: declare each component in exactly one boundary
E0152duplicate-triad-identityduplicate Aggregate/Manifest identity (metadata.name) in the Release directory
E0153feature-merge-conflictfeature merge conflict: reconcile the Aggregate and Release declarations for the feature
E0154internal-catalog-view-disagreementthe compiler's own views of the catalog disagree
E0155inject-key-collisionduplicate delivery key across inject sources
E0156invalid-inject-keyinvalid inject key: the from-key must name a provides key its source publishes
E0158invalid-parameter-refinvalid parameter reference: check the {{ .parameters.* }} expression names a declared parameter and parses as a Go template
E0160manifest-cross-binding-pillar-collisionManifest annotation bindings collide on same Feature path+pillar
E0161manifest-reserved-prefixManifest annotation binding uses reserved prefix
E0162missing-required-featuremissing required feature: attach a Feature of the required type to the component
E0163missing-required-socketrequired uses socket not populated
E0164parameter-contract-violationparameter contract violated
E0165parameter-missingrequired parameter not supplied
E0167provides-key-not-declaredRecipe publishes a provides key its Component does not declare
E0168schema-conformanceauthored pillar does not conform to its declared schema
E0169self-inject-forbiddenself-inject on component without spec.inject allowlist
E0170triad-ref-unresolvableAggregate/Manifest reference unresolvable
E0171unknown-uses-socketunknown uses socket: name a socket the entity declares in its usesSchema — only a component's own uses block may name one the catalog did not declare
E0172release-not-in-canonical-formrelease reached resolve un-normalized (non-empty root components alongside a synthesized default boundary)
E0173unread-parameterdeclared parameter is read by no reference in the Aggregate
E0174uses-socket-near-missuses socket name is a near miss for a declared socket
E0175document-not-loadablefile load failed: the file could not be read, or its bytes did not parse
E0176keyless-signing-requires-networksigning: keyless signing requires a live identity provider, Fulcio, and Rekor
E0177no-signature-foundsigning: no signature found for an artifact that requires one
E0178no-trusted-identitiessigning: keyless verification requires at least one trusted identity
E0179signature-invalidsigning: signature does not verify
E0180signature-verification-failedsigning: signature bundle does not verify
E0181signing-policy-requires-signaturesigning: signing policy requires a signature for this artifact kind; refusing to push unsigned content
E0182trust-root-not-loadablesigning: cannot load pinned trust root
E0183unsigned-push-refusedsigning: registry requires signatures; refusing to push unsigned content
E0184unsupported-keysigning: unsupported held-key type
E0185untrusted-identitysigning: signature identity is not trusted for this registry
E0186unknown-source-kindno source adapter serves the source kind
E0187empty-workspace-rootcacheslot: empty workspaceRoot
E0188artifact-entry-shapeartifacts entry: shape must be a string scalar or {$import: <local-path>}
E0189artifact-library-entry-shapeartifactlibrary: entry must be a mapping of filename to a string body
E0190forbidden-keywordschemalibrary: forbidden JSON Schema keyword
E0191mapping-entry-not-scalarmappinglibrary: entry body must be a string scalar
E0192document-nesting-depth-exceededa document nests too many levels deep
E0193parameters-shapeparameters: shape must be an inline object or {$import: <local-path>}
E0194template-not-foundschemalibrary: template not found
E0195template-param-missingschemalibrary: template parameter missing
E0196template-param-type-mismatchschemalibrary: template parameter type mismatch
E0197values-mapping-shapevaluesmapping: shape must be a string scalar or {$import: <path-or-library-identity>}
E0198well-known-annotation-scopewellKnownAnnotations: a key is declared at a scope the provider's contract does not render
E0199workload-entry-not-scalarworkloadlibrary: entry body must be a string scalar
E0200workload-template-shapeworkload: shape must be a string scalar or {$import: <path-or-library-identity>}
E0201assertion-name-collisionassertion name declared twice across the extends chain
E0202cyclic-extensioncyclic extends chain
E0204feature-recipe-values-mapping-requires-sourceFeatureRecipe: valuesMapping requires source
E0205extends-merge-failedinheritance merge failed
E0207recipe-output-component-label-collisionrecipe output-component-labels constraint: key is also declared in outputLabels
E0208recipe-output-label-reserved-namespacerecipe output-labels constraint: key uses a reserved namespace
E0209recipe-values-mapping-requires-sourceRecipe: valuesMapping requires source
E0210recipe-no-input-kindRecipe: at least one input kind required
E0211recipe-filename-collision-across-input-kindsfilename collision across input kinds: two input-kind blocks produced a file under one output name
E0212slot-not-referenceableworkload attachment slot is not referenceable
E0213workload-features-schemaworkload featuresSchema cross-check failed
E0214workload-not-validworkload validation failed
E0215entity-envelope-invaliddocument envelope validation failed
E0216schema-extension-evaluation-failedvalidator/jsonschema: x-aggrega extension evaluation failed
E0218schema-not-resolvablevalidator/jsonschema: schema resolution failed
E0220extends-chain-too-deepextends chain exceeds maximum depth
E0221schema-merge-input-invalidmerger: invalid merge input
E0222ambiguous-registry-aliasregistry alias matches more than one host
E0223capability-on-cross-cutting-socketa cross-cutting socket is bound by capability but attaches by uri
E0224workspace-config-invalidworkspace configuration is invalid
E0225duplicate-provider-targetcapability is bound to more than one provider plugin
E0226duplicate-registry-aliasregistry alias is already used by another host
E0227governance-role-invalida governance attachment declares no role or an unknown role
E0228inert-field-on-provider-socketa provider socket binding sets a field with no referent on that socket
E0229position-out-of-rangeposition out of range
E0246verdict-plugin-trust-mismatchthe digest recorded as trusted for this plugin does not match the digest its cached manifest reports
E0247verdict-attachment-not-configureda plugin recorded as trusted for an accept-or-reject verdict is no longer attached at any verdict role
E0248wasm-output-shapewasm: guest plugin returned an output that is not the shape the socket reads
E0250nest-segment-not-one-directoryprovider named a directory for each contributor's own sub-directory that is not a single directory name
E0251recipe-source-is-emptyrecipe source is an empty string, which names neither sourceless mode nor sourced mode
E0252artifact-library-file-escapes-keyartifact-library bundle file name does not name a file of its own beneath the artifacts key its output is nested under
E0253annotation-binding-target-unresolvedannotation binding does not resolve against its target Feature
E0254annotation-subkey-not-conformingannotation subkey does not conform to the target Feature's schema at the routed pillar
E0255annotation-side-pillar-mismatchannotation routes through a pillar its authoring side may not use
E0256annotation-binding-pillar-overlapannotation binding declares one path in both pillar lists
E0257schema-contract-compile-failuredeclared schema contract could not be compiled into a usable schema, so nothing was validated against it: correct the contract where it is declared, or remove it if the configuration it covers needs no validation
E0259boundary-scope-attachment-not-declared-at-a-boundaryattachment binds a FeatureRecipe with executionScope: boundary and no boundary holding the component declares it
E0260unplaced-componentcomponent placed in no boundary: name it under a boundary's `components`, or place the sub-module that contributes it under `aggregates`
E0261unresolved-boundary-componentboundary names a component the composition does not hold: correct the name, or remove the entry
E0262unusable-component-identitycomponent identity cannot be the name its emitted resources are stamped with: rename the component
E0263component-identity-target-refusesthe target will not accept a name derived from this component's authored identity: rename the component
E0264provider-refused-every-component-identityprovider guest never accepted a component identity the compiler composed for it
E0265unsupported-input-kindprovider does not support the node's input kind
E0266unusable-schema-importa schema `$import:` could not be applied
E0267unknown-schema-pillara schema block declares a key that names no data pillar
E0268pipeline-patch-unit-not-carvedreassemble names a patched unit token the carve did not produce; a conforming codec carves and reassembles a file under the same tokens
E0269provider-render-duplicate-pathprovider guest returned two output files under one path; a conforming guest returns each output path at most once
E0270link-patch-file-not-emittedlink patch names an output file the dispatch group did not emit; a conforming link patch names a file the group's own render returned
E0271pipeline-emit-file-absentemit_file side effect carries no file; a conforming emit_file side effect carries a file with its path and content
E0272pipeline-side-effect-kind-undefinedside effect declares a kind the plugin contract does not define; a conforming side effect declares emit_file or emit_crd
E0273rendered-name-unavailabletemplate reads the name the target gives the resources it renders for the node, and this node's provider reports no such name; a conforming template reads a value the node's own provider supplies
E0274verdict-plugin-identity-changedthe plugin identity recorded as trusted no longer matches what this resolution reports
E0275edit-refused-invalid-resultthe edit was refused because the resulting document would not be valid, and nothing was written
E0276schema-evolutionthe version being published changes the published predecessor in a way the documented evolution rubric objects to
E0277annotation-prefixan annotation key on the entity uses a prefix the platform reserves
E0278name-shapethe entity's name does not follow the documented name shape for its kind
E0279dynamic-refsa schema in the entity uses a dynamic reference construct that cross-document reference resolution cannot follow
E0280id-overridesa schema in the entity declares an identifier of its own, where the platform owns that schema's identity
E0281category-matches-directorythe entity's category label does not match the category directory the entity is filed under
E0282x-aggrega-discouragementthe entity writes an Aggrega schema extension directly into schema content instead of declaring it under usesSchema or featuresSchema
E0283plugin-default-limitsthe Plugin entity declares no runtime resource cap of its own, so the platform defaults apply
E0284secret-slot-declares-sensitivean attachment slot admits only secret material and does not declare that it handles it
E0285provides-declared-by-componentthe Recipe publishes a provides key the Component it implements does not declare, so a consumer wiring that key is refused
E0286publish-bump-below-classificationthe version bump being published is smaller than the evolution check's classification of the change requires
E0287import-halting-diagnosticthe importer reported a diagnostic that stops the import, so the source was not fully turned into draft authoring files
E0288plugin-cannot-express-inputa plugin has no expression for a construct this build declares
E0289plugin-required-input-unresolveda plugin could not resolve something it requires to exactly one value
E0290plugin-output-name-collisiontwo things a plugin produced occupy one name in its output
E0291plugin-value-not-representablea plugin has no representation for a value it was given
E0292plugin-failure-unclassifieda plugin reported a failure that none of the declared kinds names
E0293wasm-guest-condition-undeclaredwasm: guest plugin named a condition the socket does not declare
E0294subsystem-component-identity-collisioncomponents in different subsystems take the same identity: rename one of them, since a subsystem contributes nothing to a component's identity
E0295library-reference-whitespacelibrary reference: a reference to a library entry carries no whitespace or line break
E0296release-chain-composes-both-routing-keysrelease extends chain composes both named boundaries and top-level components: declare one routing shape across the chain, never both
E0297inherited-boundary-directory-is-literalinherited boundary directory carries no template variable, so it resolves to the path the extended Release writes to
E0298bundle-no-entity-documentoci: published bundle carries no entity document
E0299bundle-ambiguous-entity-documentoci: published bundle carries more than one entity document
E0300bundle-unreadableoci: published bundle cannot be unpacked
E0301published-artifact-not-an-entityoci: published artifact is not an entity document
E0302entity-not-pinnedan input the entity reads has no pin recorded for it in the entity.lock beside it
E0303entity-shares-its-directorythe entity shares its directory with another entity, and an entity of its kind has a directory of its own
E0304content-outside-entity-directorya path names content outside the entity's own directory
E0305local-source-content-mismatchthe files of the entity's local source do not match the pins recorded for them in entity.lock
E0306plugin-artifact-not-foundplugin artifact not found on this machine
E0307cache-location-outside-cachea value a cache location is built from would place cached files outside the place it names in the cache
E0308conflicting-features-reach-one-componenta Feature reaches a component alongside a Feature it declares a conflict with
E0309symbolic-link-in-entity-filesa symbolic link sits among the files an entity carries
E0310offline-registration-without-trust-policya registry other than the official hub is not registered offline without a trust policy supplied by hand, because the policy it advertises cannot be fetched; register it once while online, or pin its trust by hand with `aggrega registry add <host> --identity <identity>=<issuer>` or `--key <public-key-file>`
E0311malformed-version-pinreference carries a malformed version pin
E0312colon-in-provider-binding-capabilitya provider socket binding names a capability containing a colon, which no Recipe can select
E0313provider-binding-capability-unservedplugins.providers entry names a capability no provider-rendering plugin the build reads serves
E0314plugin-built-from-uncommitted-changesplugin was built from a working tree with uncommitted changes, so no commit reproduces the version it reports
E0315connection-attachment-slot-undeclareda connection carries an attachment under a name its socket declares no slot for
E0316connection-attachment-written-off-its-connectiona Release attachment takes the name of an attachment one of a component's connections carries
E0317release-connection-attachment-untypeda Release connection attachment names no Feature type, and the type is required for an attachment only the Release makes
E0318attachment-inject-mapping-key-collisionduplicate delivery key across two attachments: an attachment's FeatureRecipe writes a delivery key another attachment already delivered
E0319duplicate-connection-aliasconnection alias is already used by another connection of the same component
E0320write-leads-out-of-workspacea path this operation writes or deletes leads through a link out of the directory it must stay inside
E0321read-leads-out-of-workspacea file this operation reads leads through a link out of the directory it must stay inside
E0323caller-render-facts-not-declaredtemplate reads its callers' render facts, but the FeatureRecipe does not set readsCallerRenderFacts
E0324reference-leads-out-of-workspacea reference a document makes to another file leads out of the directory it must stay inside
E0325provider-render-fact-not-listprovider guest reported a render fact whose value is not a list; a conforming guest reports every render fact's value as a JSON array, even with one entry
E0326pipeline-step-reads-caller-render-factspipeline step reads its callers' render facts, but a pipeline step does not read the components connecting to its host; it reads only the host's own render facts
E0327index-of-absent-map-keytemplate indexes a map with a key the map does not hold
E0328misnamed-slot-fillattachment written under a name no slot declares fits a slot its component leaves empty
E0329connection-credential-matches-target-keya connection and the target it reaches do not name one key: they write different locators for it, or only one of them names one
E0330mixed-signing-credentialssigning: the references named together need different signing credentials, so nothing was signed
E0331signature-not-recordedsigning: no verified signature is recorded for an artifact that requires one
E0332signature-for-another-artifactsigning: the recorded signature was made for a different artifact
E0333recorded-signature-out-of-datesigning: a recorded signature is not the one a pull would record
E0334omit-matched-nothingan omits entry left out nothing the source rendered
E0335unsupported-omitsprovider does not support omits
E0336omit-report-mismatcha provider's omitted counts do not match the omits entries it was handed
E0337importer-version-unsatisfiableno importer plugin version satisfies the plugins.importer entry's version pin
E0338duplicate-importer-attachmentimporter is attached by more than one plugins.importer entry
E0339ambiguous-import-formatmore than one importer recognises the source
E0340name-windows-cannot-holda name this operation writes holds a path segment Windows cannot hold as written
E0341importer-declares-no-file-patternsthe importer serving the source's format declares no file patterns, so it reads one file and cannot read a directory
E0342import-directory-matched-nothingno file in the directory matches the file patterns the importer serving the source's format declares
E0343import-source-name-collisiona file read from the directory and a file named in the importer's `with.sources` have the same name
E0344windows-unusable-entryan entry this publication carries cannot be used on Windows
E0345duplicate-container-environment-variablea container declares one environment variable twice
E0346metrics-credential-annotation-matches-providesa Component's annotation stating how its metrics authenticate disagrees with whether it declares the provides key saying an instance's metrics need a credential
E0347target-render-facts-not-declaredtemplate reads the render facts of a component its host is wired to, but the FeatureRecipe does not set readsTargetRenderFacts
E0348pipeline-step-reads-target-render-factspipeline step reads the render facts of a component its host is wired to, but a pipeline step reads only the host's own render facts
E0349import-target-unboundno Recipe in the workspace's catalog binds to the capability the import's target names
E0350unrecognised-import-formatno importer recognises the source
E0351unsupported-boundary-artifactsprovider does not support boundary artifacts
E0352boundary-directory-not-beneath-output-rootboundary output directory does not name a directory beneath the output root
E0353boundary-feature-name-not-a-directoryboundary-level Feature instance name is not a directory name
E0354cross-boundary-link-value-not-copieda template does more than copy a value it reads off a cross-boundary link
E0355inject-delivery-shapeinject delivery: shape must be a list of entries, each `in:` with exactly one of `from:` or `value:`
E0356suspend-requires-scheduled-formsuspend requires form: scheduled
E0357name-mapping-matched-nothinga Manifest name mapping's key names no component instance or attachment in this build, so the entry binds nothing
E0358uses-target-not-exporteduses edge target names a component its module does not export
E0359source-adapter-not-registeredno source adapter is registered in this program for the source kind
E0360netrc-file-unreadablethe netrc file could not be read
E0361source-url-carries-credentialthe source URL carries a credential
E0362uses-inject-valueinject entry on a connection carries `value:`; a connection delivers the target's published keys, each named with `from:`
E0363annotation-subkey-not-boundannotation subkey is not routed by the annotation's binding
E0364value-template-execution-faileda value template failed while it ran
E0365boundary-contribution-not-assembledboundary-level Feature's output is routed to a dispatch path nothing assembles
E0366inject-mapping-output-not-parsableFeatureRecipe injectMapping output could not be read as a dictionary of deliveries
E0367annotation-scalar-not-routablea scalar annotation value does not route to exactly one path of its binding
E0368inject-mapping-output-key-not-deliveredFeatureRecipe injectMapping output writes a key no delivery mechanism of the host reads
E0369absent-path-read-and-iteratedtemplate reads a path as a value and iterates it, and the data holds nothing at that path
E0370duplicate-pipeline-step-ida pipeline declares one step id twice
E0371unknown-catalog-document-kindcatalog document declares a kind a catalog does not hold
E0372attachment-inject-valueinject entry on an attachment carries `value:`; an attachment delivers the keys its FeatureRecipe publishes, each named with `from:`, and a literal belongs in the component's own inject block
E0373retired-api-versiona document declares an API version this compiler no longer reads
E0374retired-abi-versiona plugin declares a plugin ABI version this compiler no longer speaks
E0375retired-media-typeoci: artifact carries a media type this compiler no longer reads
E0376no-answer-in-timeegress: the server did not answer in time
E0377repository-listing-too-longregistry: the repository listing did not end in time
E0378registry-too-busyoci: the registry kept asking to slow down
E0379oci-module-source-malformedthe source does not name one artifact of its OCI module kind
E0380fetch-server-erroroci: the registry answered with a server error
E0381fetch-interruptedoci: the transfer from the registry broke off
E0382conflicting-version-constraintsno version of a component or feature type satisfies every constraint declared on the instance
  • E0002 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย รหัสนี้ระบุการค้นหาแค็ตตาล็อกที่ล้มเหลวขณะตรวจสอบสัญญาสถิตของกราฟ ซึ่งเป็นความผิดพลาดในคอมไพเลอร์ ไม่ใช่ในเอกสารที่เขียน และเงื่อนไขที่ยกขึ้นเมื่อการบิลด์หาค่าชนิดของส่วนประกอบที่แค็ตตาล็อกซึ่งอ่านอยู่ไม่มีรายการให้ รายงานสถานะนั้นแทนในตอนนี้ โดยรหัสของเงื่อนไขนั้นคือ E0154
  • E0134 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย รหัสนี้ระบุเอนทิตีที่เผยแพร่ได้ซึ่งไดเรกทอรีไม่ได้ตั้งชื่อตามเวอร์ชันที่เอนทิตีประกาศ การเผยแพร่ไม่ตัดสินชื่อไดเรกทอรี และเงื่อนไขที่ยกขึ้นเมื่อเอนทิตีใช้ไดเรกทอรีร่วมกับเอนทิตีอื่นทั้งที่ประเภทของเอนทิตีมีไดเรกทอรีเป็นของตัวเองคือ E0303
  • E0157 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย รหัสนี้ระบุคีย์ของ Aggregate ซึ่งเป็นชื่ออินสแตนซ์ของส่วนประกอบ ฟีเจอร์ ระบบย่อย หรือโมดูลซ้อน ที่ไม่ตรงกับรูปแบบของชื่อที่เขียน พื้นผิวคีย์เหล่านั้นทุกแห่งถูกจำกัดให้ใช้การสะกดเดียวกันโดยสคีมาของ Aggregate ซึ่งปฏิเสธเอกสารขณะตรวจสอบความถูกต้องของ envelope และรายงานคีย์ที่ผิดพร้อมบรรทัดและคอลัมน์ โดยรหัสของเงื่อนไขนั้นคือ E0215
  • E0159 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย รหัสนี้ระบุการอ้างอิงเป้าหมายที่ส่วนซึ่งคั่นด้วยจุดไม่ตรงกับรูปแบบชื่ออินสแตนซ์ทุกส่วน และไม่มีการบิลด์ใดรายงานรหัสนี้ก่อนที่เงื่อนไขจะถูกถอน
  • E0166 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย รหัสนี้ระบุไฟล์ที่ parameters: { $import: … } ของ Release ชี้ไปถึงเมื่ออ่านไฟล์ไม่ได้หรือแยกวิเคราะห์ไบต์ของไฟล์ไม่ได้ ไฟล์ที่ไม่ให้เอกสารเป็นเงื่อนไขเดียวไม่ว่าจะเขียนเส้นทางไว้ที่ใด และรหัสของเงื่อนไขนั้นคือ E0175
  • E0203 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย รหัสนี้ระบุ FeatureRecipe ที่ใช้ความสามารถ eval ซึ่งประกาศซอร์ส ส่วนซ้อนทับของค่า เวิร์กโหลด หรืออาร์ติแฟกต์ ความสามารถนั้นถูกถอนแล้ว และไม่มีสิ่งใดรายงานสถานะนี้ในตอนนี้
  • E0206 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย รหัสนี้ระบุ Recipe ที่ใช้ความสามารถ eval ซึ่งประกาศซอร์ส เวิร์กโหลด อาร์ติแฟกต์ หรือส่วนซ้อนทับของค่า ความสามารถนั้นถูกถอนแล้ว และ Recipe ที่ไม่ประกาศสิ่งเหล่านั้นเลยถูกปฏิเสธในทุกความสามารถภายใต้ E0210
  • E0217 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย รหัสนี้ระบุความล้มเหลวในการตรวจสอบความถูกต้องของสคีมาที่รายงานกับฟิลด์ใดฟิลด์หนึ่งไม่ได้ และไม่มีการบิลด์ใดรายงานรหัสนี้ก่อนที่เงื่อนไขจะถูกถอน
  • E0219 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย รหัสนี้ระบุห่วงโซ่ extends ที่วนเป็นวัฏจักร ซึ่งรายงานโดยการไล่ห่วงโซ่ที่แยกจากขั้นตอนการรวมของการผสานสคีมา การไล่ห่วงโซ่ครั้งเดียวรายงานทุกห่วงโซ่ที่วนเป็นวัฏจักร และรหัสของเงื่อนไขนั้นคือ E0202
  • E0230 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย เงื่อนไขที่หมายเลขนี้ระบุถูกถอนแล้ว และไม่มีการบิลด์ใดรายงานเงื่อนไขนั้น
  • E0231 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย เงื่อนไขที่หมายเลขนี้ระบุถูกถอนแล้ว และไม่มีการบิลด์ใดรายงานเงื่อนไขนั้น
  • E0232 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย เงื่อนไขที่หมายเลขนี้ระบุถูกถอนแล้ว และไม่มีการบิลด์ใดรายงานเงื่อนไขนั้น
  • E0233 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย เงื่อนไขที่หมายเลขนี้ระบุถูกถอนแล้ว และไม่มีการบิลด์ใดรายงานเงื่อนไขนั้น
  • E0234 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย รหัสนี้ระบุซอร์สของ Recipe ที่เป็นสตริงว่าง ซึ่งรายงานขณะเรนเดอร์ผ่านผู้ให้บริการ compose ปัจจุบันเงื่อนไขเดียวที่ครอบคลุมผู้ให้บริการทุกรายรายงานกรณีนี้แทน และรหัสของเงื่อนไขนั้นคือ E0251
  • E0235 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย เงื่อนไขที่หมายเลขนี้ระบุถูกถอนแล้ว และไม่มีการบิลด์ใดรายงานเงื่อนไขนั้น
  • E0236 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย เงื่อนไขที่หมายเลขนี้ระบุถูกถอนแล้ว และไม่มีการบิลด์ใดรายงานเงื่อนไขนั้น
  • E0237 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย เงื่อนไขที่หมายเลขนี้ระบุถูกถอนแล้ว และไม่มีการบิลด์ใดรายงานเงื่อนไขนั้น
  • E0238 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย เงื่อนไขที่หมายเลขนี้ระบุถูกถอนแล้ว และไม่มีการบิลด์ใดรายงานเงื่อนไขนั้น
  • E0239 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย เงื่อนไขที่หมายเลขนี้ระบุถูกถอนแล้ว และไม่มีการบิลด์ใดรายงานเงื่อนไขนั้น
  • E0240 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย เงื่อนไขที่หมายเลขนี้ระบุถูกถอนแล้ว และไม่มีการบิลด์ใดรายงานเงื่อนไขนั้น
  • E0241 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย เงื่อนไขที่หมายเลขนี้ระบุถูกถอนแล้ว และไม่มีการบิลด์ใดรายงานเงื่อนไขนั้น
  • E0242 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย รหัสนี้ระบุซอร์สของ Recipe ที่เป็นสตริงว่าง ซึ่งรายงานขณะเรนเดอร์ผ่านผู้ให้บริการ Helm ปัจจุบันเงื่อนไขเดียวที่ครอบคลุมผู้ให้บริการทุกรายรายงานกรณีนี้แทน และรหัสของเงื่อนไขนั้นคือ E0251
  • E0243 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย เงื่อนไขที่หมายเลขนี้ระบุถูกถอนแล้ว และไม่มีการบิลด์ใดรายงานเงื่อนไขนั้น
  • E0244 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย เงื่อนไขที่หมายเลขนี้ระบุถูกถอนแล้ว และไม่มีการบิลด์ใดรายงานเงื่อนไขนั้น
  • E0245 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย เงื่อนไขที่หมายเลขนี้ระบุถูกถอนแล้ว และไม่มีการบิลด์ใดรายงานเงื่อนไขนั้น
  • E0249 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย เงื่อนไขที่หมายเลขนี้ระบุถูกถอนแล้ว และไม่มีการบิลด์ใดรายงานเงื่อนไขนั้น
  • E0258 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย เงื่อนไขที่หมายเลขนี้ระบุถูกถอนแล้ว และไม่มีการบิลด์ใดรายงานเงื่อนไขนั้น
  • E0322 ถูกถอนแล้ว ขณะนี้ไม่มีสิ่งใดรายงานรหัสนี้ และหมายเลขนี้ไม่ถูกมอบให้เงื่อนไขอื่นเลย รหัสนี้ระบุค่าที่ Feature ซึ่งแนบกับแนวเขตคำนวณให้สภาพแวดล้อมของส่วนประกอบภายใต้คีย์ที่การแนบอื่นส่งมอบไปแล้ว Feature ที่แนบกับแนวเขตส่งมอบเข้าสู่ส่วนประกอบได้ผ่าน injectMapping ของ FeatureRecipe เท่านั้น และการแมปที่เขียนคีย์ซึ่งการแนบอื่นส่งมอบไปแล้วถูกรายงานภายใต้ E0318

Matching guidance (แนวทางการจับคู่)

predicate errors.Is ไล่ตามห่วงโซ่การห่อ การจับคู่ sentinel จึงใช้ได้แม้ข้อผิดพลาดถูกห่อหลายครั้งระหว่างทางกลับมาหาคุณ ให้จับคู่กับข้อผิดพลาดที่ฟังก์ชันที่เอ็กซ์พอร์ตคืนมา

package release
import (
"errors"
"fmt"
"github.com/aggrega-ai/aggrega-cli/pkg/resolver"
"github.com/aggrega-ai/aggrega-cli/pkg/validator/envelope"
)
// Load reads a Release and reports the distinct failures a caller handles
// differently.
func Load(path string) error {
_, err := resolver.LoadRelease(path)
switch {
case errors.Is(err, envelope.ErrEntityEnvelope()):
return fmt.Errorf("%s is not a Release: %w", path, err)
case errors.Is(err, resolver.ErrYAMLLoad()):
return fmt.Errorf("%s could not be read as YAML: %w", path, err)
case err != nil:
return err
}
return nil
}

ไม่มีจุดเข้าที่เอ็กซ์พอร์ตซึ่งรันการบิลด์ทั้งหมด ดังนั้นการจับคู่ด้วย errors.Is จึงใช้กับโค้ดที่เรียกแพ็กเกจเหล่านี้โดยตรง หากต้องการใช้ CI เป็นด่านตรวจของการบิลด์ ให้รัน aggrega build และอ่านสถานะการออกกับการวินิจฉัย ข้อความของการวินิจฉัยมีรายการอยู่ใน fatal-halts.md หมวดอยู่ใน error-translation.md และรหัสย่อในส่วนหัวที่อยู่ในวงเล็บเหลี่ยมหาค่าได้ใน Every condition, by short code (ทุกเงื่อนไข จัดตามรหัสย่อ) ในหน้านี้

เส้นทางสำหรับตั้งด่านตรวจมีสองเส้นทาง เพราะตัวระบุสามตัวไปถึงระยะต่างกัน ด่านตรวจที่เขียนด้วย Go เชื่อมโยงแพ็กเกจเหล่านี้ จับคู่ sentinel และอ่านรหัสใดก็ได้จากข้อผิดพลาดใดๆ ที่ถืออยู่ ด่านตรวจที่เขียนรอบคำสั่งมีสถานะการออกและข้อความที่พิมพ์ และข้อความที่พิมพ์ระบุเงื่อนไข เพราะรหัสย่ออยู่ในส่วนหัวที่อยู่ในวงเล็บเหลี่ยม ด่านตรวจเช่นนั้นจึงใช้รหัสย่อเป็นคีย์แทนถ้อยคำของข้อความ และมุมมองที่จัดตามข้อความยังเป็นวิธีย้อนจากถ้อยคำที่มีอยู่แล้ว จับคู่ sentinel จาก Go ใช้รหัสย่อเป็นคีย์รอบคำสั่ง และอ่านรหัสเชิงบรรยายจากการวินิจฉัยที่มีโครงสร้างเมื่อไคลเอนต์ใช้โปรโตคอลนั้น

sentinel ที่ประกาศในแพ็กเกจต่างกันด้วยชื่อสั้นเดียวกันเป็นเงื่อนไขที่แตกต่างกัน ไม่ใช่การสะกดสองแบบของเงื่อนไขเดียว errors.Is แยกความแตกต่างด้วยตัวตน การจับคู่กับตัวหนึ่งจึงไม่จับคู่กับอีกตัวหนึ่ง การเอ็กซ์พอร์ตซ้ำที่ระบุไว้ในตารางเป็นข้อยกเว้น และระบุไว้อย่างชัดเจนเพราะเป็นกรณีที่สองชื่อจับคู่กันจริง ให้จับคู่กับชื่อในแพ็กเกจที่ตารางแสดงไว้ และถือว่าชื่อสั้นเพียงอย่างเดียวกำกวม

สำหรับแค็ตตาล็อกการวินิจฉัยที่ผู้ใช้เห็น (ข้อความที่นักพัฒนาเห็นในเทอร์มินัลเมื่อการบิลด์หยุด) ดู fatal-halts.md สำหรับแค็ตตาล็อกคำเตือนเชิงแนะนำ (เอาต์พุต warning:, lint: และ notice: ที่ไม่หยุดการบิลด์) ดู warnings.md สำหรับอนุกรมวิธานของคำนำหน้าหมวด ([DEVELOPER_ERROR] / [OPS_ERROR] / [CATALOG_ERROR] / [TRANSLATION_ERROR] / [FETCH_ERROR] / [POLICY_ERROR] / [TRUST_ERROR]) ดู error-translation.md