Bỏ qua để đến nội dung
AggregaAggrega
Chọn ngôn ngữ: Tiếng Việt
Trang này được dịch bằng máy. Đọc bản gốc tiếng Anh.

Các sentinel lỗi — tài liệu tham chiếu chuẩn

Mỗi lần dừng nghiêm trọng mà trình biên dịch phát ra đều nêu tên một điều kiện, và mỗi điều kiện mang ba định danh, vì nhận biết một điều kiện, ghi lại nó và trích dẫn nó là ba việc khác nhau. Sentinel là giá trị Go mà errors.Is khớp, có được bằng cách gọi hàm truy cập mà gói khai báo xuất ra: định danh mà mã Go nhận biết. Mã là chuỗi mà điều kiện được đăng ký dưới đó: nó gọi tên chính điều kiện bằng lời, và là thứ giữ cố định khi các gói Go xung quanh thay đổi — định danh mà một chương trình ghi lại. Mã ngắn là chữ E và bốn chữ số, đủ ngắn để đọc to, gõ vào ô tìm kiếm hoặc dán vào báo cáo: định danh mà một người trích dẫn. Một điều kiện, ba định danh — hãy khớp sentinel để nhận biết điều kiện từ Go, đọc mã khi bạn cần ghi lại hoặc dùng nó làm khóa, và tra một mã ngắn trong bảng mọi điều kiện ở phần sau của trang này.

Chẩn đoán hướng tới người dùng (thông điệp có tiền tố được liệt kê trong fatal-halts.md và error-translation.md) mang phần mô tả dành cho nhà phát triển; sentinel được bọc là thứ mà errors.Is khớp với trong các chương trình tiêu thụ.

Trang này là góc nhìn theo sentinel của danh mục. Các lập trình viên viết cổng CI, tích hợp IDE hoặc mã điều phối build cần phân biệt các loại lỗi sẽ khớp với các sentinel liệt kê ở đây bằng vị từ chuẩn errors.Is. Tác giả gỡ lỗi một bản build bằng cách đọc văn bản lỗi được phát ra thường cần các góc nhìn theo thông điệp — fatal-halts.md cho các lỗi làm dừng build, warnings.md cho đầu ra mang tính khuyến nghị.

Mỗi hàng trong các bảng dưới đây nêu tên một hàm truy cập — một hàm không nhận đối số, được xuất từ gói mà bảng nêu tên, trả về sentinel. Nhập gói đó và gọi hàm truy cập là bề mặt tích hợp được hỗ trợ, đó là lý do các bảng viết mỗi hàm kèm dấu ngoặc đơn — lời gọi mới là thứ tạo ra một giá trị mà errors.Is có thể khớp, còn tên không có ngoặc là một hàm chứ không phải một lỗi:

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

Ba định danh mang tính ổn định riêng biệt, và sự tách biệt đó là lý do một điều kiện có cả ba. Các hàm truy cập liệt kê dưới đây ổn định qua các bản phát hành vá lỗi; việc đổi tên hoặc loại bỏ được công bố trong mục nhật ký thay đổi của bản phát hành thực hiện chúng, còn việc thêm một hàm truy cập mới trong một gói là bổ sung và không làm hỏng các bộ khớp hiện có. Một mã được cố định khi điều kiện của nó được công bố, nên nó là định danh cần ghi lại ở bất cứ đâu một điều kiện phải được gọi tên lâu dài: đổi tên một hàm truy cập không làm thay đổi mã mà điều kiện của nó đã được đăng ký, và một mã bạn đã ghi lại tồn tại lâu hơn một lần tái cấu trúc bề mặt Go. Mã ngắn là định danh bền vững nhất trong ba: một số được cấp một lần rồi cố định, và số của một điều kiện đã ngừng dùng vẫn ở trạng thái ngừng dùng chứ không được cấp cho một điều kiện khác, nên một mã ngắn ghi trong một báo cáo cũ vẫn gọi tên đúng điều kiện mà nó đã gọi tên khi được ghi lại. Điều đó được thực thi chứ không chỉ là ý định — một điều kiện được khai báo dưới một số đã ngừng dùng sẽ bị từ chối trước khi trình biên dịch đọc bất kỳ đầu vào nào, ở mọi lần chạy — và mọi số đã ngừng dùng được công bố bên cạnh các số đang dùng trong bảng mọi điều kiện. Cột mã dưới đây mang mã, và đó là giá trị mà một client của chẩn đoán có cấu trúc đọc mà không cần liên kết các gói này. Nó được công bố chứ không được suy ra, vì nó không nhất thiết lặp lại hàng chứa nó — một tên được xuất lại báo cáo mã của điều kiện mà nó chuyển tiếp tới, và mã của một quy tắc gọi tên quy tắc chứ không phải hàm truy cập. Cột thông điệp là văn bản nguyên văn mà sentinel hiển thị; chẩn đoán hướng tới người dùng đặt một phần đầu trong ngoặc vuông và vị trí nguồn trước văn bản đó. Phần đầu đó mang mã ngắn của điều kiện, kèm hạng mục của lần xảy ra bên cạnh nếu lần xảy ra có hạng mục, như trong [DEVELOPER_ERROR E0007] — nên người đọc có thể tra từng thứ một cách độc lập: các hạng mục (DEVELOPER_ERROR / OPS_ERROR / CATALOG_ERROR / TRANSLATION_ERROR / FETCH_ERROR / POLICY_ERROR / TRUST_ERROR) được giải thích trong error-translation.md, và các mã ngắn được tra trong bảng mọi điều kiện trên trang này. Khi một plugin phát sinh điều kiện, token mã được định danh kèm plugin đã phát sinh nó — [TRANSLATION_ERROR provider/example:1.0.0/E0007] — và mã ngắn là phân đoạn cuối cùng; error-translation.md giải thích vì sao có phần định danh đó và vì sao phân đoạn cuối cùng là phân đoạn cần tra.

Đọc mã của một điều kiện

Một mã chỉ đặt tên cho điều kiện và không gì khác, theo kiểu kebab-case — parameter-contract-violation, lockfile-drift. Mã không mang tiền tố nào: không phải gói khai báo nó, không phải giai đoạn phát sinh nó, cũng không phải bất kỳ cách nhóm nào. Nhờ vậy, mã giữ nguyên khi trình biên dịch được tổ chức lại xung quanh nó, và một điều kiện được phát sinh tại nhiều điểm trong một lần biên dịch vẫn chỉ có một tên. Tên của mỗi điều kiện tự thân đã khác biệt, đó là điều khiến tiền tố trở nên không cần thiết, và hai điều kiện không thể được đăng ký dưới cùng một mã. Bạn đọc mã từ một lỗi bằng CodeOf, từ github.com/aggrega-ai/aggrega-cli/pkg/errors, hàm này duyệt chuỗi bọc theo cách errors.Is làm, nên mã vẫn còn nguyên dù có bao nhiêu khung đã bọc lỗi trên đường quay về với bạn. Bản thân gói đó cũng có tên errors, nên một bí danh import giúp tách nó khỏi thư viện chuẩn:

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 cũng cho biết liệu có lỗi nào trong chuỗi mang mã hay không; một chuỗi không mang mã nào là một thực tế về chuỗi đó chứ không phải một thất bại. Nếu bạn muốn tự khớp interface, cùng gói đó xuất nó dưới tên CodedError, và errors.As tìm thấy nó trong cùng lượt duyệt.

Mã chỉ đi theo một chiều. Mã là thứ một điều kiện báo cáo, không bao giờ là thứ nhận diện điều kiện đó cho một bộ khớp: viết chuỗi đó vào mã của bạn chỉ cho bạn một chuỗi, và không có đường nào đi ngược từ một chuỗi về giá trị mà errors.Is khớp. Hãy khớp sentinel để nhận diện một điều kiện; đọc mã để ghi lại một điều kiện.

Mã mà aggrega in ra trên terminal là mã ngắn, không phải mã này. Một chẩn đoán dừng mở đầu bằng một phần đầu trong ngoặc vuông mang mã ngắn của điều kiện, kèm theo hạng mục của lần xảy ra bên cạnh nếu lần xảy ra đó có hạng mục — [DEVELOPER_ERROR E0007], hoặc [TRANSLATION_ERROR provider/example:1.0.0/E0007] khi một plugin phát sinh điều kiện và mã được định danh kèm plugin đã phát sinh nó, hoặc [E0007] khi lỗi không có mối quan tâm nào để chuyển bạn tới — rồi đến vị trí nguồn và văn bản thông báo được liệt kê trong fatal-halts.md. Mã mô tả đặt tên điều kiện bằng lời và quá dài cho vị trí đó: với những điều kiện dài nhất, nó sẽ lấp đầy một terminal hẹp trước khi thông báo bắt đầu, và đó chính là toàn bộ lý do tồn tại một định danh thứ hai, gọn hơn. Vì vậy, khi bạn chỉ có đầu ra đã in, định danh để dựa vào là mã ngắn, và nó được tra cứu trong bảng mọi điều kiện ở phần sau của trang này: từ một con số bạn có thể đọc qua điện thoại, bạn tìm tới điều kiện, accessor của nó và văn bản thông báo của nó. aggrega explain <code> thực hiện việc tra cứu đó ngay tại terminal — lệnh nhận một trong hai mã của điều kiện và in ra điều kiện cùng với mục ghi lại cách sửa khi soạn thảo, và được mô tả trong aggrega explain. Các góc nhìn theo thông báo trong fatal-halts.md vẫn là cách để làm việc từ câu chữ thay vì từ một định danh.

Nơi một mã thực sự đi ra ngoài Go là chẩn đoán có cấu trúc mà daemon compiler-as-service công bố, dưới dạng một trường code riêng trên mỗi mục chứ không phải thứ gì đó gộp vào văn bản thông báo — nhờ vậy một tiện ích mở rộng của trình soạn thảo, hay bất kỳ client nào khác của giao thức đó, phân nhánh dựa trên những gì một mục báo cáo mà không cần liên kết các gói này và không cần phân tích văn xuôi. Khóa đó mang một mã máy có thể khớp, bất kể ai đã gán nó, và mục cho biết tầng nào đã phát sinh nó. Một mã ở đó có ba nguồn gốc, và nguồn thứ ba là lý do một mã bạn có thể tra trên trang này không tự nó là dấu hiệu rằng có gì đó thất bại:

  • Mã của điều kiện mà một lỗi nêu tên, là thứ trang này liệt kê.
  • Mã lớp của một cảnh báo tư vấn về đầu ra đã render — unsupported-field là một ví dụ, và warnings.md mô tả nó. Mã này được gán tại nơi cảnh báo được phát sinh thay vì được đăng ký như một điều kiện, nên nó không có hàng nào ở đây.
  • Mã đã đăng ký của một cảnh báo tư vấn về các tài liệu được soạn — một tên chỉ cách một tên đã khai báo một lần chỉnh sửa, một tham số không có gì đọc. Một phát hiện như vậy nêu tên một điều kiện theo cùng dạng như một lỗi, nên mã của nó được đăng ký và có một hàng trên trang này, và đọc hàng đó cho bạn biết phát hiện đó nói về điều gì.

Vì vậy, cùng một mã bạn đọc được từ một lần dừng cũng có thể đến với bạn từ một bản dựng đã hoàn tất, được mang theo bởi một phát hiện không thay đổi gì về kết quả. Điều phân biệt hai trường hợp là kết quả bạn nhận được và tầng mà mục nêu tên — không bao giờ là dạng của chính mã, và không bao giờ là việc nó có tra được ở đây hay không. Trường này bị bỏ qua khi không có gì tạo ra mục đã gán mã: một lỗi không nêu tên điều kiện nào của chính Aggrega, và một cảnh báo tư vấn mà bên phát sinh không gán mã nào. aggrega serve ghi lại hình dạng của mục, khóa nêu tên tầng, và khi nào trường này có mặt.

Một chẩn đoán có cấu trúc mang cả hai định danh của một điều kiện, và biết cái nào là cái nào chính là sự khác biệt giữa một định danh bạn có thể hành động theo và một định danh bạn không thể. Khóa code ở trên dành cho một chương trình: có gạch nối và đặt tên điều kiện bằng lời, để một tiện ích mở rộng phân nhánh theo nó đọc đúng như ý nghĩa của nó, và đó là giá trị CodeOf báo cáo trong Go. Khóa shortCode bên cạnh dành cho một con người — chữ E và bốn chữ số, cùng định danh mà một chẩn đoán dừng in ra trong phần đầu trong ngoặc vuông. Đó là thứ bạn đọc qua điện thoại, gõ vào ô tìm kiếm, hoặc dán vào một issue, và đó là định danh mà bảng mọi điều kiện dùng làm khóa.

Không cái nào là dạng viết tắt của cái kia, và không cái nào là phương án dự phòng cho cái kia. Hãy khớp theo mã mô tả; hiển thị cho người đọc mã ngắn. Một bề mặt chỉ cung cấp mã mô tả sẽ trao cho người soạn một định danh dành cho bộ khớp, còn một bề mặt khớp theo mã ngắn sẽ khớp theo một con số không nói gì về điều kiện — đó là lý do cả hai cùng được truyền đi thay vì chọn một.

Một khóa thứ ba, codeDescription, mang nơi điều kiện được công bố, như một tham chiếu để mở xem thêm về chẩn đoán. Địa chỉ của nó trỏ tới bảng mọi điều kiện trên trang này, nên người đọc theo nó từ trình soạn thảo sẽ đến nơi với mã ngắn mà bảng dùng làm khóa. Một mục mang mã ngắn và tham chiếu cùng nhau, hoặc không mang cái nào: cả hai có mặt đúng khi mục nêu tên một điều kiện đã đăng ký — một điều kiện có hàng trong bảng đó — và cả hai vắng mặt khi mã nêu tên một lớp cảnh báo tư vấn hoặc danh tính của một quy tắc quy ước từ một linter của riêng bạn mà Aggrega không khai báo, vì không có con số nào để trích dẫn cho những trường hợp đó và không có gì ở đây mô tả chúng.

Theo chiều ngược lại — từ một mã bạn đang có đến điều kiện mà nó nêu tên — các bảng dưới đây là danh sách được công bố. Mỗi hàng mang mã bên cạnh accessor cho ra cùng điều kiện đó trong Go, nên một mã đọc được từ chẩn đoán có cấu trúc sẽ dẫn tới một tên bạn có thể khớp và tới văn bản mà điều kiện hiển thị. Các bảng bao gồm những điều kiện có accessor bạn có thể import, và có hai loại mã nằm ngoài chúng: mã lớp, vốn nêu tên một lớp cảnh báo tư vấn chứ không phải một điều kiện nên không có accessor để đặt cạnh, và mã có điều kiện chỉ được khai báo trong một gói bạn không thể import và không được tái xuất ở đâu, nên không có tên có thể khớp để đặt cạnh. Loại thứ hai đó vẫn nêu tên một điều kiện, và điều kiện đó vẫn có mã ngắn — bảng mọi điều kiện, ở phần sau của trang này, dùng mã ngắn làm khóa thay vì một tên có thể import, nên bao gồm cả những điều kiện đó.

Bề mặt có thể so khớp, theo gói khai báo

Mỗi mục dưới đây là một gói mà bạn có thể import. Tiêu đề của mục là đường dẫn gói tương đối so với đường dẫn module github.com/aggrega-ai/aggrega-cli, vì vậy mục có tiêu đề pkg/resolver được import dưới dạng github.com/aggrega-ai/aggrega-cli/pkg/resolver.

Các mục được nhóm theo gói khai báo sentinel, vì đó là gói mà một bộ so khớp import. Điều kiện được phát sinh ở đâu trong một bản build là một câu hỏi riêng, và là câu hỏi mà trang này cố ý không trả lời: một sentinel thường được phát sinh từ nhiều nơi, và một số chỉ được phát sinh từ mã mà module không export, nên không có câu trả lời theo từng mục nào đúng cho mọi hàng. Các chế độ xem theo thông báo trả lời câu hỏi về thời điểm trong bản build bằng những điều bạn có thể quan sát được — trên hết là fatal-halts.md.

Một vài tên xuất hiện trong nhiều gói. Đó là các bản re-export của cùng một giá trị dùng chung chứ không phải hai điều kiện, nên so khớp với tên nào cũng thành công; các bảng ghi rõ điều này ở nơi cả hai tên đều có thể import. Cả hai hàng mang cùng một mã, đó cũng chính là sự thật ấy được thể hiện trên định danh mà một client bên ngoài Go nắm giữ: một điều kiện, một mã, bất kể có bao nhiêu tên dẫn đến nó.

pkg/catalog

SentinelMãThông báo
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
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() là cùng một giá trị với pkg/resolver.ErrManifestImplementsMismatch(), nên so khớp với tên nào cũng thành công.

pkg/closure

SentinelMãThông báo
ErrInvalidLibraryRef()invalid-library-refresolve: invalid library reference URI
ErrMVSConflict()version-selection-conflictresolve: minimal version selection conflict — incompatible library version requirements
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

SentinelMãThông báo
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() là cùng một giá trị với pkg/refcycle.ErrCycle(), nên so khớp với tên nào cũng thành công.

pkg/deprecation

SentinelMãThông báo
ErrDeprecatedEntity()deprecated-entitydeprecation: build consumes a deprecated entity

pkg/docscache

SentinelMãThông báo
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() là cùng một giá trị với pkg/oci.ErrFetchNotFound(), nên so khớp với tên nào cũng thành công.

pkg/egress

SentinelMãThông báo
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

SentinelMãThông báo
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

SentinelMãThông báo
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

SentinelMãThông báo
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
ErrFetchNetworkUnreachable()fetch-network-unreachableoci: network unreachable
ErrFetchNotFound()fetch-not-foundoci: artifact not found at remote source
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

SentinelMãThông báo
ErrNameWindowsCannotHold()name-windows-cannot-holda name this operation writes holds a path segment Windows cannot hold as written

pkg/pluginpath

SentinelMãThông báo
ErrPluginArtifactNotFound()plugin-artifact-not-foundplugin artifact not found on this machine
ErrPluginEntityNotFound()plugin-entity-not-foundplugin reference is not a Plugin entity

pkg/pluginstrust

SentinelMãThông báo
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

SentinelMãThông báo
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

SentinelMãThông báo
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

SentinelMãThông báo
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

SentinelMãThông báo
ErrCycle()reference-cyclecircular reference expansion

pkg/registrytrust

SentinelMãThông báo
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

SentinelMãThông báo
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

SentinelMãThông báo
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

SentinelMãThông báo
ErrFetchIntegrity()fetch-integrityoci: content digest mismatch
ErrFetchNotFound()fetch-not-foundoci: artifact not found at remote source
  • ErrFetchIntegrity() là cùng một giá trị với pkg/oci.ErrFetchIntegrity(), nên so khớp với tên nào cũng thành công.
  • ErrFetchNotFound() là cùng một giá trị với pkg/oci.ErrFetchNotFound(), nên so khớp với tên nào cũng thành công.

pkg/sourcekind

SentinelMãThông báo
ErrUnknownKind()unknown-source-kindno source adapter serves the source kind

pkg/sourceresolver

SentinelMãThông báo
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() là cùng một giá trị với pkg/oci.ErrFetchIntegrity(), nên so khớp với tên nào cũng thành công.
  • ErrFetchNetworkUnreachable() là cùng một giá trị với pkg/oci.ErrFetchNetworkUnreachable(), nên so khớp với tên nào cũng thành công.
  • ErrFetchNotFound() là cùng một giá trị với pkg/oci.ErrFetchNotFound(), nên so khớp với tên nào cũng thành công.
  • ErrFetchUnauthorized() là cùng một giá trị với pkg/oci.ErrFetchUnauthorized(), nên so khớp với tên nào cũng thành công.

pkg/sourceresolver/cacheslot

SentinelMãThông báo
ErrEmptyWorkspaceRoot()empty-workspace-rootcacheslot: empty workspaceRoot

pkg/sourceresolver/netrc

SentinelMãThông báo
ErrNetrcFileUnreadable()netrc-file-unreadablethe netrc file could not be read
ErrSourceURLCarriesCredential()source-url-carries-credentialthe source URL carries a credential

pkg/types

SentinelMãThông báo
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

SentinelMãThông báo
ErrDanglingUsesTarget()dangling-uses-targetuses edge target does not exist
ErrReleaseEdgeRetarget()release-edge-retargetrelease edge retargets a developer-declared edge

pkg/validator

SentinelMãThông báo
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

SentinelMãThông báo
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

SentinelMãThông báo
ErrExtensionEval()schema-extension-evaluation-failedvalidator/jsonschema: x-aggrega extension evaluation failed
ErrSchemaResolve()schema-not-resolvablevalidator/jsonschema: schema resolution failed

pkg/validator/merger

SentinelMãThông báo
ErrMergeInvalid()schema-merge-input-invalidmerger: invalid merge input

pkg/workspaceconfig

SentinelMãThông báo
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

SentinelMãThông báo
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

SentinelMãThông báo
ErrPositionOutOfRange()position-out-of-rangeposition out of range

Các sentinel mang theo một sentinel khác

ErrCacheMetadataInvalid (pkg/sourceresolver/metadata) báo cáo một ô bộ nhớ đệm artifact nguồn bị hỏng. Nó được khai báo như một lớp bao quanh ErrFetchIntegrity() thay vì như một định danh riêng, nên nó không xuất hiện trong các bảng ở trên và một phép so khớp với ErrFetchIntegrity() cũng thành công đối với nó. Vì nó bao một sentinel thay vì khai báo một sentinel, nó được xuất dưới dạng một giá trị thay vì một hàm: hãy so khớp nó dưới dạng ErrCacheMetadataInvalid, không có dấu ngoặc đơn. Hãy so khớp lớp bao khi bạn muốn đúng điều kiện cụ thể đó, và so khớp sentinel được bao khi bạn muốn toàn bộ lớp lỗi về tính toàn vẹn.

Các sentinel có thể truy cập dưới một tên thứ hai trong cùng một package

Khi một package xuất hai accessor cho cùng một điều kiện — accessor thứ hai được khai báo như một lời chuyển tiếp tới accessor thứ nhất — các bảng ở trên ghi accessor khai báo và bỏ qua tên chuyển tiếp. Cả hai tên đều được xuất từ cùng một package, nên một import truy cập được tên này thì cũng đã truy cập được tên kia, và một hàng thứ hai sẽ liệt kê một điều kiện hai lần dưới một tên không khớp thêm điều gì mới. Khớp theo tên nào cũng thành công: lời chuyển tiếp trả về đúng giá trị mà accessor khai báo trả về.

Đây không phải trường hợp giữa các package khác nhau. Một sentinel được xuất lại từ một package khác có một hàng trong bảng của mỗi package, vì một matcher import một trong các package đó không thể truy cập tên của package kia nếu không import cả package đó; một lời chuyển tiếp bên trong một package duy nhất không cần hàng thứ hai, vì một import truy cập được cả hai tên.

ErrDuplicateRecipeIdentity() trong pkg/catalog là một lời chuyển tiếp như vậy: nó trả về ErrDuplicateEntityIdentity(), là tên mà bảng của package đó ghi.

Các điều kiện không có sentinel có thể so khớp

Một số giai đoạn biên dịch khai báo sentinel của chúng trong các package mà trình biên dịch không xuất ra, nên không có gì để errors.Is tham chiếu và không thể viết matcher nào cho chúng. Chúng được mô tả ở đây thay vì lập bảng, vì một bảng trên trang này là lời cam kết rằng cột bên trái có thể được giải tham chiếu.

Các chẩn đoán của chúng đến với bạn đầy đủ qua văn bản lỗi được phát ra và qua các khung nhìn theo khóa thông điệp — đặc biệt là fatal-halts.md — đây là cách được hỗ trợ để nhận biết chúng:

  • Xây dựng topology (xây dựng đồ thị và làm phẳng sub-aggregate) báo cáo một sub-Aggregate không thể tải, nêu tên URI của Aggregate không truy cập được; một khai báo uses: có hình dạng cấu trúc không khớp với schema; vượt quá độ sâu lồng nhau; và xung đột node-ID sau khi làm phẳng, khi hai sub-Aggregates biên dịch thành cùng một node ID và phải đổi tên một instance để phân biệt.
  • Hoàn tất đồ thị (gộp Feature trên các bề mặt Aggregate và Release) báo cáo một kiểu Feature được khai báo không nhất quán giữa hai bề mặt này.
  • Phân tích tĩnh (đánh giá selector và kiểm tra an toàn kiểu giữa các node) báo cáo một vi phạm selector:; một lần tra cứu catalog thất bại mà nó không thể vượt qua, nêu tên thực thể không truy cập được; và một từ chối chính sách, khi một plugin gắn tại vai trò phán quyết quản trị từ chối bản build đã được lắp ráp. Một từ chối chính sách mang danh mục POLICY_ERROR, tên của plugin từ chối và thông điệp quy tắc mà plugin cung cấp.
  • Kết xuất (điều phối provider và kết xuất theo từng provider) báo cáo một provider không xác định.
  • Trình tải host Wasm nhúng phát ra các sentinel bảo vệ riêng của nó — một rào chắn từ chối manifest (một plugin đã yêu cầu một khả năng truy cập runtime mà tường lửa AOT-purity từ chối), một cơ chế phục hồi khi guest panic, và một trap thoát plugin có tính tất định. Các điều kiện này xuất hiện trong chẩn đoán hiển thị cho người dùng khi chạy một plugin (ví dụ thông qua aggrega lint). Plugin authors kiểm thử một guest với host sẽ gặp cùng các điều kiện đó theo tên có thể import qua pkg/plugintest, đã liệt kê ở trên.

Để chặn một pipeline riêng đối với từ chối chính sách, hãy so khớp tiền tố danh mục POLICY_ERROR trong chẩn đoán thay vì một sentinel; danh mục là một phần được tài liệu hóa của bề mặt lỗi, được mô tả trong error-translation.md.

Mọi điều kiện, theo mã ngắn

Bảng dưới đây tra cứu theo chiều ngược lại: một mã ngắn ở cột bên trái, và bên cạnh là điều kiện mà mã đó chỉ định cùng văn bản mà điều kiện đó hiển thị. Bảng bao gồm mọi điều kiện mà aggrega có thể báo cáo, kể cả những điều kiện mà các phần ở trên không thể liệt kê.

Phạm vi rộng hơn đó là mục đích của bảng này chứ không phải một sự tình cờ. Các phần ở trên được lập khóa theo một tên mà bạn có thể import, nên một điều kiện chỉ được khai báo trong một package mà bạn không thể import — và cũng không được tái xuất ở bất kỳ nơi nào bạn có thể import — không có gì để đặt vào cột bên trái của chúng. Bảng này được lập khóa theo mã ngắn, và mọi điều kiện đều có một mã, nên không điều kiện có thể báo cáo nào nằm ngoài bảng. Một mã ngắn bạn đang có sẽ được tra ra ở đây, bất kể điều kiện đằng sau nó có hay không có một accessor mà bạn có thể so khớp.

Điều làm một điều kiện có mặt trong bảng này là trình biên dịch thực sự có thể báo cáo điều kiện đó. Các hàng được suy ra từ mã nguồn chứ không phải chép tay vào: một điều kiện xuất hiện ở đây vì có thứ gì đó trong trình biên dịch phát sinh ra nó, nên mọi mã ở cột bên trái đều là mã mà aggrega có thể in ra. Đó là cam kết của bảng, và chính điều đó cho phép bạn đọc một hàng như một phép kiểm tra thực sự được chạy.

Ngoại lệ có chủ ý là một điều kiện được khai báo trước khi mã nguồn báo cáo nó tồn tại, để mã và cách diễn đạt được cố định từ trước và không bao giờ thay đổi đối với người đọc đã trích dẫn chúng. Một điều kiện như vậy nói rõ điều này trong một ghi chú ngay bên dưới bảng. Nó được liệt kê chứ không bị ẩn — một mã bạn đang có phải luôn tra ra được — và ghi chú bên cạnh cho bạn biết rõ rằng chưa có bản build nào phát sinh ra nó, và cần có gì trước khi một bản build làm vậy.

Một số đã ngừng sử dụng cũng được liệt kê, trong nhóm ghi chú riêng bên dưới bảng, và được liệt kê vĩnh viễn. Đôi khi một điều kiện bị rút lại — nó được thay bằng một điều kiện bao quát hơn, hoặc chưa từng có gì báo cáo nó — và từ thời điểm đó số của nó bị ngừng sử dụng: số đó không bao giờ được cấp cho một điều kiện khác, nên một mã ngắn bạn trích từ một báo cáo cũ chỉ có thể chỉ định đúng điều mà nó chỉ định khi báo cáo được viết. Cam kết đó mang tính cơ học chứ không phải biên tập. Một điều kiện được khai báo dưới một số đã ngừng sử dụng sẽ bị từ chối trước khi trình biên dịch đọc bất kỳ đầu vào nào, ở mọi lần chạy, nên không bản phát hành nào có thể chứa nó — cùng loại từ chối mà hai điều kiện đang hoạt động cố dùng chung một số sẽ gặp, được diễn đạt để bạn phân biệt được mình gặp trường hợp nào. Ghi chú cho một mã đã ngừng sử dụng cho bạn biết mã đó từng chỉ định gì, nếu việc ngừng sử dụng có ghi lại điều đó, và, khi điều kiện đã được thay thế, mã nào hiện báo cáo phạm vi đó.

Việc không bao giờ dùng lại một số cũng là điều tạo ra những khoảng trống vĩnh viễn trong dãy số, và các ghi chú là thứ giúp đọc hiểu những khoảng trống đó. Bản thân một số bị thiếu không chứng minh điều gì: nó có thể đã ngừng sử dụng, và cũng có thể là một số chưa có gì dùng đến. Các ghi chú là bản ghi về những số nào đã ngừng sử dụng và, nếu có ghi lại, mỗi số từng chỉ định gì, nên một mã không tra ra được cả hàng lẫn ghi chú là mã mà trình biên dịch này chưa bao giờ cấp.

Mã ngắn được cố ý làm cho không mang nghĩa: bản thân bốn chữ số không nói gì về một điều kiện, đó là cái giá của một định danh đủ ngắn để đọc to, gõ vào ô tìm kiếm hoặc dán vào một báo cáo. Bảng đối chiếu bên dưới là thứ làm cho nó dùng được. Một số được cấp một lần, từ một dãy tăng dần duy nhất, và được cố định từ đó; nó không nói gì về điều kiện mà nó chỉ định. Vì vậy mã ngắn là một định danh và không gì hơn — giá trị của nó không phải là một sự phân loại, và cả nó lẫn bất kỳ cách nhóm nào bạn có thể nhận thấy trong bảng đều không chỉ ra một điều kiện nằm ở đâu hay nói về điều gì.

Bảng không có cột danh mục, và đó không phải là một thiếu sót: danh mục là thuộc tính của một lỗi cụ thể chứ không phải của điều kiện đằng sau nó. Một số điều kiện thuộc về một danh mục ngay từ cấu trúc. Với các điều kiện khác, danh mục phụ thuộc vào loại thực thể mà lỗi liên quan, nên một điều kiện như vậy khi được báo cáo một lần đối với một Aggregate và một lần đối với một Release sẽ mang danh mục khác nhau mỗi lần — và một giá trị duy nhất ghi bên cạnh điều kiện ở đây sẽ sai với mọi điều kiện thuộc loại thứ hai đó.

Các danh mục được giải thích tại error-translation.md — từng danh mục, ý nghĩa của nó, và nơi cần sửa lỗi. Danh mục và mã ngắn trả lời những câu hỏi khác nhau về cùng một lỗi: danh mục xác định bề mặt mà việc sửa lỗi thuộc về, còn mã ngắn xác định điều kiện nào đã dừng bản build. Không cái nào suy ra được từ cái kia, đó là lý do mỗi cái có danh sách công bố riêng — và vì sao một lỗi không có bề mặt soạn thảo nào để chỉ ra vẫn mang một mã mà bạn có thể tra ở đây.

MãĐiều kiệnThông báo
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: minimal version selection conflict — incompatible library version requirements
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
  • E0002 đã ngừng sử dụng: hiện không có gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Nó từng chỉ định một lần tra cứu catalog thất bại trong khi các hợp đồng tĩnh của đồ thị được kiểm tra — một lỗi trong trình biên dịch chứ không phải trong một tài liệu được soạn — và điều kiện phát sinh khi một bản build phân giải một kiểu component mà catalog nó đọc khi đó không có mục nào sẽ báo cáo trạng thái đó hiện nay, với mã là E0154.
  • E0134 đã ngừng sử dụng: hiện không có gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Nó từng chỉ định một thực thể có thể xuất bản mà thư mục không được đặt tên theo phiên bản mà thực thể khai báo; việc xuất bản không xét tên thư mục, và điều kiện phát sinh khi một thực thể dùng chung thư mục với một thực thể khác trong khi kind của nó có thư mục riêng là E0303.
  • E0157 đã ngừng sử dụng: hiện không có gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Nó từng chỉ định một khóa Aggregate — tên instance của một component, feature, subsystem hoặc module lồng nhau — không khớp với mẫu tên soạn thảo. Mọi bề mặt khóa đó đều bị ràng buộc vào cùng cách viết ấy bởi schema của Aggregate, schema này từ chối tài liệu khi xác thực phần bao của nó và báo cáo khóa vi phạm kèm dòng và cột; mã của điều kiện đó là E0215.
  • E0159 đã ngừng sử dụng: hiện không có gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Nó từng chỉ định một tham chiếu đích mà các đoạn phân tách bằng dấu chấm không phải đều khớp với mẫu tên instance, và chưa bản build nào báo cáo nó trước khi điều kiện bị rút lại.
  • E0166 đã ngừng sử dụng: hiện không có gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Nó từng chỉ định tệp mà parameters: { $import: … } của một Release trỏ tới khi tệp đó không đọc được hoặc nội dung của nó không phân tích được; một tệp không cho ra tài liệu nào là một điều kiện duy nhất bất kể đường dẫn được viết ở đâu, và mã của nó là E0175.
  • E0203 đã ngừng sử dụng: hiện không có gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Nó từng chỉ định một FeatureRecipe trên capability eval khai báo một nguồn, một lớp phủ values, một workload hoặc artifact; capability đó đã bị rút lại, và hiện không có gì báo cáo trạng thái này.
  • E0206 đã ngừng sử dụng: hiện không có gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Nó từng chỉ định một Recipe trên capability eval khai báo một nguồn, một workload, artifact hoặc một lớp phủ values; capability đó đã bị rút lại, và một Recipe không khai báo thứ nào trong số đó bị từ chối trên mọi capability dưới mã E0210.
  • E0217 đã ngừng sử dụng: hiện không có gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Nó từng chỉ định một lỗi xác thực schema không thể báo cáo theo một trường cụ thể, và chưa bản build nào báo cáo nó trước khi điều kiện bị rút lại.
  • E0219 đã ngừng sử dụng: hiện không có gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Nó từng chỉ định một chuỗi extends có vòng lặp, được báo cáo bởi một lượt duyệt chuỗi tách biệt với bước kết hợp của việc hợp nhất schema; một lượt duyệt chuỗi duy nhất báo cáo mọi chuỗi có vòng lặp, và mã của nó là E0202.
  • E0230 đã ngừng sử dụng: hiện không có gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Điều kiện mà số này chỉ định đã bị rút lại, và không bản build nào báo cáo nó.
  • E0231 đã ngừng sử dụng: hiện không có gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Điều kiện mà số này chỉ định đã bị rút lại, và không bản build nào báo cáo nó.
  • E0232 đã ngừng sử dụng: hiện không có gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Điều kiện mà số này chỉ định đã bị rút lại, và không bản build nào báo cáo nó.
  • E0233 đã ngừng sử dụng: hiện không có gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Điều kiện mà số này chỉ định đã bị rút lại, và không bản build nào báo cáo nó.
  • E0234 đã được loại bỏ: hiện không còn gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Nó từng chỉ một nguồn Recipe là chuỗi rỗng, được báo cáo khi kết xuất qua provider compose; giờ đây một điều kiện duy nhất áp dụng cho mọi provider báo cáo trường hợp đó, và mã của nó là E0251.
  • E0235 đã được loại bỏ: hiện không còn gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Điều kiện mà số này từng chỉ đã bị rút lại, và không bản build nào báo cáo nó.
  • E0236 đã được loại bỏ: hiện không còn gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Điều kiện mà số này từng chỉ đã bị rút lại, và không bản build nào báo cáo nó.
  • E0237 đã được loại bỏ: hiện không còn gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Điều kiện mà số này từng chỉ đã bị rút lại, và không bản build nào báo cáo nó.
  • E0238 đã được loại bỏ: hiện không còn gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Điều kiện mà số này từng chỉ đã bị rút lại, và không bản build nào báo cáo nó.
  • E0239 đã được loại bỏ: hiện không còn gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Điều kiện mà số này từng chỉ đã bị rút lại, và không bản build nào báo cáo nó.
  • E0240 đã được loại bỏ: hiện không còn gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Điều kiện mà số này từng chỉ đã bị rút lại, và không bản build nào báo cáo nó.
  • E0241 đã được loại bỏ: hiện không còn gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Điều kiện mà số này từng chỉ đã bị rút lại, và không bản build nào báo cáo nó.
  • E0242 đã được loại bỏ: hiện không còn gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Nó từng chỉ một nguồn Recipe là chuỗi rỗng, được báo cáo khi kết xuất qua provider Helm; giờ đây một điều kiện duy nhất áp dụng cho mọi provider báo cáo trường hợp đó, và mã của nó là E0251.
  • E0243 đã được loại bỏ: hiện không còn gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Điều kiện mà số này từng chỉ đã bị rút lại, và không bản build nào báo cáo nó.
  • E0244 đã được loại bỏ: hiện không còn gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Điều kiện mà số này từng chỉ đã bị rút lại, và không bản build nào báo cáo nó.
  • E0245 đã được loại bỏ: hiện không còn gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Điều kiện mà số này từng chỉ đã bị rút lại, và không bản build nào báo cáo nó.
  • E0249 đã được loại bỏ: hiện không còn gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Điều kiện mà số này từng chỉ đã bị rút lại, và không bản build nào báo cáo nó.
  • E0258 đã được loại bỏ: hiện không còn gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Điều kiện mà số này từng chỉ đã bị rút lại, và không bản build nào báo cáo nó.
  • E0322 đã ngừng sử dụng: hiện không có gì báo cáo nó, và số này không bao giờ được cấp cho một điều kiện khác. Nó từng chỉ định một giá trị mà một Feature gắn vào một boundary tính cho môi trường của một component dưới một khóa mà một attachment khác đã phân phối. Một Feature gắn vào một boundary chỉ phân phối vào một component thông qua injectMapping của FeatureRecipe của nó, và một ánh xạ ghi một khóa mà attachment khác đã phân phối được báo cáo dưới E0318.

Hướng dẫn so khớp

Vị từ errors.Is duyệt qua chuỗi bao bọc, nên việc so khớp sentinel vẫn hoạt động ngay cả khi lỗi bị bao bọc nhiều lần trên đường trả về cho bạn. Hãy so khớp với lỗi mà một hàm được xuất trả về:

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
}

Không có điểm vào được xuất nào chạy toàn bộ một bản build, nên việc so khớp bằng errors.Is áp dụng cho mã gọi trực tiếp các gói này. Để chặn CI dựa trên một bản build, hãy chạy aggrega build và đọc trạng thái thoát cùng các chẩn đoán của nó: văn bản thông điệp của chúng được liệt kê trong fatal-halts.md, danh mục của chúng trong error-translation.md, và mã ngắn trong phần đầu đặt trong ngoặc vuông của chúng được tra cứu trong bảng mọi điều kiện trên trang này.

Hai con đường chặn tồn tại vì ba định danh vươn tới những khoảng cách khác nhau. Một cổng chặn viết bằng Go liên kết các gói này, so khớp sentinel, và có thể đọc bất kỳ mã nào từ bất kỳ lỗi nào nó nắm giữ. Một cổng chặn viết bao quanh lệnh có trạng thái thoát và văn bản được in ra — và văn bản được in ra nêu tên điều kiện, vì mã ngắn nằm trong phần đầu đặt trong ngoặc vuông. Vì vậy, một cổng chặn như thế dựa vào mã ngắn đó thay vì cách diễn đạt của thông điệp, còn các góc nhìn theo thông điệp vẫn là cách để truy ngược từ cách diễn đạt mà nó đã có. Hãy so khớp sentinel từ Go; dựa vào mã ngắn khi bao quanh lệnh; đọc mã mô tả từ chẩn đoán có cấu trúc khi một client dùng giao thức đó.

Các sentinel được khai báo trong các gói khác nhau với cùng một tên ngắn là những điều kiện riêng biệt, không phải hai cách viết của một điều kiện: errors.Is phân biệt chúng theo danh tính, nên một phép so khớp với cái này không khớp với cái kia. Các bản xuất lại được nêu rõ trong các bảng là ngoại lệ, và chúng được nêu rõ chính vì đó là trường hợp hai tên thực sự khớp nhau. Hãy so khớp với tên trong gói mà các bảng liệt kê nó, và coi một tên ngắn đứng riêng là mơ hồ.

Đối với danh mục chẩn đoán hướng tới người dùng (các thông điệp mà nhà phát triển thấy trong terminal khi một bản build dừng lại), xem fatal-halts.md. Đối với danh mục cảnh báo tư vấn (đầu ra không gây dừng warning:, lint: và notice:), xem warnings.md. Đối với phân loại tiền tố danh mục ([DEVELOPER_ERROR] / [OPS_ERROR] / [CATALOG_ERROR] / [TRANSLATION_ERROR] / [FETCH_ERROR] / [POLICY_ERROR] / [TRUST_ERROR]), xem error-translation.md.