anchor &<anchor> is aliased by *<anchor> inside its own content, so the document expands without end; point that alias at content declared outside &<anchor>, or write the content out in full(錨點在自身內容中被別名參照,因此文件會無止境地展開;請將該別名指向宣告在錨點之外的內容,或將內容完整寫出)
required parameter not supplied (Aggregate, at .spec.parameters.<parameter>, parameter "<parameter>" is required but not supplied by Release)(未提供必要參數(Aggregate,位於,參數為必要,但 Release 未提供))
parameter "<parameter>" value <value> not in enum [<members>] (參數值不在列舉之中) parameter "<parameter>" value "<value>" does not match pattern "<pattern>" (參數值不符合模式) parameter "<parameter>" value "<value>" is not a valid <format>: <reason> (參數值不是有效的格式) parameter "<parameter>" value <value> above max <max> (參數值超過最大值) parameter "<parameter>" failed validate predicate (參數未通過驗證述詞) parameter "<parameter>" validate predicate error: <detail> (參數的驗證述詞錯誤)
格式失敗的 <reason> 以該格式自己的術語說明值哪裡有問題。巢狀契約內的值以其路徑命名,因此 items: 契約所宣告的 format 會對每個元素檢查,回報也會指出失敗的那一個:hosts 參數的第二個元素回報於 .spec.parameters.hosts.1,其細節指出 "hosts.1"。
宣告 validateMessage: 的參數會以其自己的文字取代整段細節,因此回報讀起來是 parameter contract violated (Aggregate, at .spec.parameters.<parameter>, <the validateMessage you wrote>) ——框架不變,你的句子位於限制條件細節原本的位置。
parameter "<parameter>.items": format "<format>" is not supported; the supported formats are email, uri, hostname, ipv4, ipv6, uuid, date-time, date(參數的格式不受支援;支援的格式為 email、uri、hostname、ipv4、ipv6、uuid、date-time、date)
document envelope validation failed (Aggregate, at <path>); <line>:<column>: spec.parameters.<parameter>.format: enum: <format> does not equal any of: [email uri hostname ipv4 ipv6 uuid date-time date]. correct the document to match its kind’s schema(文件封套驗證失敗;列舉:不等於以下任何一個:[email uri hostname ipv4 ipv6 uuid date-time date]。請修正文件以符合其種類的結構描述)
provider does not support the node’s input kind (node "<node-id>"). provider "<provider-name>" does not support <mode> recipes (this provider supports: <kinds>); declare one of the supported input kinds, or target a provider that supports <mode>(提供者不支援該節點的輸入種類。提供者不支援這種配方;請宣告其中一種受支援的輸入種類,或改用支援它的提供者)
標頭帶有類別與這個條件的簡短代碼 E0265,需要持久地指稱這個中止時——在持續整合關卡、議題或維運手冊中——應記錄的就是這個識別碼。編號一經發出就固定不變,因此不論周遭措辭如何改善,它都維持相同;Every condition, by short code(依簡短代碼列出所有條件)可以查出它,而當你手上是文字而非識別碼時,上方的開頭句子就是用來比對的內容。
input-kind: [E0265] Recipe "<name>:<version>": provider "<provider-name>" does not support synthesized recipes (this provider supports: <kinds>); declare one of the supported input kinds, or target a provider that supports synthesized(輸入種類:提供者不支援合成配方;請宣告其中一種受支援的輸入種類,或改用支援合成的提供者)
provider does not support omits ("<provider-name>", node "<node-id>"). this provider’s contract does not declare that it leaves rendered documents out; remove the omits key, or render the source through a provider whose contract declares it(提供者不支援 omits。此提供者的契約並未宣告它會省略已渲染的文件;請移除 omits 鍵,或透過契約有宣告的提供者來渲染來源)
provider does not support boundary artifacts ("<provider-name>", node "<node-id>"). this provider’s contract does not declare that it accepts files written to a boundary’s shared output; remove the boundary block, or render the Recipe through a provider whose contract declares it(提供者不支援邊界成品。此提供者的契約並未宣告它接受寫入邊界共用輸出的檔案;請移除 boundary 區塊,或透過契約有宣告的提供者來渲染 Recipe)
document envelope validation failed (Recipe, at <path>); <line>:<column>: spec: no anyOf branch matched: branch[0]: validation: required: missing properties: [“source”]; branch[1]: validation: required: missing properties: [“valuesMapping”]; branch[2]: validation: required: missing properties: [“workload”]; branch[3]: validation: required: missing properties: [“artifacts”]. correct the document to match its kind’s schema(文件封套驗證失敗;spec:沒有任何 anyOf 分支相符:驗證:必要:缺少屬性。請修正文件以符合其種類的結構描述)
輸出的訊息:
Recipe: at least one input kind required (Recipe <name>:<version>, rule input-kinds, at <path>). declare one of: source (with valuesMapping), workload, artifacts(Recipe:至少需要一種輸入種類。請宣告其中之一:source(搭配 valuesMapping)、workload、artifacts)
filename collision across input kinds: two input-kind blocks produced a file under one output name (output name <filename>, produced by <origin1>, <origin2>)(跨輸入種類的檔名衝突:兩個輸入種類區塊以同一輸出名稱產生了檔案)
FeatureRecipe 中的衝突也會帶有附加項目:
filename collision across input kinds: two input-kind blocks produced a file under one output name (output name <filename>, produced by <origin1>, <origin2>, attachment <instance>)(跨輸入種類的檔名衝突:兩個輸入種類區塊以同一輸出名稱產生了檔案,並指出附加項目)
recipe output-labels constraint: key uses a reserved namespace (Recipe <name>:<version>, rule output-labels, at .spec.outputLabels). key "<key>" in outputLabels uses a reserved namespace ("aggrega.ai/" and "app.kubernetes.io/" are reserved for platform provenance)(配方輸出標籤限制:鍵使用了保留的命名空間。outputLabels 中的鍵使用了保留的命名空間(保留給平台出處))
寫在被提升區塊中的鍵,會以該區塊的規則名稱回報,並在建議中指出它:
recipe output-labels constraint: key uses a reserved namespace (Recipe <name>:<version>, rule output-component-labels, at .spec.outputComponentLabels). key "<key>" in outputComponentLabels uses a reserved namespace ("aggrega.ai/" and "app.kubernetes.io/" are reserved for platform provenance)(配方輸出標籤限制:鍵使用了保留的命名空間。outputComponentLabels 中的鍵使用了保留的命名空間(保留給平台出處))
recipe output-component-labels constraint: key is also declared in outputLabels (Recipe <name>:<version>, rule output-component-labels, at .spec.outputComponentLabels.<key>). key "<key>" is promoted through outputComponentLabels and also declared literally in outputLabels; keep whichever source the label should come from and drop the other(Recipe 輸出元件標籤限制:鍵同時也宣告於 outputLabels。鍵經由 outputComponentLabels 被提升,同時也在 outputLabels 中以字面宣告;請保留標籤應來自的來源,並捨棄另一個)
每個重複都是各自獨立的發現,定位於重複的 id,並指出最先宣告該 id 的步驟及其行與欄。某個 id 出現三次時,後兩個步驟都指向第一個。
發出的訊息,針對第二個步驟重複了第一個步驟 id 的 FeatureRecipe。類別與這個條件的簡短代碼 E0370 會出現在方括號標頭:
a pipeline declares one step id twice (FeatureRecipe, at <path>); <line>:<column>: spec.pipeline[1].id: step id "<id>" is already declared at spec.pipeline[0].id (line <line>, column <column>). give each step of the pipeline its own id, and point every .steps.<id> reference a later step makes at the step it means(管線兩次宣告了同一個步驟 id;spec.pipeline[1].id:步驟 id 已在 spec.pipeline[0].id 宣告。請讓管線的每個步驟擁有自己的 id,並將較後步驟所做的每個步驟參照指向它所指的步驟)
修正方式: 重新命名兩個步驟之一,使每個 id 只宣告一次。然後讀過每個較後步驟的 with: 與 when: 範本,找出對你所保留 id 的 .steps.<id> 參照,並將每個都指向其輸出所指的步驟——重新命名正是讓兩個步驟的輸出各自可達的原因。
A document declares an API version this compiler no longer reads(文件宣告了此編譯器不再讀取的 API 版本)
a document declares an API version this compiler no longer reads (Component, at <path>); 1:1: apiVersion: the document declares aggrega.ai/v1alpha1, and this compiler reads aggrega.ai/v1beta1. change the apiVersion line to apiVersion: aggrega.ai/v1beta1(文件宣告了此編譯器不再讀取的 API 版本;1:1:apiVersion:文件宣告了 aggrega.ai/v1alpha1,而此編譯器讀取 aggrega.ai/v1beta1。請修改 apiVersion 行)
A plugin declares a plugin ABI version this compiler no longer speaks(外掛程式宣告了此編譯器不再使用的外掛程式 ABI 版本)
外掛程式宣告了外掛程式 ABI v1alpha1。此編譯器使用外掛程式 ABI v1beta1 且不使用其他任何版本,因此針對較早版本建置的外掛程式會被拒絕,而不是被執行。外掛程式在兩處陳述其 ABI,各自都依這同一個條件遭拒絕:其客體在載入時回傳的 describe() 報告,以及其 Plugin 實體的 spec.abiVersion,後者在實體被讀取時、早於任何其他檢查就遭拒絕。宣告了此編譯器從未使用過之 ABI 版本的外掛程式也會遭拒絕,由描述元檢查(E0085)或 Plugin 結構描述(E0215)負責。
發出的訊息,針對載入時的客體。類別與這個條件的簡短代碼 E0374 會出現在方括號標頭:
plugin "<plugin>" declares abi_version “v1alpha1”, and this compiler speaks “v1beta1”; rebuild the plugin against the current plugin kit and publish it again: a plugin declares a plugin ABI version this compiler no longer speaks(外掛程式宣告 abi_version “v1alpha1”,而此編譯器使用 “v1beta1”;請針對目前的外掛程式套件重新建置外掛程式並再次發布:外掛程式宣告了此編譯器不再使用的外掛程式 ABI 版本)
輸出的訊息,針對 Plugin 實體:
a plugin declares a plugin ABI version this compiler no longer speaks (Plugin, at <path>); <line>:<column>: spec.abiVersion: the Plugin declares abiVersion v1alpha1, and this compiler speaks v1beta1. rebuild the plugin against the current plugin kit and publish it again; its Plugin entity then declares abiVersion: v1beta1(外掛程式宣告了此編譯器不再使用的外掛程式 ABI 版本;spec.abiVersion:Plugin 宣告 abiVersion v1alpha1,而此編譯器使用 v1beta1。請針對目前的外掛程式套件重新建置外掛程式並再次發布;其 Plugin 實體隨後會宣告對應的 abiVersion)
"<reference>" carries media type “application/vnd.aggrega.component.v1alpha1+yaml”, and this compiler reads “application/vnd.aggrega.component.v1beta1+yaml”; publish the artifact again with the current release: oci: artifact carries a media type this compiler no longer reads(帶有媒體類型,而此編譯器讀取另一種媒體類型;請以目前發行版本再次發布成品:oci:成品帶有此編譯器不再讀取的媒體類型)
file load failed: the file could not be read, or its bytes did not parse (Aggregate, at <path>, failed to read file: <underlying reason>)(檔案載入失敗:無法讀取檔案,或其位元組無法剖析(Aggregate,讀取檔案失敗))
以及文字無法剖析的情況:
file load failed: the file could not be read, or its bytes did not parse (Aggregate, at <path>, failed to unmarshal YAML: <underlying reason>)(檔案載入失敗:無法讀取檔案,或其位元組無法剖析(Aggregate,解析 YAML 失敗))
file load failed: the file could not be read, or its bytes did not parse (Release, at .spec.parameters.$import: <path>, failed to read file: <underlying reason>) (檔案載入失敗:無法讀取檔案,或其位元組無法剖析(Release,讀取檔案失敗)) file load failed: the file could not be read, or its bytes did not parse (Release, at .spec.parameters.$import: <path>, failed to unmarshal YAML: <underlying reason>) (檔案載入失敗:無法讀取檔案,或其位元組無法剖析(Release,解析 YAML 失敗))
相對路徑是從寫下它的 Release 所在的目錄解析——命令所指名的 Release,或其 extends: 鏈中的某一環——不論命令從何處執行,因此命令列與編輯器讀的是同一個檔案;絕對路徑則指名它自己的位置。請確認建置所對照的簽出內容在那裡有這個檔案:在你的機器上存在、但被排除在版本控制之外的參數檔案,在持續整合執行期間並不存在,這是遇到此問題最常見的方式。離開工作區的路徑——或對於在工作區之外指名的 Release,離開該 Release 自己目錄的路徑——完全不會被讀取,而是回報於下方的「A reference to another file leads out of the directory it must stay inside(對另一個檔案的參照離開了它必須留在其中的目錄)」。
file load failed: the file could not be read, or its bytes did not parse. <surface>: read imported schema <value>: <the operating system's reason>(檔案載入失敗:無法讀取檔案,或其位元組無法剖析。讀取匯入的結構描述)
Recipe 或 FeatureRecipe 的 valuesMapping:、workload: 或 artifacts.<name>: 匯入也會在這裡回報,原因相同、補救方式相同:指示詞格式正確,而它指名的檔案並未產出內容。這三種本文是 Go 範本原始碼而非文件,因此只有讀取可能失敗——此時沒有任何東西剖析它們。實體與指名該路徑的鍵會帶在子句中,來源指標則是被匯入檔案自己的路徑:
file load failed: the file could not be read, or its bytes did not parse (Recipe <name> valuesMapping file import, <the operating system's reason>). if you meant a library entry rather than a file, the reference needs its fragment — an $import: carrying none is read as a file path, and an unquoted value ends where a space before # starts a comment, so quote the whole reference (檔案載入失敗:無法讀取檔案,或其位元組無法剖析(Recipe 的 valuesMapping 檔案匯入)。如果你指的是程式庫項目而非檔案,參照需要其片段——不帶片段的 $import: 會被當作檔案路徑讀取,而未加引號的值會在 # 前的空格開啟註解處結束,因此請將整個參照加上引號) file load failed: the file could not be read, or its bytes did not parse (Recipe <name> workload file import, <the operating system's reason>). if you meant a library entry rather than a file, the reference needs its fragment — an $import: carrying none is read as a file path, and an unquoted value ends where a space before # starts a comment, so quote the whole reference (檔案載入失敗:無法讀取檔案,或其位元組無法剖析(Recipe 的 workload 檔案匯入)。如果你指的是程式庫項目而非檔案,參照需要其片段——不帶片段的 $import: 會被當作檔案路徑讀取,而未加引號的值會在 # 前的空格開啟註解處結束,因此請將整個參照加上引號) file load failed: the file could not be read, or its bytes did not parse (Recipe <name> artifact <key> file import, <the operating system's reason>). if you meant a library entry rather than a file, the reference needs its fragment — an $import: carrying none is read as a file path, and an unquoted value ends where a space before # starts a comment, so quote the whole reference (檔案載入失敗:無法讀取檔案,或其位元組無法剖析(Recipe 的成品檔案匯入)。如果你指的是程式庫項目而非檔案,參照需要其片段——不帶片段的 $import: 會被當作檔案路徑讀取,而未加引號的值會在 # 前的空格開啟註解處結束,因此請將整個參照加上引號)
<n> documents under the catalog directories declare an Aggrega apiVersion and could not be loaded, so nothing was checked: <path>, <path> (目錄資料夾之下的文件宣告了 Aggrega apiVersion 但無法載入,因此沒有檢查任何東西) file load failed: the file could not be read, or its bytes did not parse (catalog document, failed to unmarshal YAML: <the parser's reason>) (檔案載入失敗:無法讀取檔案,或其位元組無法剖析(目錄文件,解析 YAML 失敗))
對於可剖析但無法解碼的文件,使用 failed to decode the envelope:,其後接行號以及解碼器在該處發現的內容——對寫成清單的 metadata 而言是 line 4 (metadata): a list is written where a map is expected——而對於無法讀取的檔案,使用 failed to read file: 與作業系統的原因。載入成功卻宣告了目錄不收錄之種類的文件,會由同一個中止指名、計入同一個標頭,並列於它自己的條件之下——請見下方「A catalog document declares a kind a catalog does not hold(目錄文件宣告了目錄未收錄的實體種類)」。
<n> documents under the catalog directories declare an Aggrega apiVersion and could not be loaded, so nothing was checked: <path>, <path> (目錄資料夾之下的文件宣告了 Aggrega apiVersion 但無法載入,因此沒有檢查任何東西) catalog document declares a kind a catalog does not hold (kind “Componnent”). a catalog holds Component, Feature, Recipe, FeatureRecipe, SchemaLibrary, MappingLibrary, WorkloadLibrary, ArtifactLibrary, Aggregate and Plugin documents, and passes over a Workload, a Manifest or a Release; correct the kind, or move the file out of the catalog directories (目錄文件宣告了目錄未收錄的實體種類。目錄收錄特定種類的文件,並略過其他文件;請更正種類,或將檔案移出目錄資料夾)
對於未宣告任何種類的文件,以 no kind 取代 kind "<kind>"。
建置不會因這樣的文件而停止:它會像每次載入一樣略過它,而沒有任何 Release 觸及的文件永遠不會使建置失敗。當 Release 觸及該實體時,建置會停在參照處,位於下方「A reference names no entity the catalog holds(參照指名的實體不在目錄中)」之下,且當檔案宣告了參照所要求的名稱時,該失敗之後的附註會指名該檔案——請見該項目。
a path names content outside the entity’s own directory ("<path>"). remediation: move the file into the directory holding the entity, or a directory beneath it, and name it with a path relative to that directory. An entity’s content lives in the entity’s own directory because every file a publication of it carries is taken from there; a path that leaves it points at a file that would not travel with the entity(路徑指名了實體自己目錄之外的內容。補救方式:將檔案移入持有實體的目錄或其下的目錄,並以相對於該目錄的路徑命名。實體的內容位於實體自己的目錄中,因為其發布所帶的每個檔案都取自該處;離開該目錄的路徑指向一個不會隨實體一起移動的檔案)
而對於被連結帶出目錄的路徑,則指出該連結及其去處:
a path names content outside the entity’s own directory ("./frag/fragment.yaml", the link <entity-directory>/frag leads to <elsewhere>/frag). remediation: replace the link with a copy of what it leads to, placed inside the directory holding the entity. An entity’s content lives in the entity’s own directory because every file a publication of it carries is taken from there; a link leading out of it would carry the bytes it points at under a name inside the entity(路徑指名了實體自己目錄之外的內容。補救方式:將連結替換為其所指內容的副本,放在持有實體的目錄之內。實體的內容位於實體自己的目錄中,因為其發布所帶的每個檔案都取自該處;通往目錄之外的連結會將它所指的位元組,放在實體內的某個名稱之下一併帶走)
no source adapter serves the source kind (Recipe <name>:<version>, rule source-kind, at <file>). the source names kind "<kind>"; name a kind a source adapter serves (<the served kinds>), or write the source as a single URI whose shape names its kind(沒有來源配接器服務該來源種類。來源指名了種類;請指名來源配接器所服務的種類,或將來源寫成單一 URI,其形狀即指名其種類)
the source does not name one artifact of its OCI module kind (Recipe <name>:<version>, rule oci-module-source, at <file>). the source writes no version; write version: <tag or sha256 manifest digest>(來源未指名其 OCI 模組種類的單一成品。來源未寫版本;請寫入標籤或 sha256 資訊清單摘要)
No source adapter is registered in this program for a source kind(此程式中沒有為來源種類註冊來源配接器)
來源由為其種類註冊的配接器取得。這個條件回報的是針對沒有註冊配接器的種類所派送的取得。沒有任何配接器服務的撰寫種類會在其 Recipe 被讀取時遭拒絕(見上方「A Recipe’s source: names a kind nothing knows how to acquire(Recipe 的 source 指名了沒有任何東西知道如何取得的種類)」),因此撰寫者所寫的任何東西都不會到達這裡:它回報的是組裝時缺少其所服務種類之配接器的程式,或建置在 Aggrega 的 Go 套件之上、派送了自己組裝之種類的程式。
輸出的訊息,指出種類:
kind "<kind>": no source adapter is registered in this program for the source kind(種類:此程式中沒有為來源種類註冊來源配接器)
the source URL carries a credential (Recipe <name>:<version>, rule source-url, at <file>). spec.source.url names a user or password for host <host>; remove it from the URL and write the credential in the netrc file instead, as an entry “machine <host> login <user> password <secret>” (the file NETRC names, else .netrc in your home directory, or _netrc in %USERPROFILE% on Windows)(來源 URL 帶有認證。spec.source.url 為主機指名了使用者或密碼;請將它從 URL 移除,改把認證寫在 netrc 檔案中,作為項目「machine login password」(NETRC 所指名的檔案,否則是你家目錄中的 .netrc,或 Windows 上 %USERPROFILE% 中的 _netrc))
而在其他通訊協定上,補救方式是移除密碼:
the source URL carries a credential (Recipe <name>:<version>, rule source-url, at <file>). spec.source.url names a password for host <host>; remove it from the URL, which is written into the lockfile and the cache as authored(來源 URL 帶有認證。spec.source.url 為主機指名了密碼;請將它從 URL 移除,它會照所寫被寫入鎖定檔與快取)
指名了 Release 未提供之鍵的參照不是此中止。缺少的鍵在這裡會解析成空值,並由上文「Parameter type mismatch / contract violation(參數型別不符/契約違反)」所述的參數檢查連同其型別與契約一併攔下。這個中止回報的,是範本引擎完全無法處理的文字——未關閉的 {{、拼錯的函式名稱、各階段彼此對不上的管線。當 Release 沒有提供某個參數,卻透過 index 讀取它——{{ index .parameters "db_size" }}——就是執行時的失敗,由此中止承載並指出該鍵:index 在每個範本介面上,遇到對應表中不存在的鍵都會中止,如下文「A template indexes a map with a key the map does not hold(範本以對應表中不存在的鍵索引該對應表)」所述。
invalid parameter reference: check the {{ .parameters.* }} expression names a declared parameter and parses as a Go template (Aggregate <path>, “template parse error: <underlying reason>”)(無效的參數參照:請檢查參數運算式是否指向已宣告的參數,且可解析為 Go 範本;範本解析錯誤) > invalid parameter reference: check the {{ .parameters.* }} expression names a declared parameter and parses as a Go template (Aggregate, template parse error: <underlying reason>)(無效的參數參照:請檢查參數運算式是否指向已宣告的參數,且可解析為 Go 範本;範本解析錯誤) > invalid parameter reference: check the {{ .parameters.* }} expression names a declared parameter and parses as a Go template (Aggregate, template execution error: <underlying reason>)(無效的參數參照:請檢查參數運算式是否指向已宣告的參數,且可解析為 Go 範本;範本執行錯誤)
invalid parameter reference: check the {{ .parameters.* }} expression names a declared parameter and parses as a Go template (Aggregate, the template reads <reference>, and an Aggregate’s text defines no root but .parameters; template execution error: <underlying reason>)(無效的參數參照:請檢查參數運算式是否指向已宣告的參數,且可解析為 Go 範本;範本讀取了一個參照,而這段文字除了參數之外沒有定義任何根;範本執行錯誤)
duplicate Aggregate/Manifest identity (metadata.name) in the Release directory: Aggregate "<name>" declared more than once in <release-directory>(目錄中出現重複的實體識別:同一實體被宣告超過一次)
Aggregate/Manifest reference unresolvable: no Aggregate named "<reference>" in the Release directory, catalog, or registry(參照無法解析:在同層資料夾、目錄或登錄庫中都沒有該名稱的實體)
Aggregate/Manifest reference unresolvable: Aggregate "<reference>" not found; unparseable file <path> could not be indexed and may be it: <parse failure>(參照無法解析:找不到該實體;無法解析的檔案無法建立索引,且可能就是它)
以及當無法解析的檔案正是參照直接指名的那個時:
Aggregate/Manifest reference unresolvable: needed Aggregate "<reference>" is the unparseable file <path>: <parse failure>(參照無法解析:所需的實體就是無法解析的檔案)
將模組路由進某個邊界,同時又在同一個邊界下指名其中一個元件,並不衝突——兩個放置對元件所屬位置的看法一致——並且可以建置。但同一個 id 在同一個邊界下寫兩次,即使在這裡也是衝突:邊界的 components: 中的一個項目,與該邊界路由項目內同一元件的一個項目,是兩個替同一元件攜帶設定的項目,沒有任何依據可在兩者之間選擇。
component declared in more than one boundary: declare each component in exactly one boundary (Release <name>, at <field-path>, "<component>", named in the components block of boundary "<boundary-b>", while it is already named in the components block of boundary "<boundary-a>", that earlier entry naming "<component>", both declared in "<path>")(元件被宣告在多個邊界:請將每個元件宣告在恰好一個邊界中)
兩個指名邊界的子句,是依各項目所寫入的區塊來措辭的。有問題的項目會採用下列其中之一:
named in the components block of boundary "<boundary>"——邊界自己的 components: 對應表;
named inside a routing entry in boundary "<boundary>"——該邊界 aggregates: 底下某個路由項目的 components: 對應表;
routed as a sub-module into boundary "<boundary>"——路由項目本身。
較早的放置,接續同一個句子,採用下列其中之一:
while it is already named in the components block of boundary "<boundary>";
while it is already named inside a routing entry in boundary "<boundary>";
while it is already placed by a sub-module routed into boundary "<boundary>"。
這兩個子句是各自獨立選擇的,因此兩者的任何組合都可能出現,而 that earlier entry naming 帶出較早那個放置所指向的內容:元件的 id,或在放置它的是被路由的子模組時,該子模組的前綴。
component declared in more than one boundary: declare each component in exactly one boundary (Release <name>, at <field-path>, sub-module "<module>", routed as a sub-module into boundary "<boundary-b>", while it is already placed by a sub-module routed into boundary "<boundary-a>", that earlier entry naming "<module>", both declared in "<path>")(元件被宣告在多個邊界:請將每個元件宣告在恰好一個邊界中)
Manifest annotation binding uses reserved prefix (Manifest, at <field-path>, "<key>", reserved prefix "aggrega.ai/", routing to Feature "<feature-uri>", author the binding under a domain of your own such as "feature.<your-domain>/")(註記繫結使用了保留前綴:請在你自己的網域下撰寫該繫結)
每個目標 Feature,只有一個繫結可以宣告某個路徑與支柱的組合。兩個繫結以 不同 路徑指向同一個 Feature 是一般的撰寫方式,可以建置;兩個繫結把同一路徑路由到兩個 不同 的 Features 也一樣。
繫結依 Manifest 宣告它們的順序走訪,所以訊息最先指出的繫結,永遠是你文件中較早的那個。
輸出的訊息:
Manifest annotation bindings collide on same Feature path+pillar (Manifest, at <path>, annotation bindings "<first-key>" and "<second-key>" both target Feature "<feature-uri>" with path "<path>" routing to pillar "<pillar>"; only one binding may declare a given (path, pillar) pair per Feature)(註記繫結在同一個路徑加支柱上衝突:每個目標只有一個繫結可以宣告某個(路徑、支柱)組合)
release reached resolve un-normalized (non-empty root components alongside a synthesized default boundary): construct releases through the normalization core (types.NormalizeRelease via the load path), not a hand-built literal(抵達解析時未經正規化(根層級的元件非空,同時存在合成的預設邊界):請透過正規化核心經由載入路徑來建構,而不是手工建造的字面值)
同一個條件也支撐著上文「YAML anchor aliased inside its own content(YAML 錨點在自身內容中被引用別名)」中記載的錨點遞迴拒絕。那一個是單一文件自己的文字內部的迴圈;這一個是文件之間的迴圈。訊息中的鏈讓你一眼就能分辨兩者:文件之間的迴圈指名程式庫項目,內部的迴圈指名錨點。
**修正方式:**在訊息所指的位置開啟結構描述,並閱讀所回報的原因。確認關鍵字的值是字串、範本可以解析,且它走訪的每個路徑都是受驗證的值確實擁有的——述詞把值讀為 .value,而去讀取其他任何東西是最常見的錯誤。當原因指出 index 找不到某個鍵時,請改用 hasKey 測試該鍵,或用 get 讀取它:index 遇到對應表中不存在的鍵會中止,如下文「A template indexes a map with a key the map does not hold(範本以對應表中不存在的鍵索引該對應表)」所述。確保範本以產生 true 或 false 結尾:比較會這樣,而只渲染值的範本不會。
A Workload does not satisfy the Workload schema(不符合結構描述)
workload validation failed (Workload in Recipe <name>:<version>, at <path>, schema stage): > .containers.<name>.<field>: <what the schema required> — <the fix, where one can be stated> > .initContainers[<i>].<field>: <what the schema required> — <the fix, where one can be stated>(工作負載驗證失敗,結構描述階段;每個發現指出欄位路徑、結構描述的要求,以及能陳述時的修正方式)
.containers.main.imagePullPolicy: against /$defs/container: enum: <redacted> does not satisfy enum ["Always","Never","IfNotPresent"] (the value is withheld because the template that rendered this document reads a value declared sensitive)
workload featuresSchema cross-check failed (Workload in Recipe <name>:<version>, at <path>, featuresSchema stage): > .containers.<name>.attachments.<KEY>.from: references slot "<slot>" which is not declared in the Component’s featuresSchema — either declare the slot in the Component (or Feature) featuresSchema, or rename the reference to an existing slot > .containers.<name>.attachments.<KEY>.from: slot "<slot>" is blackbox (no inject: allowlist) and cannot be referenced from a Workload attachments entry — blackbox slots are delivered by Recipe-internal plumbing; remove the Workload-side reference, or widen the slot’s inject allowlist if Workload-side delivery is intended > .containers.<name>.attachments.<KEY>.as: delivery mechanism "<as>" is not permitted by slot "<slot>" (inject allowlist: [<mechanisms>]) — use one of the allowlisted delivery mechanisms ([<mechanisms>]), or widen the slot’s inject allowlist in the Component/Feature featuresSchema > .containers.<name>.attachments.<KEY>.connection: names connection "<alias>" for slot "<slot>", but the component draws no connection under that alias — name a connection the component draws (<aliases>), or remove connection to read a slot the Component declares for its own attachments > .containers.<name>.attachments.<KEY>.from: names slot "<slot>" of connection "<alias>", which socket "<socket>" does not declare — name a slot socket "<socket>" declares (<slots>), or declare the slot in that socket’s featuresSchema > .containers.<name>.attachments.<KEY>.from: names "<alias>.<slot>", the name the compiler composes for slot "<slot>" of connection "<alias>"; a slot a connection’s socket declares is named by naming the connection — write connection: <alias> beside from: <slot>(工作負載的槽位交叉檢查失敗,槽位宣告階段:第一,參照了未在宣告中出現的槽位——請在實體中宣告該槽位,或將參照改為現有的槽位;第二,槽位為黑箱(沒有允許清單),無法從附加項目參照——黑箱槽位由內部管線遞送,請移除工作負載端的參照,或在確實要由工作負載端遞送時放寬槽位的允許清單;第三,槽位不允許該遞送機制——請使用允許清單內的機制,或放寬允許清單;第四,指名了元件沒有取用的連線——請指名元件所取用的連線,或移除連線以讀取元件為自己的附加項目宣告的槽位;第五,指名了連線的插槽沒有宣告的槽位——請指名該插槽所宣告的槽位,或在該插槽的宣告中加入該槽位;第六,指名了編譯器為連線之槽位所組合的名稱——連線的插槽所宣告的槽位,是藉由指名連線來命名的——請把連線寫在槽位旁邊)
需要哪些鍵取決於項目,發現會說明它要的是哪一種。自己指名 key: 的項目自行提供欄位,所以只需發布資源的 name——這讓它得以參照多鍵資源。沒有指名 key: 的項目讀取槽位唯一發布的欄位,所以 name 與 key 都必須在。
此檢查只讀取鍵是否存在;從不檢查它們的值。每個有問題的項目都在同一標頭下一併回報。
輸出的訊息:
workload attachment slot is not referenceable (Workload in Recipe <name>:<version>, at <path>, slotReferenceability stage): > .containers.<name>.attachments.<KEY>.from: slot "<slot>" is not referenceable: its resolved provides does not expose "<key>" (a workload attachment reference reads the provides keys name and key) — reference a slot filled by an attachment whose schema.provides declares the keys this reference reads, or deliver it through the slot’s inject pipe rather than a workload reference(工作負載的附加槽位無法參照,可參照性階段:槽位無法參照:其解析後的 provides 未公開該鍵(工作負載的附加參照讀取 provides 的 name 與 key 鍵)——請參照由附加項目所填入的槽位,且該附加項目的結構描述宣告了此參照所讀取的鍵,或改以槽位的 inject 管道遞送,而不是透過工作負載參照)
發出的訊息,針對 Recipe 的 Workload 主容器上的一對。類別與此條件的簡短代碼 E0345 出現在方括號的標頭中,而位置讀作 <path> at .spec.workload:
a container declares one environment variable twice ("<NAME>", container "<container>"). Rename one of the two, or write them under complementary template conditions so that only one of them renders(容器兩次宣告同一個環境變數。請將兩者之一改名,或在互補的範本條件下撰寫,使其中只有一個被渲染)
當一個 Workload 帶有數對時,發現會歸在指出文件的一行之下:containers of the Workload this Recipe renders name one environment variable twice,或者,對 FeatureRecipe 而言,containers of the Workload rendered by the FeatureRecipe that attachment "<attachment>" binds name one environment variable twice。
document envelope validation failed (Release, at <path>); <line>:<column>: spec.parameters: no oneOf branch matched (2 branches tried): branch[0]: type: expected object, got array; branch[1]: type: expected object, got array. correct the document to match its kind’s schema(文件封套驗證失敗:沒有任何 oneOf 分支相符(已嘗試 2 個分支):預期物件,得到陣列。請更正文件以符合其種類的結構描述)
對於 $import: 與另一個鍵並存的情況,第二個分支以 additionalProperties: unexpected property: "<key>" 結尾,而對於把 $import: 寫成清單而不是字串的情況,則以 validation: type: array has type "array", want "string" 結尾。
發出的訊息,當值不是對應表時,指出寫在該處的是什麼——例如 a list:
parameters: shape must be an inline object or {$import: }: line <line>: <shape> is written where a map is expected(參數的形態必須是行內物件或匯入本機路徑:在預期對應表之處寫了其他東西)
而當 $import: 與其他東西共用對應表,或指名了不是路徑的東西時:
parameters: shape must be an inline object or {$import: }: $import: must be the only key (got <n> keys) at line <line> > parameters: shape must be an inline object or {$import: }: $import value must be a string scalar at line <line>(參數的形態必須是行內物件或匯入本機路徑:匯入必須是唯一的鍵(得到若干個鍵);匯入的值必須是字串純量)
artifacts entry: shape must be a string scalar or {$import: }: got <n> keys at line <line> > valuesmapping: shape must be a string scalar or {$import: }: got key "<key>" at line <line> > workload: shape must be a string scalar or {$import: }: $import value must be a string scalar at line <line>(artifacts 項目:形態必須是字串純量或匯入:在該行得到若干個鍵;valuesmapping:形態必須是字串純量或匯入:在該行得到某個鍵;workload:形態必須是字串純量或匯入:匯入的值必須是字串純量)
三個欄位中任何一個都可以回報任何一種結尾;兩種形態都不是的值,結尾為 line <line>: <shape> is written where text or a map is expected,指出寫的是什麼——最常見的是 a list。
library reference: a reference to a library entry carries no whitespace or line break: $import target "<reference>" at line <line>(程式庫參照:程式庫項目的參照不得帶有空白或換行)
mappinglibrary: entry body must be a string scalar: line <line>: <shape> is written where text is expected > workloadlibrary: entry body must be a string scalar: line <line>: <shape> is written where text is expected > artifactlibrary: entry must be a mapping of filename to a string body: line <line>: <shape> is written where a map is expected(項目主體必須是字串純量:在預期文字之處寫了其他東西;項目必須是檔名對應到字串主體的對應表:在預期對應表之處寫了其他東西)
而對於項目是對應表、但其中某個檔案不是純量的套組,則指出該檔案:
artifactlibrary: entry must be a mapping of filename to a string body: file "<filename>": line <line>: <shape> is written where text is expected(項目必須是檔名對應到字串主體的對應表:該檔案在預期文字之處寫了其他東西)
schemalibrary: template not found: "<template-name>" not declared in spec.templates > schemalibrary: template parameter missing: "<parameter-name>" (template "<template-name>") > schemalibrary: template parameter type mismatch: <what the type check found> > schemalibrary: template parameter type mismatch: argument "<argument-name>" is not declared in template "<template-name>"’s $params(找不到範本:未在範本集合中宣告;缺少範本參數;範本參數型別不符:型別檢查所發現的內容;範本參數型別不符:該引數未在範本的參數中宣告)
provider "<plugin-name>" declares well-known annotation "<key>" at scope "<scope>", but its contract.inputKinds.<field> is not claimed; declare the key only at a scope the provider renders, or claim the input kind: wellKnownAnnotations: a key is declared at a scope the provider’s contract does not render(提供者宣告了知名註記,但其輸入種類未被宣稱;請只在提供者會渲染的範圍宣告該鍵,或宣稱該輸入種類:鍵被宣告在提供者契約不渲染的範圍)
compactform at <path-inside-the-schema>:<line> (keyword "<key>"): cross-document $ref sibling not allowed (allowed: properties, required, description)(不允許跨文件參照的同層鍵)
而當該同層鍵要求重新開放合併後的形狀時,句子會改帶有替代的做法:
compactform at <path-inside-the-schema>:<line> (keyword "additionalProperties"): cross-document $ref sibling not allowed (allowed: properties, required, description); use $jsonschema: to embed an open-object schema if the merged shape must accept arbitrary properties(不允許跨文件參照的同層鍵;若合併後的形狀必須接受任意屬性,請改用 JSON Schema 逸出來嵌入開放物件結構描述)
compactform at <path-inside-the-schema>:<line> (keyword "$jsonschema"): escape content does not parse as YAML: <what the parse reported> > compactform at <path-inside-the-schema>:<line> (keyword "$jsonschema"): expected block-scalar string or nested mapping > compactform at <path-inside-the-schema>:<line> (keyword "properties"): expected a mapping of property names to schemas > compactform: unsupported YAML node kind(逸出內容無法解析為 YAML;預期區塊純量字串或巢狀對應表;預期屬性名稱對應到結構描述的對應表;不支援的 YAML 節點種類)
compactform at <path-inside-the-schema>:<line> (keyword "<constraint>"): constraint applies to a single declared type (integer/number/string/array); type: is unresolved (union or absent) — narrow type: to a single value or remove this constraint > compactform at <path-inside-the-schema>:<line> (keyword "<constraint>"): constraint applies to integer/number/string/array; declared type is <the type as written> > compactform at <path-inside-the-schema>:<line> (keyword "type"): expected a scalar type name or a sequence of type names (JSON Schema 2020-12 array-of-types); got unsupported node kind > compactform at <path-inside-the-schema>:<line> (keyword "valuesType"): expected a scalar type name(限制適用於單一宣告型別(整數/數字/字串/陣列);型別未解析(聯集或不存在)——請將型別縮窄為單一值或移除此限制;限制適用於整數/數字/字串/陣列;宣告的型別如所寫;預期純量型別名稱或型別名稱序列(JSON Schema 2020-12 的型別陣列);得到不支援的節點種類;預期純量型別名稱)
它被記錄所屬的條件是 compactform: constraint not valid for declared type,這就是其簡短代碼所解析到的。
compactform at <path-inside-the-schema>:<line> (keyword "$ref"): expected a non-empty reference URL > compactform at <consumer-document> (keyword "$ref"): cross-document $ref shape must be <LibraryName>#/schemas/<EntryName>: <the value as written> > compactform at <consumer-document> (keyword "$ref"): cross-document $ref version separator is ’:’, not ’@’ — use <the corrected value>: <the value as written>(預期非空的參照 URL;跨文件參照的形狀必須是程式庫名稱加項目名稱;跨文件參照的版本分隔符是冒號——請使用更正後的值)
這些被記錄所屬的條件是 compactform: $ref unresolvable。
目標不存在。 參照讀起來正確,而程式庫或其中的項目不存在——或者根本沒有提供可供解析的程式庫目錄:
compactform at <consumer-document> (keyword "$ref"): SchemaLibrary <library> not found in catalog (referenced from <consumer-document>): <the value as written> > compactform at <consumer-document> (keyword "$ref"): entry <entry> not found in SchemaLibrary <library>: <the value as written> > compactform at <path-inside-the-schema>:<line> (keyword "$ref"): cross-document $ref but no SchemaLibrary catalog supplied: <the value as written>(在目錄中找不到該程式庫(參照自該使用端文件);在該程式庫中找不到該項目;是跨文件參照,但沒有提供程式庫目錄)
這些被記錄所屬的條件是 compactform: cross-document $ref target not found。
區分這兩者使報告可以採取行動:第一個是要在你正看著的文件中改寫的值,第二個是關於建置能看見什麼的問題。展開成自身的參照又是第三回事,並回報為上文的「A library reference expands into itself(程式庫參照展開後指向自身)」。
compactform at <consumer-document> (keyword "$ref"): cross-document $ref carries a registry host; reference the library by identity (use <Library>#/schemas/<Entry>): <the value as written>(跨文件參照帶有登錄庫主機;請以識別參照該程式庫)
而當它不能時,句子在值之後結束:
compactform at <consumer-document> (keyword "$ref"): cross-document $ref carries a registry host; reference the library by identity: <the value as written>(跨文件參照帶有登錄庫主機;請以識別參照該程式庫)
它被記錄所屬的條件是 compactform: cross-document $ref carries a registry host; reference the library by identity,這就是其簡短代碼所解析到的。
**修正方式:**去掉主機以及程式庫名稱之前的一切,留下 <Library>#/schemas/<Entry>。需要版本下限時,把它寫在程式庫名稱之後,如 :<version>。同樣的規則也管轄 Recipe 與 FeatureRecipe 上的 $import: 欄位,它們在下文「A library $import: addresses its library by registry location(以登錄庫位置定址程式庫的匯入)」之下另外回報。
$import: must be the only key when a schema is imported from a file.(從檔案匯入結構描述時,該指示詞必須是唯一的鍵。)指示詞與撰寫的結構描述內容共用同一個對應表。$import: 會取代整個值,因此同層的鍵沒有可以結合的對象。
$import: value must be a path to a file.(值必須是檔案的路徑。)值為空,或不是單一字串。
$import: takes a file path beside this entity, not a registry location <value>.(該指示詞只接受實體旁的檔案路徑,而不是登錄庫位置。)此值指向登錄庫。名稱經由哪個登錄庫解析屬於工作區設定,因此結構描述介面從不攜帶登錄庫;訊息會指名應改用的參照形式。
$import: takes a file path beside this entity; reference the SchemaLibrary entry <value> with $ref: instead.(該指示詞只接受實體旁的檔案路徑;請改以參照方式引用該 SchemaLibrary 項目。)此值指向程式庫項目。程式庫項目是被參照,而不是被匯入——$ref: 是解析它的關鍵字。
imported schema <value> must be a YAML map of schema content; it is not.(匯入的結構描述必須是結構描述內容的 YAML 對應表;但它不是。)檔案已找到、讀取並剖析,而剖析結果是純量或序列,因此沒有可供代入的結構描述內容。
格式正確、但指名了建置無法取得之檔案的指示詞,會在別處以不同的代碼回報。 無法解析的路徑、不存在或無法讀取的檔案,以及無法剖析為 YAML 的位元組,都不是你所撰寫內容的錯誤——沒有可供判斷的匯入文件——所以它們以其本身所屬的載入錯誤回報,見上文「A file cannot be read, or its bytes do not parse(檔案無法讀取,或其位元組無法剖析)」,該處記載了其中每一種所帶的子句。當你要攔截的是缺少或無法讀取的匯入檔案時,請比對該條件並記錄其代碼。
路徑會相對於存放實體檔案的目錄解析,與其他所有含匯入的欄位使用相同的基準。內容本身宣告了 $import: 的匯入會被繼續追蹤,而回到已在處理中的檔案的鏈,會回報為上文「A library reference expands into itself(程式庫參照展開成自身)」,而不是在此回報。寫在匯入帶入的檔案內的指示詞,會回報在該檔案及其中的那一行,因為修正應在那裡進行;寫在實體中的指示詞則回報在該實體。
a schema block declares a key that names no data pillar (<Kind><name>, rule schema-pillars, at .spec.schema.<key>). rename "<key>" to one of the pillar keys, or remove it and the contract beneath it; allowed: values, infra, provides. See vocabulary/data-pillars.md for the canonical pillar set.(結構描述區塊宣告了未指名任何資料支柱的鍵(規則 schema-pillars)。請將該鍵改名為支柱鍵之一,或將它及其下的契約移除;允許:values、infra、provides。標準支柱集合見 vocabulary/data-pillars.md。)
aggrega_parse_source: producer-consumption re-entry denied: a producer reached through the host may not issue a further producer-consumption call(aggrega_parse_source:生產端與使用端的重新進入被拒絕:透過主機觸及的生產端,不得再發出另一個生產端與使用端的呼叫)
<path>: artifact_cache_dir "<value>" names the workspace root itself; a catalog directory at the workspace root would then be stepped over as cache, leaving nothing to load — give the cache its own subdirectory (for example .aggrega/cache): workspace configuration is invalid(artifact_cache_dir 指名了工作區根目錄本身;工作區根目錄的目錄資料夾會被當成快取而略過,沒有任何東西可載入——請給快取專屬的子目錄:工作區設定無效)
無法使用的 signing.kinds 項目,它也會指出涵蓋所有種類的萬用字元:
<path>: signing.kinds entry "<kind>" is not a signable artifact kind; use a catalog entity or plugin kind, or "all" for every kind: workspace configuration is invalid(signing.kinds 項目不是可簽署的成品種類;請使用目錄實體或外掛程式種類,或以萬用字元代表所有種類:工作區設定無效)
寫成登錄庫位置的提供者繫結,它會指名項目、能力與應寫的形式:
<path>: plugins.providers[<n>] binds capability "<capability>" to "oci://<registry>/<repository>", which is where a plugin is published rather than which plugin it is; a provider binding names its plugin by its identity — write uri: provider/<name>, with an optional :<version>: workspace configuration is invalid(plugins.providers 項目把能力繫結到登錄庫位置,而那是外掛程式的發布處,不是它是哪個外掛程式;提供者繫結以外掛程式的身分指名它,並可加上選用的版本:工作區設定無效)
<path>: plugins.linter[<n>] names the entry function "<function>" but no plugin uri; an attachment on this list selects its plugin by uri, so this one attaches no plugin and "<function>" is never called — add the uri of the plugin that exports it: workspace configuration is invalid(plugins.linter 項目指名了進入點函式,但沒有外掛程式的 uri;此清單上的附加項目以 uri 選取其外掛程式,因此這一項不附加任何外掛程式,其函式也永遠不會被呼叫——請加上匯出該函式之外掛程式的 uri:工作區設定無效)
以其他寫法寫成的登錄庫主機,此處為 HUB.AGGREGA.AI:
<path>: default_registry "HUB.AGGREGA.AI" is not written as the registry host it names; write "hub.aggrega.ai" — lowercase, with no scheme, path, credentials or default port — which is the spelling that host’s trust policy is kept under: workspace configuration is invalid(default_registry 不是以其所指名的登錄庫主機的寫法寫成;請改寫——小寫,不含通訊協定、路徑、認證或預設連接埠——那是該主機的信任原則所保存之下的寫法:工作區設定無效)
<path>: default_registry "GHCR.io/acme" is not written as the registry location it names; write "ghcr.io/acme" — the registry host lowercase, with no scheme, credentials or default port, followed by the repository path — which keeps that host’s trust policy applying to it: workspace configuration is invalid(default_registry 不是以其所指名的登錄庫位置的寫法寫成;請改寫——登錄庫主機小寫,不含通訊協定、認證或預設連接埠,後接存放庫路徑——這樣才能讓該主機的信任原則繼續適用於它:工作區設定無效)
項目的名稱後接路徑,此處為 local/acme,其中名為 local 的項目對應 127.0.0.1:5000:
<path>: default_registry "local/acme" is the name of the registries entry "local" followed by a path, and an entry’s name stands for that entry’s host alone; write "local" to use the entry, or its host followed by the path, "127.0.0.1:5000/acme": workspace configuration is invalid(default_registry 是 registries 項目的名稱後接路徑,而項目的名稱只代表該項目的主機;請寫名稱以使用該項目,或寫其主機後接路徑:工作區設定無效)
不指名任何主機的值,其句子會列出主機可採取的形式:
<path>: registries[<n>].host "<value>" is not a registry host; write a lowercase host name containing a dot (registry.example.com), localhost, a single name followed by a port (registry:5000), or an IP address, an IPv6 one in brackets — each with an optional :port and nothing else: workspace configuration is invalid(registries 的 host 不是登錄庫主機;請寫含有一個點的小寫主機名稱、localhost、單一名稱後接連接埠,或 IP 位址(IPv6 位址放在方括號中)——每種都只可加選用的連接埠,不得有其他內容:工作區設定無效)
列出的目錄資料夾不存在時,它會指出檔案與行、清單、依所寫的項目,以及它解析到的路徑——清單是 workspace.catalog_dirs、workspace.catalog_dirs_append,或 Release 項目的清單,例如 `catalog_dirs` of the `workspace.releases` entry "release.yaml":
<path>:<line>: the `workspace.catalog_dirs` entry "<entry>" names <directory>, which does not exist; create that directory, or remove the entry: workspace configuration is invalid(workspace.catalog_dirs 項目所指名的目錄不存在;請建立該目錄,或移除該項目:工作區設定無效)
以及空的 workspace: 標記:
workspaceconfig: <path>: workspace must be a mapping; write workspace: {} to mark a workspace root with no catalog directories: workspace configuration is invalid(workspace 必須是對應表;請寫出空的對應表,以標示沒有任何目錄資料夾的工作區根目錄:工作區設定無效)
workspaceconfig: the <socket> socket is bound by capability "<capability>", but the cross-cutting sockets attach by uri: their plugin serves no capability, so a capability lookup matches nothing; attach it with uri: instead: a cross-cutting socket is bound by capability but attaches by uri(工作區設定:該插槽以能力繫結,但橫切插槽以 uri 附加:其外掛程式不提供任何能力,因此能力查找什麼也比對不到;請改以 uri 附加:橫切插槽以能力繫結,卻以 uri 附加)
提供者繫結上無作用的 function::
workspaceconfig: the provider socket binding for capability "<capability>" sets function:, but a provider drives a fixed set of phase-keyed exports rather than one selectable entry, so function: names nothing there; remove it: a provider socket binding sets a field with no referent on that socket(工作區設定:該能力的提供者插槽繫結設定了 function,但提供者驅動的是一組以階段為鍵的固定匯出,而不是某個可選取的項目,因此 function 在那裡不指名任何東西;請移除它:提供者插槽繫結設定了該插槽上沒有指涉對象的欄位)
以及無作用的 with:,它以相同形式回報,並指出設定應該屬於何處:
workspaceconfig: the provider socket binding for capability "<capability>" sets with:, but provider render configuration belongs in the Recipe, not the workspace provider binding; remove it: a provider socket binding sets a field with no referent on that socket(工作區設定:該能力的提供者插槽繫結設定了 with,但提供者的渲染設定屬於 Recipe,而不是工作區提供者繫結;請移除它:提供者插槽繫結設定了該插槽上沒有指涉對象的欄位)
workspaceconfig: capability "<capability>" is bound to more than one provider plugin; keep exactly one plugins.providers entry per capability: capability is bound to more than one provider plugin(工作區設定:能力被繫結到多個提供者外掛程式;每項能力只保留一個 plugins.providers 項目:能力被繫結到多個提供者外掛程式)
An importer is attached by more than one plugins.importer entry(一個匯入器被多個項目附加)
plugins.importer 項目附加其 uri 所指名的匯入器:當該匯入器公告了匯入所要求的格式時,項目決定它執行哪個版本,並把項目的 with.sources 與 with.settings 交給它。一個項目只對一個匯入器這樣做,因此第二個指名同一匯入器的項目——同一身分,相同版本或另一個版本——不會被任何東西讀取,其 with 也不會到達任何匯入器,卻不會有任何提示。無論哪個命令讀取它,設定都會在載入時被拒絕。
importer "<identity>" is attached by <key>[<position>] in <file> (uri "<uri>") and again by <key>[<position>] in <file> (uri "<uri>"); keep exactly one plugins.importer entry per importer, its uri naming the version you want: importer is attached by more than one plugins.importer entry(匯入器已由某處的項目附加,又被另一處的項目再次附加;請為每個匯入器只保留一個 plugins.importer 項目,其 uri 指名你要的版本:匯入器被多個 plugins.importer 項目附加)
修正方式: 為訊息所指名的匯入器保留一個項目——其 uri 指名你要的版本、並帶有你要交給該匯入器之 with 的那一個——並移除另一個。若兩者位於不同檔案,要編輯的是你所掌控的檔案:移除你的項目就是採用另一個檔案的,而保留你的項目則表示另一個檔案的項目必須移除。
A provider binding names a capability containing a colon(提供者繫結指名了含有冒號的能力)
the provider socket binding for capability "<capability>": a Recipe’s capability reference is read as the capability up to its last colon and a version pin after it, so the capability a binding names carries no colon; bind the capability name alone and let each Recipe pin the version it needs: a provider socket binding names a capability containing a colon, which no Recipe can select(該能力的提供者插槽繫結:Recipe 的能力參照被讀成直到最後一個冒號的能力,以及其後的版本固定,因此繫結所指名的能力不帶冒號;請只繫結能力名稱,並讓每個 Recipe 固定它所需的版本:提供者插槽繫結指名了含有冒號的能力,任何 Recipe 都無法選取它)
workspaceconfig: governance attachment "<uri>" declares no role; set role: to one of <the known roles>: a governance attachment declares no role or an unknown role(工作區設定:治理附加項目未宣告角色;請把角色設為已知角色之一:治理附加項目未宣告角色,或宣告了未知的角色)
以及無法辨識的角色:
workspaceconfig: governance attachment "<uri>" declares unknown role "<role>"; use one of <the known roles>: a governance attachment declares no role or an unknown role(工作區設定:治理附加項目宣告了未知的角色;請使用已知角色之一:治理附加項目未宣告角色,或宣告了未知的角色)
registry alias "<alias>" matches <count> hosts (<hosts>); address the registry by host or remove the duplicate alias: registry alias matches more than one host(登錄庫別名符合多個主機;請以主機指名登錄庫,或移除重複的別名:登錄庫別名符合多個主機)
…: lockfile: file failed schema validation; run aggrega pull --release <release> to write it again from the Release(……:鎖定檔:檔案未通過結構描述驗證;請執行 pull 以便從該 Release 再次寫入)
cyclic extends chain (<kind><name>, rule extends). <entity> extends <reference>, which is already in the chain; remove the extends on <entity>, or point it at an entity outside the chain(循環 extends 鏈(規則 extends)。該實體 extends 一個已在鏈中的參照;請移除該實體上的 extends,或讓它指向鏈外的實體)
Manifest mapping entry’s recipe spec.implements does not match the mapped component-type / feature-type key (Manifest mapping "<component-type>" -> "<recipe-uri>", recipe spec.implements is "<recipe-implements>", expected "<component-type>", or a type "<component-type>" extends)(Manifest 對應項目之配方的 spec.implements 與所對應的 component-type / feature-type 鍵不符(Manifest 對應;預期為所對應的型別,或該型別所擴充的型別))
Manifest mapping entry’s recipe spec.implements does not match the mapped component-type / feature-type key (Manifest, at .spec.components.<instance>, "<instance>", of type "<component-type>", compiled as "<component-type>:<version>", reached through Manifest mapping key "<key>", mapped to recipe "<recipe-uri>", whose spec.implements is "<recipe-implements>"). map this type at this version to a recipe that implements it, with a mapping key naming the version(Manifest 對應項目之配方的 spec.implements 與所對應的 component-type / feature-type 鍵不符(位於 Manifest 的實例路徑,該實例的型別,以某版本編譯,經由對應鍵到達,對應到某配方,其 spec.implements 為某值)。請將此型別在此版本對應到實作它的配方,並使用指名版本的對應鍵)
只有當實例的型別未指名版本時才會出現 compiled as 值;指名版本的實例會在 of type 中顯示其版本。指名實例自己版本的鍵不需要第二次判斷,因為對項目的檢查已經問過了,而已因其鍵被拒絕的項目只會回報一次,如上所述,而不是對每個實例再回報一次。aggrega build 與 aggrega pull 在此中止,而 aggrega validate --release 回報它並以非零結束。aggrega lint 判斷的是 Manifest 的對應項目,而不是它們所觸及的實例,因此它不會回報。
no version of a component or feature type satisfies every constraint declared on the instance (Release "<release>", at "<site>", instance "<instance>", type "<type>", written in "<file>", Manifest mapping key "<key>", written in "<file>", mapped to recipe "<recipe>", whose spec.implements is "<implements>", versions held "<versions>"). <remedy>(沒有任何元件或功能型別的版本滿足該實例上宣告的每個限制;括號內依序列出 Release、位置、實例、型別及其所在檔案、Manifest 對應鍵及其所在檔案、所對應的配方及其 spec.implements,以及所持有的版本,其後是補救方式)
補救方式以 , or 串接,先針對實例型別所寫入的每一種文件各列一次如何變更寫入型別處的版本,接著是對應:Release 所部署之 Aggregate 寫入的型別為 change the Aggregate's version;Release 宣告的附加項目為 change the Release's version;Aggregate 所納入之模組的實例為 include another version of the module that writes it,因為模組是已發布的,其實例所指名的版本只會隨模組的另一個版本而改變;最後是 map this type at a version its recipe implements,對於功能則為 its feature recipe implements。
no version of a component or feature type satisfies every constraint declared on the instance (Release "quickstart-web-local", at ".spec.components.web", instance "web", type "core/compute/server:1.0.0", written in "aggregate.yaml", Manifest mapping key "core/compute/server:1.1.0", written in "manifest.yaml", mapped to recipe "compose/server:2.0.0", whose spec.implements is "core/compute/server:1.1.0", versions held "1.0.0, 1.1.0"). change the Aggregate’s version, or map this type at a version its recipe implements(沒有任何元件或功能型別的版本滿足該實例上宣告的每個限制。變更 Aggregate 的版本,或以其配方所實作的版本對應此型別)
當所持有的版本是鎖定檔記錄的版本時,訊息會以 locked at "<version>", written in "<lockfile>" 取代 versions held 作為細節的結尾,補救方式則會加上 , or run `aggrega pull --release <release-file>` to lock the version every constraint admits。
malformed recipe reference in a Manifest mapping value: spec.mappings.components.type.<key> maps to <value>, which carries <n> slash-separated segments; a recipe reference accepts "name", "name:version", "capability/name" or "capability/name:version"; correct the mapping value in the Manifest(Manifest 對應值中的配方參照格式錯誤:該路徑對應到的值帶有以斜線分隔的區段;配方參照接受 name、name:version、capability/name 或 capability/name:version;請修正 Manifest 中的對應值)
malformed recipe reference in a Manifest mapping value: spec.mappings.components.type.<key> maps to <value>, which carries a version pin in its capability segment <segment>; a pin belongs on the capability the recipe declares, and a recipe reference names the recipe by its bare capability, as "name", "name:version", "capability/name" or "capability/name:version"; correct the mapping value in the Manifest(Manifest 對應值中的配方參照格式錯誤:該路徑對應到的值在其能力區段帶有版本固定;固定應放在配方所宣告的 capability 上,而配方參照以其裸能力名稱指名配方,形式為 name、name:version、capability/name 或 capability/name:version;請修正 Manifest 中的對應值)
你遇到的反而是針對 Manifest 沒有對應任何東西之實例的中止,而該中止會列出實作該型別的每個 Recipe,讓你可以固定其中一個——見下文「No Recipe is mapped for a component or feature instance(沒有為元件或功能實例對應配方)」。無論是一個 Recipe 還是五個實作該型別,它的回報方式都相同,所以沒有另外的歧義條件可供查找。
document envelope validation failed (Release, at <path>); <line>:<column>: spec.aggregate: value matches a shape that is not allowed here. correct the document to match its kind’s schema(文件封套驗證失敗(位於該路徑);行與欄:spec.aggregate:值符合此處不被允許的形狀。請修正文件以符合其種類的結構描述)
feature merge conflict: reconcile the Aggregate and Release declarations for the feature (Aggregate <name>, at .spec.components.<component>.features.<attachment>, "<aggregate-declared-type>", "<release-declared-type>")(功能合併衝突:請協調兩份文件對該功能的宣告(名稱、路徑,以及兩邊各自所宣告的型別))
連線所攜帶的附加項目也是如此。當 Aggregate 的連線項目與 Release 針對同一連線的項目,都在同一個槽位下寫了附加項目並指名不同的 Features 時,一旦組合被攤平,建置會在 Release 的項目——第二個型別寫入之處——中止,並指名兩個型別、槽位、連線、插槽與元件:
feature merge conflict: reconcile the Aggregate and Release declarations for the feature (Release <release-name>, at .spec.boundaries.<boundary>.components.<component>.uses.<socket>.<alias>, the Aggregate names "<aggregate-declared-type>", the Release names "<release-declared-type>", for the slot "<slot>", on the connection "<alias>", through socket "<socket>", of component "<component>"). Drop the type from the Release’s entry so it sizes the attachment the Aggregate declares, or name the same Feature in both documents.(功能合併衝突:請協調 Aggregate 與 Release 對該功能的宣告(Release、路徑,Aggregate 與 Release 各自指名的型別,針對的槽位、連線、插槽與元件)。請從 Release 的項目移除型別,使它為 Aggregate 所宣告的附加項目設定規格,或在兩份文件中指名相同的 Feature。)
annotation binding does not resolve against its target Feature (Manifest, at .spec.mappings.features.annotations.<key>, "<key>", routes to Feature "<feature-uri>", which this build’s catalog does not hold; correct or publish the Feature named under "feature")(Manifest 中的註記繫結無法對其目標 Feature 解析(位於路徑,該鍵路由到此建置的目錄所未持有的 Feature;請修正或發布所指名的 Feature))
發出的訊息(結構描述無法解析的變體):
annotation binding does not resolve against its target Feature (Manifest, annotation binding routes to Feature "<feature-uri>", whose declared schema does not resolve: <resolution failure>)(Manifest 中的註記繫結無法對其目標 Feature 解析(註記繫結路由到某 Feature,而其所宣告的結構描述無法解析))
annotation binding does not resolve against its target Feature (Manifest, at .spec.mappings.features.annotations.<key>, "<key>", routes to Feature "<feature-uri>", at pillar "<pillar>", and path "<path>", which that Feature does not declare a property for under "schema")(Manifest 中的註記繫結無法對其目標 Feature 解析(位於路徑,該鍵路由到某 Feature,位於某支柱與某路徑,而該 Feature 在結構描述之下並未為它宣告屬性))
修正方式: 確認繫結的 feature: URI 存在於目錄中,並與 Recipe 的 implements: 所用、區分大小寫的 URI 相符。若找不到路徑的變體在 Feature 結構描述確實宣告的路徑上觸發,請確認點分隔路徑的拼寫(區分大小寫)與支柱名稱(infra 對 values)。
A bound annotation value does not conform to the target Feature’s schema(繫結的註記值不符合目標 Feature 的結構描述)
annotation subkey does not conform to the target Feature’s schema at the routed pillar: annotation subkey <subkey> value <value> does not conform to Feature <feature-uri> spec.schema.<pillar>.<subkey>: <constraint failure>(註記子鍵不符合目標 Feature 在所路由支柱上的結構描述:註記子鍵的值不符合該 Feature 的結構描述)
發出的訊息(未宣告子鍵的變體):
annotation subkey does not conform to the target Feature’s schema at the routed pillar: annotation subkey <subkey> is not declared at Feature <feature-uri> spec.schema.<pillar>.<subkey>(註記子鍵不符合目標 Feature 在所路由支柱上的結構描述:註記子鍵未在該 Feature 的結構描述中宣告)
中止是在註記照所寫的樣子、展開成 Feature 附加項目之前引發的,旁邊的兩個條件也是如此:上文「A bound annotation value does not conform to the target Feature’s schema(繫結的註記值不符合目標 Feature 的結構描述)」會在 Feature 拒絕其值時,拒絕繫結所路由的子鍵,而下文「An annotation routes through a pillar its authoring side may not use(註記經由其撰寫側不得使用的支柱路由)」會拒絕經由錯誤支柱路由的子鍵。沒有任何繫結宣稱的鍵不是此條件:沒有東西路由它,建置會略過它。
發出的訊息,指名文件與註記被寫入之處、子鍵、註記鍵,以及繫結所路由的子鍵:
annotation subkey is not routed by the annotation’s binding (Release <release-name>, at .spec.boundaries.<boundary>.annotations, "<subkey>", written under annotation "<key>", whose binding routes only "<subkey>, <subkey>")(註記子鍵未被該註記的繫結路由(位於路徑,寫在某註記之下,而其繫結只路由所列的子鍵))
中止是在註記照所寫的樣子、展開成 Feature 附加項目之前引發的,旁邊的條件也是如此,因此診斷指名文件與值被寫入的位置。它針對你寫的每個註記詢問一次:寫在邊界或子系統上的值會在那裡被拒絕一次,無論其中的元件是否採用它。建置中每個這樣的值都會被回報,而不只是第一個。建置會把 Release 側註記回報在 OPS_ERROR 標記之下,Aggregate 側註記回報在 DEVELOPER_ERROR 標記之下,接在寫入它的文件之後。條件是 a scalar annotation value does not route to exactly one path of its binding,也就是 aggrega explain 為其代碼所印出的內容。
發出的訊息,指名文件與註記被寫入之處、註記鍵、值,以及繫結所路由的路徑:
a scalar annotation value does not route to exactly one path of its binding (Release <release-name>, at .spec.boundaries.<boundary>.annotations, "<key>", carrying the bare value "<value>", whose binding routes "<path>, <path>, <path>")(純量註記值未恰好路由到其繫結的一個路徑(位於路徑,該註記鍵帶有裸值,而其繫結路由所列的路徑))
An annotation routes through a pillar its authoring side may not use(註記經由其撰寫側不得使用的支柱路由)
註記依撰寫側劃分,而這個劃分與管轄其他所有已撰寫支柱的劃分相同:Aggregate 側註記只能透過目標為 values 的繫結路徑路由,而 Release 側註記只能透過目標為 infra 的路徑路由。任何其他配對都會中止。
這個劃分防止註記捷徑變成撰寫另一側支柱的方式。開發者的註記貢獻 values;操作員的貢獻 infra 規格。在兩個支柱中都宣告路徑的繫結本身不是錯誤——各側路由它被允許的子集,而另一側的路徑就是無法從它到達。
在兩個支柱清單中宣告同一個路徑的繫結,是最常到達此中止的情況。路由的平手裁決把這樣的路徑經由 infra 送出,使它無法從 Aggregate 側到達,而路由到它的 Aggregate 側註記會在此中止。在建置到達此中止之前就指出該繫結形狀的提示,描述於 warnings.md。
輸出的訊息:
annotation routes through a pillar its authoring side may not use: annotation <key> at <source> routes through pillar <pillar> at path <path>, but <side>-side annotations may only route through pillar <permitted-pillar>(註記經由其撰寫側不得使用的支柱路由:該註記經由某支柱與某路徑路由,但該側的註記只能經由被允許的支柱路由)
此檢查涵蓋標準的結構描述限制:型別錯誤的值(結構描述宣告整數之處卻是字串)、超出所宣告範圍或 enum 的值、未通過所宣告 pattern 的值、不是其所宣告 format 有效實例的字串——具名格式之一——以及未提供的必要欄位。格式失敗會指名關鍵字,並帶有值、格式與其問題所在——如 aggrega pull 與 aggrega validate --release 對給定 :::: 的 uri 欄位所印出的:"format", "value \"::::\" is not a valid uri: a URI begins with a scheme followed by a colon, such as https:"。它是感知預設值的:結構描述給了 default: 的欄位,即使被省略也視為已提供,因此帶預設值的必要欄位絕不會觸發「缺少」檢查。
authored pillar does not conform to its declared schema (Release probe, at .spec.boundaries.main.components.app.features.check.values.schema, values pillar does not conform to the Feature schema: missing required property: schema (required))
authored pillar does not conform to its declared schema (Aggregate <name>, at .spec.components.<component>.values.<field>, “values.<field>”, “<keyword>”, “<constraint failure>”) > authored pillar does not conform to its declared schema (Release <release-name>, at .spec.components.<component>.infra.<field>, “infra.<field>”, “<keyword>”, “<constraint failure>”) > authored pillar does not conform to its declared schema (Aggregate <name>, at .spec.components.<component>.features.<attachment>.values.<field>, values pillar does not conform to the Feature schema: <constraint failure>) > authored pillar does not conform to its declared schema (Release <release-name>, at .spec.boundaries.<boundary>.components.<component>.features.<attachment>.infra.<field>, infra pillar does not conform to the Feature schema: <constraint failure>) > authored pillar does not conform to its declared schema (Release <release-name>, at .spec.boundaries.<boundary>.features.<attachment>.values.<field>, values pillar does not conform to the Feature schema: <constraint failure>) > authored pillar does not conform to its declared schema (Aggregate <name>, at .spec.components.<component>.uses.<socket>.<alias>.values.<field>, “values.<field>”, “<keyword>”, “<constraint failure>”) > authored pillar does not conform to its declared schema (Aggregate <name>, at .spec.components.<component>.uses.<socket>.<alias>.features.<slot>.values.<field>, values pillar does not conform to the Feature schema: <constraint failure>) > authored pillar does not conform to its declared schema (Release <release-name>, at .spec.components.<component>.uses.<socket>.<alias>.features.<slot>.values.<field>, values pillar does not conform to the Feature schema: <constraint failure>) > authored pillar does not conform to its declared schema (Release <release-name>, at .spec.boundaries.<boundary>.components.<component>.uses.<socket>.<alias>.infra.<field>, “infra.<field>”, “<keyword>”, “<constraint failure>”)(撰寫的支柱不符合其宣告的結構描述)
authored pillar does not conform to its declared schema (Release quickstart-web-local, at .spec.components.web.infra.published_port, "infra.published_port", "additionalProperties", "unexpected property: \"published_port\"", declared by "core/compute/server:1.1.0", held at "1.0.0", Manifest mapping key "core/compute/server:1.0.0", written in "manifest.yaml", mapped to recipe "compose/server:1.0.0", whose spec.implements is "core/compute/server:1.0.0")
訊息帶有遇到失敗的工具所回報的失敗內容:編譯失敗時,是契約內的鍵、原始碼行號與出錯的關鍵字;建不出驗證器的本文,是驗證器拒絕的位置;支援範圍之外的格式名稱,則是欄位、關鍵字 format、照原樣撰寫的名稱,以及每個支援的名稱。插槽契約中的跨文件 $ref:,若其 SchemaLibrary 項目不在已載入的閉包中,則在 aggrega validate 檢查該實體或 Release 時會遇到同一個中止;在實體自己的 spec.schema 中,則依「A $ref: is not written in a form the compiler can resolve(未以編譯器可解析的形式撰寫的參照)」上文所述回報。aggrega pull 會讀取兩處以取得 Release 所需的程式庫,因此目錄中缺少的程式庫會讓 pull 更早停止,如「A reference names no entity the catalog holds(參照指名了目錄不持有的實體)」(E0114)所述,無論是哪一處參照它——而目錄持有的程式庫,兩種情況都會固定在鎖定檔中。
declared 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. Component "<type>:<version>": spec.usesSchema.<socket>.valueSchema declares a schema no validator can be built from, so the values it constrains would go unmeasured: compactform at <key>:<line> (keyword "<keyword>"): unknown keyword(宣告的結構描述契約無法編譯成可用的結構描述,因此沒有任何內容依它驗證:請在宣告處修正契約,或在其涵蓋的設定不需要驗證時移除它。Component 的插槽契約宣告了建不出任何驗證器的結構描述,所以它所限制的值會無從衡量:精簡形式:未知關鍵字)
並且是 Component 的 values 支柱中支援範圍之外的格式名稱:
declared 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. Component "<type>:<version>": spec.schema.values declares a schema no validator can be built from, so the values it constrains would go unmeasured: validator/jsonschema: schema resolution failed (at values.<field>, keyword "format", format "<format>" is not supported; the supported formats are email, uri, hostname, ipv4, ipv6, uuid, date-time, date)(宣告的結構描述契約無法編譯成可用的結構描述,因此沒有任何內容依它驗證:請在宣告處修正契約,或在其涵蓋的設定不需要驗證時移除它。Component 的值結構描述宣告了建不出任何驗證器的結構描述,所以它所限制的值會無從衡量:結構描述解析失敗,不支援該格式;支援的格式為 email、uri、hostname、ipv4、ipv6、uuid、date-time、date)
declared 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. SchemaLibrary "<library>": schema "<entry>" names a format no validator can check, so the values it constrains would go unmeasured: validator/jsonschema: schema resolution failed (at <field>, keyword "format", format "<format>" is not supported; the supported formats are email, uri, hostname, ipv4, ipv6, uuid, date-time, date)(宣告的結構描述契約無法編譯成可用的結構描述,因此沒有任何內容依它驗證:請在宣告處修正契約,或在其涵蓋的設定不需要驗證時移除它。該程式庫的結構描述指名了沒有驗證器能檢查的格式,所以它所限制的值會無從衡量:結構描述解析失敗,不支援該格式;支援的格式為 email、uri、hostname、ipv4、ipv6、uuid、date-time、date)
recipe source is an empty string, which names neither sourceless mode nor sourced mode (Recipe <name>:<version>, at .spec.source). omit the source field for sourceless mode, or name a non-empty path or URI for sourced mode(配方來源為空字串,既未指名無來源模式,也未指名有來源模式。無來源模式請省略來源欄位,有來源模式則指名非空的路徑或 URI)
同一個條件也涵蓋存在但無處可通的對應——在被接受的參照形狀上指名了目錄不持有之 Recipe 的值,包括以不同於該值所固定的版本存在者,以及其裸名被兩種能力同時提供者。兩者都解析不到可說是由作者所選擇的 Recipe。形狀無法由任何參照表達的對應值,則依上文「Manifest mapping value is not a shape a recipe reference accepts(Manifest 對應值不是配方參照所接受的形狀)」另行回報,所以某實體不存在這個說法只會針對本來可以解析的參照提出。
針對元件實例輸出的訊息。對應存在、但指名了不存在的東西時:
no recipe resolved for component/feature instance: add an explicit Manifest mapping for its type (Manifest, at .spec.components.<instance>, "<instance>", of type "<type>", mapped to recipe "<uri>"). correct the mapping value in the Manifest, or publish the recipe it names(沒有為元件/功能實例解析出配方:請為其型別新增明確的對應。請更正該對應值,或發布它所指名的配方)
沒有對應、但存在實作該型別的 Recipes 時,它們會被列為可供固定的候選:
no recipe resolved for component/feature instance: add an explicit Manifest mapping for its type (Manifest, at .spec.components.<instance>, "<instance>", of type "<type>", recipes implementing it "<recipe-uris>"). pin one of them in the Manifest(沒有為元件/功能實例解析出配方:請為其型別新增明確的對應。請從實作它的配方中固定一個)
而當完全沒有任何東西實作該型別時,就沒有可列出的項目:
no recipe resolved for component/feature instance: add an explicit Manifest mapping for its type (Manifest, at .spec.components.<instance>, "<instance>", of type "<type>"). no recipe in the catalog implements this type; write one, then map the type to it(沒有為元件/功能實例解析出配方:請為其型別新增明確的對應。目錄中沒有任何配方實作這個型別;請撰寫一個,再將型別對應到它)
no recipe resolved for component/feature instance: add an explicit Manifest mapping for its type (Manifest, at .spec.components.<instance>, "<instance>", of type "<type>"). no recipe the lockfile pins implements this type; with no catalog directory, the recipes searched are only those the lockfile pins, not a registry’s; pin one a registry publishes in the Manifest, or write one, then map the type to it(沒有為元件/功能實例解析出配方:請為其型別新增明確的對應。鎖定檔所固定的配方中沒有任何一個實作這個型別;在沒有目錄資料夾時,搜尋的配方只有鎖定檔所固定的,不包含登錄庫的;請固定登錄庫所發布的其中一個,或撰寫一個,再將型別對應到它)
功能實例以自己的形狀回報這些情況,各接在該條件的句子之後。Aggregate 寫成不帶版本的功能型別,會以與元件型別相同的方式比對,使用建置編譯時所用的版本——即該實例上宣告的每個限制都允許的最高版本——而指名 <type>:<version> 的訊息,指名的是該版本的型別,這正是目錄被搜尋的對象。當附加項目所屬元件所對應的 Recipe 已知時,FeatureRecipes 以該 Recipe 所繫結的能力來區分:繫結到元件之能力的會先被提供,而繫結到其他能力的 FeatureRecipe 仍會渲染,作為與元件並列的獨立輸出,而不是渲染進元件之中,所以當沒有任何一個繫結到元件的能力時,就改為提供這些。通往無處的對應會顯示為 feature "<instance>" (type "<type>"): the Manifest maps it to feature recipe "<uri>", which is not in the catalog。當有 FeatureRecipes 為元件的能力實作該型別時,只列出那些:feature "<instance>" (type "<type>"); feature recipes implementing it for capability "<capability>", the capability its component's Recipe binds to: [<recipe-uris>]; pin one in the Manifest。當它們只為其他能力實作時:feature "<instance>" (type "<type>"); no feature recipe in the catalog implements <type>:<version> for capability "<capability>", the capability its component's Recipe binds to; feature recipes implementing it for other capabilities: [<recipe-uris>]; pin one of those in the Manifest, and it renders as its own output beside the component's, or write one for "<capability>", then map the type to it。當完全沒有任何東西實作該型別時:feature "<instance>" (type "<type>"); no feature recipe in the catalog implements <type>:<version>; write one, then map the type to it。而當能力未知時——元件自己的對應解析不到任何 Recipe(這會另行回報),或附加項目寫在邊界上,其元件可能透過數種能力渲染——則列出每一個實作者:feature "<instance>" (type "<type>"); feature recipes implementing it: [<recipe-uris>]; pin one in the Manifest。在未指名任何目錄資料夾的工作區中,搜尋的 FeatureRecipes 只有鎖定檔所固定的那些:登錄庫的不會被列出,而未替該型別對應任何項目的 Manifest 也不會固定任何項目。在那裡,不存在的主張針對的是固定項目而不是目錄,並且會明說。當沒有任何東西實作該型別時:feature "<instance>" (type "<type>"); no feature recipe the lockfile pins implements <type>:<version> for capability "<capability>", the capability its component's Recipe binds to; with no catalog directory, the feature recipes searched are only those the lockfile pins, not a registry's; pin one a registry publishes in the Manifest, where one for another capability renders as its own output beside the component's, or write one for "<capability>", then map the type to it——而當能力未知時,訊息不指名任何能力,並以 pin one a registry publishes in the Manifest, or write one, then map the type to it 結尾。當已固定的 FeatureRecipes 只為其他能力實作時,該情況的訊息會以 no feature recipe the lockfile pins implements 取代 no feature recipe in the catalog implements,能力之後的子句相同。
a Manifest name mapping’s key names no component instance or attachment in this build, so the entry binds nothing: Manifest "<manifest>", key "<component>" under mappings.features.name: no attachment in this build is named "<component>"; a features.name key names an attachment by its own name — the key it is written under in a component’s features, or <alias>.<slot> for one written on a connection — never the component it is attached to; attachments of type "<feature-type>" in this build: "<attachments>"; "<component>" is a component, and a features.name key names the attachment rather than the component it is attached to — did you mean "<attachment>"?(名稱對應的鍵在這次建置中沒有指名任何元件實例或附加項目,所以該項目沒有繫結任何東西:該鍵不是這次建置中任何附加項目的名稱;它是元件的名稱,而這類鍵指名的是附加項目,而不是附加項目所屬的元件——你是不是指某個附加項目?)
而對於與某個實例名稱相差一次編輯的 components.name 鍵:
a Manifest name mapping’s key names no component instance or attachment in this build, so the entry binds nothing: Manifest "<manifest>", key "<key>" under mappings.components.name: no component instance in this build is named "<key>"; a components.name key names a component instance exactly as the Aggregate writes it; component instances of type "<component-type>" in this build: "<instances>"; did you mean "<instance>"?(名稱對應的鍵在這次建置中沒有指名任何元件實例或附加項目,所以該項目沒有繫結任何東西:這次建置中沒有任何元件實例叫這個名稱;這類鍵指名元件實例時,要與撰寫它的文件完全相同;你是不是指某個同型別的實例?)
每個指名不到任何東西的鍵,都會在同一次建置中依 Manifest 撰寫它們的順序一併回報。
如何修正: 將鍵改為訊息所建議的名稱,或它所列出的其中一個名稱——對附加項目而言,是它所寫在其下的名稱,而不是它所屬元件的名稱。若不再需要該項目,請移除它;該型別的實例屆時會改經 type 層級解析。
A Manifest maps two version-distinct keys onto one type(兩個版本不同的鍵被對應到同一個型別)
Manifest maps multiple version-distinct keys to the same base type; the type-to-recipe lookup is ambiguous: type "<type>" matches version-distinct keys [<keys>] — pin the authored type’s version or remove the duplicate mapping keys(Manifest 把多個版本不同的鍵對應到同一個基底型別;型別到配方的查詢有歧義:請固定所撰寫型別的版本,或移除重複的對應鍵)
工作區的成品快取以同樣方式受到約束,讀取時與寫入時一視同仁。 從 artifact_cache_dir 之下的快取讀取的一切——快取的實體、外掛程式或程式庫及其旁邊的資訊清單、來源封存檔及其中繼資料、固定的外部輸入、簽章組合包、登錄庫的本機搜尋索引——以及 aggrega cache status、aggrega cache prune 與 aggrega cache clear 所列出的每個工作區項目,都受到寫入快取時所受目錄的約束:快取目錄本身,無論是預設的 .aggrega/cache,還是設定所指名、爬出工作區根目錄的那一個。其中任何通往快取目錄之外的連結——無論是在工作區內的別處還是任何其他地方——都不會被讀取,寫在工作區根目錄內、本身是通往工作區之外之連結的快取目錄,其背後的一切也不會被讀取:建置、pull、驗證、搜尋、三個快取命令,以及讀取快取的編輯器與助理的請求,都會停止並指名該連結——包括快取以記錄的摘要保存的內容,因為摘要說明的是位元組是什麼,而不是它們可以從哪裡讀取。寫在工作區根目錄內、通往工作區內別處之連結的快取目錄,會在其通往之處被讀取。aggrega inspect 印出的棄用通知不做任何決定,所以不在此列。prune 或 clear 遇到快取自己的目錄中有通往快取目錄之外的連結,或快取目錄本身是通往工作區之外的連結時,會將其視為它會造成的移除,依「A path the operation writes leads through a link out of the directory it must stay inside(作業所寫入的路徑經由連結通往其必須留在內部的目錄之外)」處理,這發生在列出任何東西之前。這則訊息所指名的補救方式是快取自己的:移除連結後,pull 會再次填滿快取,而保存在別處的快取則以相對於工作區根目錄的 artifact_cache_dir 指名,而不是經由連結到達。
來源所擷取的存放庫,受到它自己的檢出約束。 當 pull——aggrega pull,或解析 Release 相依性的建置、編輯器或助理的請求——擷取 git-repository 來源時,它會檢出存放庫並封存來源所指名的目錄,而檢出是自己獨立的目錄:存放庫帶有的每個連結,包括 module_subdir 本身,都受到它的約束。通往存放庫內部之檔案或目錄的連結,會以它所指向的內容、在連結的名稱之下被封存。通往存放庫之外的連結——可能指向執行 pull 之機器上的任何檔案——不會被讀取:pull 停止並指名該連結及其通往之處,且不會快取任何東西。檢出是 pull 停止後即移除的暫存目錄,所以訊息以連結在存放庫中的位置指名它——chart/secret.txt,出現在命令列的第一行與句子中——並以來源所指名的存放庫與修訂版本指名它必須留在其內的目錄:which must stay inside the repository <url> at <ref> (commit <commit>),或在來源未指名 ref 或直接指名提交時使用 at commit <commit>。連結通往之處,會以它在你機器上的位置指名。這則訊息所指名的補救方式是存放庫自己的:連結是在那裡提交的,所以要在那裡修改——使其指向存放庫內部,或以檔案本身取代——然後來源再指名帶有該變更的修訂版本。通往目錄的連結若繞回封存已經透過它在讀取的目錄,也會讓 pull 停止,因為它所代表的樹沒有盡頭;該拒絕是一般錯誤,而不是這個條件。
a file this operation reads leads through a link out of the directory it must stay inside (reading <workspace>/catalog-local/component/app/1.0.0/component.yaml, which must stay inside <workspace>, the link <workspace>/catalog-local/component/app/1.0.0/component.yaml leads to <elsewhere>/component.yaml). nothing was read through that link. Remove the link, or make it lead to a place inside <workspace>. To read what is kept outside, list the directory holding it as a catalog directory in the workspace configuration, rather than reaching it through a link beneath one: a listed directory is read where it leads, even when it is itself a link(這項作業所讀取的檔案經由連結通往其必須留在內部的目錄之外。沒有任何東西是經由該連結讀取的。請移除連結,或使其通往工作區內的位置。若要讀取保存在外部的內容,請在工作區設定中把持有它的目錄列為目錄資料夾,而不是經由其下的連結到達它:被列出的目錄會在其通往之處被讀取,即使它本身是連結)
名稱而不是路徑,在此不做判斷——aggregate: payments、extends: base-manifest。它會在 Release 旁邊的文件之間查詢,對於 Aggregate 則在目錄資料夾中查詢,而這些受上文「A file the operation reads leads through a link out of the directory it must stay inside(作業所讀取的檔案經由連結通往其必須留在內部的目錄之外)」中的規則約束。
a reference a document makes to another file leads out of the directory it must stay inside (.spec.aggregate: ../shared/app.yaml, resolved from <workspace>, which leads to <elsewhere>/shared/app.yaml, outside the workspace <workspace>). nothing was read from that file. A document in the workspace reaches only files inside <workspace>: move the file there — or, where a link carries the reference out, make the link lead there — or open the workspace at a directory holding both documents. An Aggregate kept outside that directory is reached by its name rather than a path, from a catalog directory the workspace configuration lists(文件對另一個檔案的參照通往其必須留在內部的目錄之外。沒有從該檔案讀取任何東西。工作區中的文件只能到達工作區內的檔案:請把檔案移到那裡——或者,若有連結將參照帶出去,則使連結通往那裡——或在持有兩份文件的目錄開啟工作區。保存在該目錄之外的實體,是以名稱而不是路徑,從工作區設定所列出的目錄資料夾到達)
a reference a document makes to another file leads out of the directory it must stay inside (.spec.aggregate: ../aggregates/app.yaml, resolved from <directory>, which leads to <parent>/aggregates/app.yaml, outside <directory>, the directory of a document named outside the workspace <workspace>). nothing was read from that file. A Release or a Manifest named outside the workspace — on the command line, or by the workspace configuration — reaches only files inside its own directory <directory>: move the file there — or, where a link carries the reference out, make the link lead there — or name the document from a workspace holding both documents. An Aggregate kept outside that directory is reached by its name rather than a path, from a catalog directory the workspace configuration lists(文件對另一個檔案的參照通往其必須留在內部的目錄之外。沒有從該檔案讀取任何東西。在工作區之外被指名的文件,只能到達它自己目錄內的檔案:請把檔案移到那裡——或者,若有連結將參照帶出去,則使連結通往那裡——或從持有兩份文件的工作區指名該文件。保存在該目錄之外的實體,是以名稱而不是路徑,從工作區設定所列出的目錄資料夾到達)
對於 extends: 或參數的 $import:,在參照之後會加上 written in <document>,而在連結將路徑帶出去之處,結尾會加上 the link <link> leads to <place>。aggregate: 或 manifest: 參照不指名任何文件:擴充另一個的 Release 可能是從鏈上更上層的 Release 繼承了它,而無論哪種情況,它都是在命令所指名的 Release 旁邊解析。
no catalog version satisfies the referenced version constraint: entity "<reference>" (referenced from <referring paths>)(沒有任何目錄版本滿足所參照的版本限制:實體被參照於所列的路徑)
輸出的訊息,針對 extends: 指標上的固定:
no catalog version satisfies the referenced version constraint (Component <name>, at .extends, no catalog version satisfies extends parent "<reference>")(沒有任何目錄版本滿足所參照的版本限制:沒有任何目錄版本滿足 Component 擴充的父項)
它回報在解析失敗的參照所回報之處,所以格式錯誤的固定從不改變哪些參照能解析——它只改變失敗所說的內容。格式正確但沒有任何可用版本能滿足的固定,保有該介面為它所回報的條件:上文的「No catalog version satisfies a version constraint(沒有任何目錄版本滿足版本限制)」,或它所寫之介面的找不到條件。
reference carries a malformed version pin (reference "<reference>", pin "<pin>", the text after ^ is not a version range, referenced from <authored location>). write the reference as , as : with a semantic version such as 1.0.0, or as :^ for the highest version compatible with it(參照帶有格式錯誤的版本固定:^ 之後的文字不是版本範圍。請將參照寫成僅名稱、名稱加上語意化版本,或名稱加上插入符號與版本以取得與其相容的最高版本)
精確固定會以 an exact pin must be a semantic version 取代插入符號的子句。其後的值說明參照寫在哪裡,用的是回報它的介面的用語——referenced from 與撰寫位置、in the Release's spec.aggregate,或 in the recipe's spec.implements。當 Manifest 對應是對照其 Recipe 的 implements: 來判斷時,對應項目與固定在它的哪一側——in the mapping key 或 in the recipe's spec.implements——會改放在參照之前,而 Component 或 Feature 的 extends: 則在它之前指名擴充的實體與欄位。
如何修正: 以兩種形式之一重寫固定,或移除它以選取可用的最高版本。萬用字元如 1.x 要寫成插入符號固定,^1.0.0;帶有前導 v 或少於三個數字的版本要寫完整,1.0.0。
Every version a reference could select has been withdrawn(參照可選取的每個版本都已撤回)
every published version this reference could select has been withdrawn: <reference>: withdrawn: <version> (<recorded reason>), <version> (<recorded reason>)(這個參照可選取的每個已發布版本都已撤回:列出各撤回版本及其記錄的原因)
無論有沒有 Recipe 要求該能力,它都會被判斷。 除此之外,繫結只有在 Recipe 的 capability: 指名它時才會被讀取,所以能力拼錯的繫結不會被任何東西查詢,也不會被任何東西回報。因此每次建置與每次 aggrega validate --release,都會檢查每個指名了外掛程式的繫結:pull 無論有沒有 Recipe 使用它都會解析這樣的繫結,所以建置持有該外掛程式並知道它提供什麼,而該外掛程式不提供的能力肯定是錯的。檢查讀取的是工作區設定中的繫結,而不是鎖定檔,它也完全不改變由哪個外掛程式渲染 Recipe——那仍由鎖定檔決定。繫結指名了建置不持有的外掛程式——尚未有任何 pull 擷取的登錄庫外掛程式——在 pull 擷取它之前不會被判斷。未指名外掛程式的繫結,則以不同方式判斷,作為提示:見下文「Conditions that do not halt a build(不會中止建置的條件)」之下的「A provider binding names a capability no plugin the build reads serves(提供者繫結指名了建置所讀取的外掛程式都不服務的能力)」。
plugins.providers entry names a plugin no provider-rendering plugin serving the capability matches: capability "<capability>" is bound to plugin "<plugin-identity>", but no provider-rendering plugin serving "<capability>" matches that identity; "<plugin-identity>" serves "<served capability>", and "<capability>" is one edit from "<served capability>"(項目指名了沒有任何提供該能力的提供者渲染外掛程式相符的外掛程式:該能力被繫結到某個外掛程式,但沒有任何提供該能力的提供者渲染外掛程式符合該身分;該外掛程式提供另一個能力,而所繫結的能力與它只差一次編輯)
當繫結所指名的外掛程式不在建置所讀取的目錄中,訊息會在「matches that identity」之後結束,因為沒有什麼可說明它提供什麼。
no provider-rendering plugin version satisfies the recipe’s provider version pin: capability "<capability>" pins "<version>" but no provider-rendering plugin serves it > no provider-rendering plugin version satisfies the recipe’s provider version pin: capability "<capability>" pins "<version>" but no serving plugin version satisfies it(沒有任何提供者渲染外掛程式版本滿足配方的提供者版本固定:該能力固定了某個版本,但沒有任何提供者渲染外掛程式提供它/沒有任何提供它的外掛程式版本滿足它)
no parser plugin advertises the requested format: no parser plugin advertises "parse:<format>" > no importer plugin advertises the requested format: no importer plugin advertises "import:<format>"(沒有任何解析器外掛程式公告所請求的格式/沒有任何匯入器外掛程式公告所請求的格式)
no parser plugin advertises the requested format: no parser plugin version resolves for "parse:<format>"(沒有任何解析器外掛程式公告所請求的格式:沒有任何解析器外掛程式版本可解析)
解析會退回到編譯器自帶的解析器。 建置會解析它交給 render-verdict 原則的每個檔案,若其格式是該原則不原生讀取的;匯入器透過它所指名之語法的解析器讀取其來源;而未指名格式的匯入,則以每個適用簽章所指名的語法解析來源。對每種語法,會使用工作區的目錄所提供的解析器,而在目錄沒有提供任何解析器時,則使用編譯器自己為它帶的解析器——其中包括建置用來讀取 Terraform 輸出的 HCL 解析器,以及編譯器的核心匯入器用來讀取的 JSON 解析器,所以無論是針對 Terraform 輸出的原則,還是透過核心匯入器的匯入,都不需要目錄中有解析器。當目錄確實為某種語法提供了解析器時,編譯器自己的就不起任何作用,而目錄中兩個名稱不同的解析器會被拒絕,如A parse or import format is advertised by more than one plugin(解析或匯入格式被多個外掛程式公告)所述。所以這個中止指名的是目錄與編譯器都沒有提供解析器的語法。
format is advertised by more than one parser plugin: format "<format>" is advertised by parser plugins [<plugin-names>] > format is advertised by more than one importer plugin: format "<format>" is advertised by importer plugins [<plugin-names>](格式被多個解析器外掛程式公告:該格式由所列的解析器外掛程式公告/格式被多個匯入器外掛程式公告:該格式由所列的匯入器外掛程式公告)
如何修正: 對於匯入器,請把兩者都保留在目錄中——或把你的保留在核心匯入器旁邊——並附加你要的那一個:plugins.importer 項目,其 uri 以身分與版本指名它,uri: importer/<name>:<version>,如 aggrega plugin add importer 所寫的。被附加的匯入器是在公告該格式的匯入器之中選出的,就像 plugins.providers 項目在提供者插槽上提供某能力的外掛程式之中選擇,說明於下文「A capability is served by more than one provider plugin(能力由多個提供者外掛程式提供)」。若被指名的匯入器是你的項目所附加的,請保留你要的那一個的項目並移除另一個。解析插槽沒有這樣的選擇,所以對解析器而言,補救方式是縮小建置所讀取的目錄,使其中只有你要的外掛程式——將 --catalog 指向持有你的選擇的目錄是最直接的方式。
A plugins.importer entry pins a version of its importer the catalog does not hold(plugins.importer 項目固定了目錄中不存在的匯入器版本)
這與前述「沒有任何匯入器公告該格式」的情況不同:此處的匯入器屬於匯入所選擇的範圍,也公告了該格式,只是項目所指名的版本不存在。若固定版本不屬於版本固定所採用的任何形式,例如 :latest,則會改以格式錯誤回報,如「A version pin is none of the forms a pin takes(版本固定不屬於固定所採用的任何形式)」所述。
所發出的訊息,指名格式的能力與項目所固定的版本:
no importer plugin version satisfies the plugins.importer entry’s version pin: capability "import:<format>" pins "<version>" but no serving plugin version satisfies it(沒有任何匯入器外掛程式版本滿足 plugins.importer 項目的版本固定:該能力固定了某個版本,但沒有任何提供服務的外掛程式版本滿足它)
修正方式: 將項目 uri 中的版本改為目錄所持有的版本(對核心匯入器而言,編譯器自身的版本也算在內),或放寬範圍,或將項目所指名的版本加入目錄。插入符範圍會比對其下限以上、且主版本相同的版本,因此 ^2.0.0 不會被 1.x 匯入器滿足,無論它多新。
A plugin reference carries a registry host or an artifact path(外掛程式參照帶有登錄庫主機或成品路徑)
Plugin 參照以類似登錄庫主機的區段開頭(含有點號或冒號的區段,如 DNS 名稱或主機加連接埠),或以成品路徑開頭。Plugin 是以其座標身分定址:它的外掛程式類型、一個斜線、它的名稱,以及選擇性的版本。pull 會在前面加上所設定的登錄庫與外掛程式路徑本身,把該身分繫結到實際位置,因此已經帶有其中之一的參照會被加上兩次前綴,繫結到無法擷取的位置。
catalog: tier-3 pull <uri>: wasm plugin reference must be the plugin coordinate identity (<pluginType>/<name>:<version>), not a registry-qualified or artifact path: "<identity>" > remediation: remove the registry host and the artifact path, leaving the coordinate alone — <pluginType>/<name>:<version>, for example provider/helm:1.0.0; the pull prefixes the configured registry itself, so a reference that already carries one is prefixed twice(目錄:第 3 層 pull:wasm 外掛程式參照必須是外掛程式座標身分,而不是帶有登錄庫或成品路徑的參照。補救:移除登錄庫主機與成品路徑,只留下座標;pull 會自行加上所設定的登錄庫前綴,因此已經帶有登錄庫的參照會被加上兩次前綴)
catalog: tier-3 pull <uri>: wasm plugin reference must carry a pluginType scope (<pluginType>/<name>); an empty scope cannot bind to an OCI location: "<identity>" > remediation: add the missing pluginType segment — write the reference as <pluginType>/<name>, for example provider/helm or governance/redact, using the pluginType the plugin entity declares under metadata.pluginType(目錄:tier-3 pull:wasm 外掛程式參照必須帶有 pluginType 範圍,空範圍無法繫結到 OCI 位置。補救:補上缺少的 pluginType 區段,使用外掛程式實體所宣告的 pluginType 來撰寫參照)
catalog: tier-3 pull <uri>: recipe reference must be provider-scoped (<provider>/<name>); an empty provider cannot bind to an OCI location: "<identity>" > remediation: no local catalog directory held this reference, so it was looked for in the registry, where a provider segment is required; re-run as aggrega pull --release <release> --catalog <dir> so the directory that holds it is searched first (--catalog is repeatable)(目錄:第 3 層 pull:配方參照必須以提供者為範圍,空的提供者無法繫結到 OCI 位置。補救:沒有任何本機目錄持有這個參照,所以改在登錄庫中查找,而登錄庫需要提供者區段;請重新執行,使持有它的目錄先被搜尋,此旗標可重複使用)
deprecation: <reference> is retracted: <the publisher's recorded message> (recorded in the lockfile at pull, as of <when>; re-run `aggrega pull` to refresh it)
deprecation: build consumes a deprecated entity: <reference> is retracted: <the publisher's recorded message> (recorded in the lockfile at pull, as of <when>; re-run aggrega pull to refresh it): halt_on_deprecated_severity is "error"(棄用:建置使用了已棄用的實體,該參照已撤回,並附上發布者所記錄的訊息,記錄於 pull 時寫入鎖定檔,重新執行 pull 以更新;halt_on_deprecated_severity 為指定值)
resolve cached plugin "<plugin-identity>": the digest recorded as trusted for it is <recorded-digest>, but the plugin manifest in the content cache reports <cached-digest>; review what changed and re-record the trusted digest, or restore the recorded artifact: the digest recorded as trusted for this plugin does not match the digest its cached manifest reports(解析快取的外掛程式:為它記錄為受信任的摘要,與內容快取中外掛程式資訊清單所回報的摘要不同;請檢視變更了什麼並重新記錄受信任的摘要,或還原所記錄的成品:為此外掛程式記錄為受信任的摘要,與其快取資訊清單所回報的摘要不相符)
inheritance merge failed (Component <name>, at .spec.extends, <entity> extends <reference>, which no catalog entity provides). Verify the extends reference names an entity present in the catalog(繼承合併失敗:某個 Component 擴充了某個參照,而沒有任何目錄實體提供它。請確認 extends 參照所指名的實體存在於目錄中)
當回報它的檢查,是在鎖定檔的固定下從成品快取讀取父項時(建置的 extends 檢查、aggrega validate --release、對整個目錄執行的 aggrega validate,以及 aggrega inspect,還有從編輯器與助理的驗證工具執行的相同檢查),建議會進一步指名 pull:「a base published to a registry is fetched by aggrega pull --release <release>」。驗證單一實體檔案不會讀取鎖定檔,所以 pull 不會改變它所讀取的任何內容,其訊息就停在目錄這一層。
inheritance merge failed (Manifest <name>, at .spec.extends, <entity> extends <reference>, which could not be resolved: <what looking produced>). Verify the extends reference is a relative path or the name of a Manifest in the Release’s directory(繼承合併失敗:某個 Manifest 擴充了某個參照,而該參照無法解析,並附上查找所產生的結果。請確認 extends 參照是相對路徑,或 Release 目錄中某個 Manifest 的名稱)
inheritance merge failed (Release <name>, at .spec.extends, <entity> extends <reference>, which could not be resolved: <what looking produced>). Verify the extends reference is a relative path to a Release file, such as ./base-release.yaml, resolved from the directory holding this Release(繼承合併失敗:某個 Release 擴充了某個參照,而該參照無法解析,並附上查找所產生的結果。請確認 extends 參照是通往 Release 檔案的相對路徑,例如 ./base-release.yaml,並從持有此 Release 的目錄解析)
extends chain exceeds maximum depth (Component <name>, rule extends). the bound is 10 and this chain reaches <length>; shorten the chain, or extend a base that sits closer to its root(extends 鏈超出最大深度:上限為 10,而此鏈達到了某個長度;請縮短鏈,或擴充較接近其根部的基底)
assertion name declared twice across the extends chain (Component <name>:<version>, rule assertions, at .spec.assertions.<key>). assertion "<key>" is already declared by the base Component "<base>", carrying a different rule; rename the extending entity’s assertion; an extending entity’s assertions add to the base’s and never replace one(斷言名稱在 extends 鏈上被宣告兩次:該斷言已由基底 Component 宣告,且帶有不同的規則;請重新命名擴充實體的斷言;擴充實體的斷言是加在基底的斷言之上,絕不會取代其中任何一個)
release extends chain composes both named boundaries and top-level components: declare one routing shape across the chain, never both (Release <release-file>, boundaries declared by "<file>", components declared by "<file>")(Release 的 extends 鏈同時組合了具名邊界與頂層元件:請在整條鏈上宣告一種路由形狀,絕不要兩者並用)
externalinputs: "<url>": plain http is allowed for loopback hosts only (allowed schemes: https, http to a loopback host, oci): externalinputs: URL scheme is not allowed > externalinputs: "<url>": scheme "<scheme>" is not allowed (allowed schemes: https, http to a loopback host, oci): externalinputs: URL scheme is not allowed(外部輸入:純 http 只允許用於回送主機,允許的通訊協定為 https、指向回送主機的 http,以及 oci;外部輸入:不允許該 URL 通訊協定。另一則:該通訊協定不被允許)
"<url>" is not pinned in the lockfile; run aggrega pull --release <release> to pin every external input this Release’s render consumes, then build again: externalinputs: acquisition is disabled for unpinned inputs(該 URL 未在鎖定檔中固定;請執行 pull 以固定此 Release 的渲染所使用的每個外部輸入,然後再次建置:外部輸入:未固定的輸入已停用取得)
externalinputs: "<url>": store blob sha256 is <digest>, pinned digest is <digest>: externalinputs: store blob mismatches its pinned record > externalinputs: "<url>": store blob sha256/<digest> is <n> bytes but the pinned record says <n>: externalinputs: store blob mismatches its pinned record(外部輸入:儲存區 blob 的 sha256 與固定的摘要不同;外部輸入:儲存區 blob 與其固定的記錄不符。另一則:儲存區 blob 的位元組數與固定的記錄所載不同)
the compiler’s own views of the catalog disagree (internal error: this build resolved a component type that the catalog it reads then held no entry for. This is a fault in the compiler rather than in an authored document, so there is nothing to correct in the Aggregate, the Release or the catalog. Please report it, naming the command that produced this build and the type the views disagree on: "<type>")(編譯器自身對目錄的檢視不一致:內部錯誤。這是編譯器的錯誤,而不是撰寫的文件的錯誤,因此 Aggregate、Release 或目錄中沒有任何需要更正之處。請回報,並指名產生此建置的命令,以及檢視不一致的型別)
annotation-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: injection targets boundary "<boundary>" component "<component>" (annotation "<key>") > annotation-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: injection for boundary "<boundary>" component "<component>" (annotation "<key>") carries a list; an injected annotation value is a string or an object of subkeys(註記轉換外掛程式的輸出遭拒絕:注入指向主機未提供的元件座標,或帶有不是字串或子鍵物件的值:注入指向某個邊界與元件。另一則:該注入帶有清單;注入的註記值是字串或子鍵的物件)
plugin reference is not a Plugin entity: "<reference>" is a filesystem path, but a pipeline plugin must be a plugin-type-scoped Plugin entity URI (<pluginType>/<name>, optionally versioned, as in parser/yaml or parser/yaml:1.0.0)(外掛程式參照不是 Plugin 實體:該參照是檔案系統路徑,但管線外掛程式必須是以外掛程式類型為範圍的 Plugin 實體 URI)
成品參照:
plugin reference is not a Plugin entity: "<reference>" is an artifact reference (an oci:// scheme, a bare .wasm, or an @sha256: digest), but a pipeline plugin must be a plugin-type-scoped Plugin entity URI (<pluginType>/<name>, optionally versioned, as in parser/yaml or parser/yaml:1.0.0)(外掛程式參照不是 Plugin 實體:該參照是成品參照,但管線外掛程式必須是以外掛程式類型為範圍的 Plugin 實體 URI)
沒有任何東西持有的 Plugin 實體 URI:
plugin reference is not a Plugin entity: "<reference>" is a Plugin entity URI, but no catalog directory holds the entity it names, the binary does not carry it, and no pull has fetched it into the content cache; place the Plugin entity in a catalog directory, or publish it to a registry and run aggrega pull(外掛程式參照不是 Plugin 實體:該參照是 Plugin 實體 URI,但沒有任何目錄資料夾持有它所指名的實體,二進位檔沒有攜帶它,也沒有任何 pull 把它擷取到內容快取中;請把 Plugin 實體放在目錄資料夾中,或將它發布到登錄庫並執行 pull)
以及任何其他不指名實體的參照:沒有外掛程式類型範圍、版本之前有多個 /,或帶有登錄庫主機的參照:
plugin reference is not a Plugin entity: "<reference>" must be a plugin-type-scoped Plugin entity URI (<pluginType>/<name>, optionally versioned, as in parser/yaml or parser/yaml:1.0.0); a bare .wasm reference or an artifact reference names no Plugin entity(外掛程式參照不是 Plugin 實體:該參照必須是以外掛程式類型為範圍的 Plugin 實體 URI;單純的參照或成品參照不會指名任何 Plugin 實體)
artifact "<reference>": cached signature bundle <path> is unreadable: cached signature bundle does not match its recorded digest. remediation: run aggrega pull --release <release> to verify the artifact’s signature at its registry again, record it in <file> and cache the bundle it names(成品:快取的簽章組合包無法讀取:快取的簽章組合包與其記錄的摘要不符。補救:執行 pull,在登錄庫再次驗證成品的簽章,將它記錄在檔案中,並快取它所指名的組合包)
以及發生偏離時:
artifact "<reference>": cached signature bundle <path> has digest <actual>, recorded digest is <recorded>: cached signature bundle does not match its recorded digest. remediation: run aggrega pull --release <release> to verify the artifact’s signature at its registry again, record it in <file> and cache the bundle it names(成品:快取的簽章組合包有某個摘要,而記錄的摘要是另一個:快取的簽章組合包與其記錄的摘要不符。補救:執行 pull,在登錄庫再次驗證成品的簽章,將它記錄在檔案中,並快取它所指名的組合包)
以及當外掛程式的位元組從內容快取載入時,同時指名它們來自何處:
plugin "<reference>" resolved from <source>: cached signature bundle <path> is unreadable: cached signature bundle does not match its recorded digest. remediation: run aggrega pull --release <release> to verify the artifact’s signature at its registry again, record it in <file> and cache the bundle it names(外掛程式從某個來源解析:快取的簽章組合包無法讀取:快取的簽章組合包與其記錄的摘要不符。補救:執行 pull,在登錄庫再次驗證成品的簽章,將它記錄在檔案中,並快取它所指名的組合包)
plugin "<reference>" resolved from <source>: cached signature bundle <path> has digest <actual>, recorded digest is <recorded>: cached signature bundle does not match its recorded digest. remediation: run aggrega pull --release <release> to verify the artifact’s signature at its registry again, record it in <file> and cache the bundle it names(外掛程式從某個來源解析:快取的簽章組合包有某個摘要,而記錄的摘要是另一個:快取的簽章組合包與其記錄的摘要不符。補救:執行 pull,在登錄庫再次驗證成品的簽章,將它記錄在檔案中,並快取它所指名的組合包)
verify: "<reference>" records a signature a build does not accept, and no registry is configured to ask about it again: cached signature bundle <path> is unreadable: cached signature bundle does not match its recorded digest(驗證:該參照記錄了建置不接受的簽章,而且沒有設定任何登錄庫可再次詢問它:快取的簽章組合包無法讀取:快取的簽章組合包與其記錄的摘要不符)
artifact "<reference>": signing: the recorded signature was made for a different artifact (<file> records it, cached signature bundle <path>, the artifact read has manifest <manifest-digest>). remediation: run aggrega pull --release <release> to verify the artifact’s signature at its registry again, record it in <file> and cache the bundle it names(成品:簽署:所記錄的簽章是為不同的成品製作的。補救:執行 pull,在登錄庫再次驗證成品的簽章,將它記錄在檔案中,並快取它所指名的組合包)
以及當外掛程式的位元組被載入時,同時指名它們來自何處:
plugin "<reference>" resolved from <source>: signing: the recorded signature was made for a different artifact (<file> records it, cached signature bundle <path>, the artifact read has manifest <manifest-digest>). remediation: run aggrega pull --release <release> to verify the artifact’s signature at its registry again, record it in <file> and cache the bundle it names(外掛程式從某個來源解析:簽署:所記錄的簽章是為不同的成品製作的。補救:執行 pull,在登錄庫再次驗證成品的簽章,將它記錄在檔案中,並快取它所指名的組合包)
verify: "<reference>" records a signature a build does not accept, and no registry is configured to ask about it again: signing: the recorded signature was made for a different artifact (cached signature bundle <path>, the artifact read has manifest <manifest-digest>)(驗證:該參照記錄了建置不接受的簽章,而且沒有設定任何登錄庫可再次詢問它:簽署:所記錄的簽章是為不同的成品製作的)
signing: no verified signature is recorded for an artifact that requires one ("<reference>", <lockfile-path> records no signature for it, required by <the settings that require it>). remediation: run aggrega pull --release <release> to verify the artifact’s signature at its registry and record it in <lockfile-path>(簽署:需要簽章的成品沒有記錄任何已驗證的簽章。補救:執行 pull,在登錄庫驗證成品的簽章,並將它記錄在鎖定檔中)
以及對以判定角色附加的外掛程式,指名它的記錄:
signing: no verified signature is recorded for an artifact that requires one ("<plugin>", <record-path> records no signature for it, required by <the settings that require it>). remediation: run aggrega pull --release <release> to verify the plugin’s signature at its registry and record it in <record-path>(簽署:需要簽章的成品沒有記錄任何已驗證的簽章。補救:執行 pull,在登錄庫驗證外掛程式的簽章,並將它記錄在記錄檔中)
設定是以設定檔自己的用語來指名: `signing.required` at the top level of the workspace configuration、 `signing.required` on the `registries` entry for "<host>",或 the official hub's built-in signature requirement for "hub.aggrega.ai",在不只一個適用時會合併列出。
signing: a recorded signature is not the one a pull would record ("<reference>", <file> records <signature>, a pull would record <signature>). remediation: run aggrega pull --release <release> to bring <file> up to date(簽署:所記錄的簽章不是 pull 會記錄的簽章。補救:執行 pull,使檔案更新到最新)
對於在需要簽章之處卻沒有記錄簽章的項目(鎖定檔項目,或在離線態勢下,外掛程式信任記錄的項目):
signing: a recorded signature is not the one a pull would record ("<reference>", <file> records no signature, a pull would ask its registry for the signature a requirement asks for and record it). remediation: run aggrega pull --release <release> to bring <file> up to date(簽署:所記錄的簽章不是 pull 會記錄的簽章;pull 會向其登錄庫索取要求所要的簽章並記錄它。補救:執行 pull,使檔案更新到最新)
對於所記錄的簽章是為另一個成品製作的項目(鎖定檔項目,或在離線態勢下,外掛程式信任記錄的項目):
signing: a recorded signature is not the one a pull would record ("<reference>", <file> records <signature>, made for another artifact, a pull would ask its registry for this artifact’s own signature and record it). remediation: run aggrega pull --release <release> to bring <file> up to date(簽署:所記錄的簽章不是 pull 會記錄的簽章;它是為另一個成品製作的,pull 會向其登錄庫索取此成品自己的簽章並記錄它。補救:執行 pull,使檔案更新到最新)
signing: a recorded signature is not the one a pull would record ("<plugin>", <record-path> records no entry for it and a signature is required for it, a pull would record <signature>). remediation: run aggrega pull --release <release> to bring <record-path> up to date(簽署:所記錄的簽章不是 pull 會記錄的簽章;記錄中沒有它的項目,而它需要簽章。補救:執行 pull,使記錄檔更新到最新)
signing: a recorded signature is not the one a pull would record ("<plugin>", <record-path> records no entry for it and a signature is required for it, a pull would ask its registry for the signature a requirement asks for and record it). remediation: run aggrega pull --release <release> to bring <record-path> up to date(簽署:所記錄的簽章不是 pull 會記錄的簽章;記錄中沒有它的項目,而它需要簽章,pull 會向其登錄庫索取要求所要的簽章並記錄它。補救:執行 pull,使記錄檔更新到最新)
<signature> 以其模式、簽署者與其組合包的摘要來陳述簽章:a keyed signature by keyed:sha256:<fingerprint> with bundle digest sha256:<digest>,無金鑰的簽章則在簽署者之後加上 issued by <issuer>;或者是 no signature。<file> 是 Release 的鎖定檔 <lockfile-path>,或 Release 目錄中的 plugins-trust.yaml,即 <record-path>。
plugin artifact not found on this machine (Plugin entity "<reference>" is authored in a catalog directory, expected <file> in <directory>). Place the built .wasm beside the entity under that name, or publish the plugin and reference the published Plugin entity instead of the one in the catalog directory(此機器上找不到外掛程式成品:Plugin 實體是在目錄資料夾中撰寫的,預期該檔案位於該目錄中。請將建置好的模組以該名稱放在實體旁,或發布外掛程式並改為參照已發布的 Plugin 實體,而不是目錄資料夾中的那一個)
plugin "<reference>" at version <version> is not on this machine; place its module, named <file>, beside its Plugin entity in <directory>: plugin artifact not found on this machine(此機器上沒有該版本的外掛程式;請將其模組以該檔名放在其 Plugin 實體旁的目錄中:找不到外掛程式成品)
以及其他情況,指名模組曾被尋找的每個位置:
plugin "<reference>" is not on this machine: the binary does not carry its module, no catalog folder holds its Plugin entity and the content cache a pull fetches into does not hold it: plugin artifact not found on this machine(此機器上沒有該外掛程式:二進位檔未攜帶其模組,沒有目錄資料夾持有其 Plugin 實體,且 pull 擷取內容所存入的內容快取也不持有它:找不到外掛程式成品)
只看二進位檔的 lint 只會指名其中第一個位置。
對寫成登錄庫位置的參照也一樣:
plugin "<reference>" not resolvable: an OCI plugin URI requires a prior aggrega pull --release <release> (so its bytes are cached) or an explicit local path; plugin resolution does not fetch from a registry: plugin artifact not found on this machine(外掛程式無法解析:OCI 外掛程式 URI 需要事先執行 pull(讓其位元組被快取)或提供明確的本機路徑;外掛程式解析不會從登錄庫擷取:找不到外掛程式成品)
core importer "<importer>" at version <version> is not on this machine, and the workspace is offline, so its registry <host> is not asked for it; run the import once with the network available, which fetches it from the workspace’s default registry, verifies it and keeps it in the content cache for every later import, or place its module, named <file>, beside a Plugin entity of <importer> at <version> in a catalog folder: plugin artifact not found on this machine(此機器上沒有該核心匯入器,且工作區處於離線,因此不會向其登錄庫查詢它;請在有網路時執行一次匯入,它會從工作區的預設登錄庫擷取、驗證並保存在內容快取中供之後每次匯入使用,或在目錄資料夾中,將其模組以該檔名放在同一匯入器同一版本的 Plugin 實體旁:找不到外掛程式成品)
其他原因的寫法為 its registry <host> could not be reached (<cause>)、its registry <host> holds no <location>:<version> 與 the workspace names no default registry to fetch it from;後兩者只指名第二種補救方式,因為有網路的執行不會改變它們。
a plugin recorded as trusted for an accept-or-reject verdict is no longer attached at any verdict role: <record-path> records <plugin> as trusted, but no verdict attachment in the workspace configuration names it; a gate that was reviewed and is now absent leaves output indistinguishable from output that gate approved. Attach the plugin again under plugins.governance at an ir-verdict or render-verdict role, or under plugins.linter; or, if it was meant to go, run aggrega pull --upgrade --release <release> <plugin> to drop it from the record — an ordinary aggrega pull leaves the record as it is, so only an explicit upgrade removes an entry(記錄為受信任的接受或拒絕判定外掛程式已不再附加在任何判定角色:記錄將該外掛程式記為受信任,但工作區設定中沒有任何判定附加項目指名它;已審查而現在缺席的閘門,會讓輸出與該閘門核准的輸出無法區分。請在判定角色重新附加該外掛程式,或附加到 linter 的附加項目下;或者,如果本來就要移除它,請以明確的升級將其從記錄中移除——一般的 pull 不會動記錄,因此只有明確的升級才會移除項目)
plugin "<plugin-identity>": <record-path> records version <recorded-version> with digest <recorded-digest> as trusted for it, but this resolution reports version <resolved-version> with digest <resolved-digest>; review what changed and adopt it with aggrega pull --upgrade --release <release> <plugin>, or restore the recorded identity: the plugin identity recorded as trusted no longer matches what this resolution reports(記錄將某版本與某摘要記為對該外掛程式受信任,但這次解析回報的是另一個版本與另一個摘要;請審查變更內容並以指定目標的升級採用它,或還原已記錄的身分:記錄為受信任的外掛程式身分已不再與這次解析所回報的相符)
entity "<entity>" claims export "<export>", which the plugin’s describe() does not declare: wasm: entity contract claim does not match plugin describe()(實體宣稱了某個匯出,而外掛程式的 describe() 並未宣告該匯出:wasm:實體契約宣稱與外掛程式 describe() 不符)
已宣稱匯出上的欄位:
entity "<entity>" export "<export>" declares operates "<claimed>" but the plugin’s describe() reports "<reported>": wasm: entity contract claim does not match plugin describe()(實體的某個匯出所宣告的 operates 與外掛程式的 describe() 所回報的不同:wasm:實體契約宣稱與外掛程式 describe() 不符)
以及渲染行為欄位,以相同的形式回報,並指名不一致的欄位:
entity "<entity>" declares boundary_assembly "<claimed>" but the plugin’s describe() reports "<reported>": wasm: entity contract claim does not match plugin describe()(實體所宣告的 boundary_assembly 與外掛程式的 describe() 所回報的不同:wasm:實體契約宣稱與外掛程式 describe() 不符)
wasm: plugin "<plugin>": recorded command mirror <recorded set> does not match the plugin describe() commands <reported set>; re-run aggrega plugin sync and commit the result: wasm: recorded command mirror does not match plugin describe()(wasm:外掛程式所記錄的命令鏡像與外掛程式 describe() 的命令不符;請重新執行同步命令並提交結果:wasm:所記錄的命令鏡像與外掛程式 describe() 不符)
發布時的同一項比對,回報這兩個集合,但不含重新記錄的指示:
plugin "<plugin>": recorded command mirror <recorded set> does not match the plugin describe() commands <reported set>: wasm: recorded command mirror does not match plugin describe()(wasm:外掛程式所記錄的命令鏡像與外掛程式 describe() 的命令不符:所記錄的命令鏡像與外掛程式 describe() 不符)
plugin "<plugin>": recorded metadata.version "<recorded>" does not match the plugin describe() version "<reported>": wasm: entity metadata.version does not match plugin describe()(外掛程式所記錄的版本與外掛程式 describe() 的版本不符:wasm:實體的版本與外掛程式 describe() 不符)
發布時,拒絕訊息還會指名實體檔案、.wasm 與修復方式:
Plugin <plugin>: metadata.version in <entity-path> does not match the .wasm describe() version at <path> — set metadata.version to the release you are publishing and build the plugin from a clean checkout of the commit that release’s tag names, so it reports that version itself; for a new release, commit the entity with the source it releases and tag that commit first: plugin "<plugin>": recorded metadata.version "<recorded>" does not match the plugin describe() version "<reported>": wasm: entity metadata.version does not match plugin describe()(Plugin:實體檔中的版本與該路徑上模組的 describe() 版本不符——請將版本設為你要發布的發行版本,並從該發行版本標籤所指名提交的乾淨簽出建置外掛程式,使它自己回報該版本;對於新的發行版本,請先提交實體與其所發行的原始碼,並為該提交加上標籤:外掛程式所記錄的版本與外掛程式 describe() 的版本不符:wasm:實體的版本與外掛程式 describe() 不符)
Plugin <plugin>: the .wasm at <path> was built from a working tree with uncommitted changes — set metadata.version in <entity-path> to the release you are publishing and build the plugin from a clean checkout of the commit that release’s tag names, so it reports that version itself; for a new release, commit the entity with the source it releases and tag that commit first: plugin was built from a working tree with uncommitted changes, so no commit reproduces the version it reports (plugin "<plugin>", describe() version "<version>", which ends with "-dirty")(Plugin:該路徑上的模組是從含有未提交變更的工作樹建置的——請將實體檔中的版本設為你要發布的發行版本,並從該發行版本標籤所指名提交的乾淨簽出建置外掛程式,使它自己回報該版本;對於新的發行版本,請先提交實體與其所發行的原始碼,並為該提交加上標籤:外掛程式是從含有未提交變更的工作樹建置的,因此沒有任何提交能重現它所回報的版本,其 describe() 版本以 dirty 標記結尾)
plugin "<plugin>": stamped spec.runtime.hostFunctions <recorded set> does not match <derived set> derived from the verified .wasm <artifact>: wasm: stamped host-function record does not match .wasm imports(外掛程式所蓋印的主機函式集合與從已驗證的模組推導出的集合不符:wasm:所蓋印的主機函式記錄與模組匯入不符)
外掛程式驗證期間執行的同一項比對,回報兩個集合,但不含成品:
plugin "<plugin>": recorded host-function record <recorded set> does not match the .wasm imports <derived set>: wasm: stamped host-function record does not match .wasm imports(外掛程式所記錄的主機函式記錄與模組匯入不符:wasm:所蓋印的主機函式記錄與模組匯入不符)
發出的訊息。這項條件自己的句子開頭,每個蒐集到的不一致隨後列出,各指名其軸——對於實體,還指名其種類,因為實體由其種類與其 URI 一起識別,所以 Aggregate 與 Manifest 同名的 Release 有兩個項目,對任一者的編輯都會針對被編輯的那個回報:
lockfile: out of date; it no longer matches what its Release resolves to: entity "<uri>" (<kind>) not in lockfile (referenced from <site>) > <axis>"<uri>" changed: lockfile=(<version>,<digest>) current=(<version>,<digest>) > entity "<uri>" (<kind>) changed: lockfile=(<version>,<digest>) current=(<version>,<digest>) > <axis>"<uri>" no longer used by the release > release document "<file>" was edited after the lockfile was written: its content no longer matches the recorded digest (lockfile=<digest> current=<digest>), so the pins may no longer describe what it asks for; re-resolving the Release records the files it reads as they now stand(鎖定檔已過期;它不再與其 Release 解析的結果相符:實體不在鎖定檔中;某軸已變更,鎖定檔與目前的版本與摘要不同;實體已變更;某軸不再被 Release 使用;Release 文件在鎖定檔寫入後被編輯,其內容不再與所記錄的摘要相符,所以固定可能不再描述它所要求的內容;重新解析 Release 會依檔案現狀記錄它所讀取的檔案)
source-artifact kind=<kind> url=<url>: reference "<ref>" moved — the lockfile pins <commit>, and it now resolves to <commit>; adopt where it now points with aggrega pull --upgrade --release <release>(來源成品:參照已移動——鎖定檔固定某個提交,而它現在解析到另一個提交;請以升級採用它現在指向之處)
建置會在項目之後印出補救方式:
run aggrega pull --release <release> to re-resolve the Release and rewrite its lockfile(請執行 pull 以重新解析 Release 並重寫其鎖定檔)
remediation: add an entry for <host> (machine <host> login <user> password <secret>) to the netrc file <path>, then run the command again(補救:在 netrc 檔案中為該主機新增一個項目,包含 machine、login 與 password,然後再次執行該命令)
the netrc file could not be read (file <path>, line <line>, a word stands where a keyword is expected (machine, default, login, password, account or macdef)). Correct the file, or set NETRC to the path of another netrc file to read instead(無法讀取 netrc 檔案:檔案與行,預期關鍵字的位置出現了字詞,可用的關鍵字為 machine、default、login、password、account 或 macdef。請修正檔案,或將 NETRC 設為另一個要改讀的 netrc 檔案的路徑)
以及對於無法讀取的檔案,引用原因:
the netrc file could not be read (file <path>, <why it could not be read>). Correct the file, or set NETRC to the path of another netrc file to read instead(無法讀取 netrc 檔案:檔案與無法讀取的原因。請修正檔案,或將 NETRC 設為另一個要改讀的 netrc 檔案的路徑)
aggrega plugin add: 127.0.0.1:18471: list versions for plugin/cli/mo: oci: list tags: Get “http://127.0.0.1:18471/v2/plugin/cli/mo/tags/list”: 127.0.0.1:18471 did not answer within 30s: egress: the server did not answer in time(aggrega plugin add:列出外掛程式的版本:oci:列出標籤:該伺服器在 30 秒內未回應:egress:伺服器未在時限內回應)
以及對於中途停止的回應:
<host> stopped answering: nothing more of its answer arrived for 30s: egress: the server did not answer in time(該主機停止回應:30 秒內沒有收到其回應的更多內容:egress:伺服器未在時限內回應)
aggrega plugin add: 127.0.0.1:18472: no cli plugin is named “mo”, and searching every repository for a name containing it did not finish; name the plugin exactly, as aggrega plugin add cli <name>: the walk was stopped after 5m0s, before the listing ended (repositories named so far: 146): registry: the repository listing did not end in time(aggrega plugin add:沒有名為 “mo” 的 cli 外掛程式,而搜尋每個存放庫中包含該名稱的項目未完成;請完整指名外掛程式:走訪在 5m0s 後停止,在清單結束之前,目前已列出 146 個存放庫:登錄庫:存放庫清單未在時限內結束)
太忙的登錄庫會回答 429 Too Many Requests,或帶有 Retry-After 標頭、說明要等多久的 503 Service Unavailable。命令對登錄庫發出的每個請求都會等待登錄庫要求的時間——未說明時為十秒——然後再次請求;對該登錄庫的每個請求都隨之等待,並且在它再次回應之前,一次對它傳送的請求更少。只回答「放慢速度」達五分鐘的登錄庫,會在這項條件下被拒絕,指名登錄庫、它的最後回應,以及它除此之外沒有回答任何東西的時間,而請求自己的時限在等待時結束的也是如此。aggrega registry update 隨後會將該登錄庫回報為未建立索引,並保留它在這次執行之前所擁有的索引。
發出的訊息,針對要求放慢五分鐘的登錄庫:
<host> kept asking to slow down: its last answer was 429 Too Many Requests, and it had answered nothing else for 5m0s: oci: the registry kept asking to slow down(該主機持續要求放慢速度:它的最後回應是 429 Too Many Requests,且它在 5m0s 內沒有回答任何其他東西:oci:登錄庫持續要求放慢速度)
以及針對請求自己的時限結束了等待的情況:
<host> kept asking to slow down: its last answer was 429 Too Many Requests, and it had answered nothing else for <how long> when the request’s own time ran out: oci: the registry kept asking to slow down(該主機持續要求放慢速度:它的最後回應是 429 Too Many Requests,且在請求自己的時間用完時,它已有一段時間沒有回答任何其他東西:oci:登錄庫持續要求放慢速度)
sourceresolver: kind=<kind> url=<url> version=<version>: oci: the registry answered with a server error (cause: <the registry's answer>); remediation: the registry <host> failed; run aggrega pull —release <release> again once it is back, and ask its operator if it keeps failing(來源解析器:種類、網址、版本:oci:登錄庫以伺服器錯誤回應(原因:登錄庫的回答);補救方式:登錄庫失敗;待它恢復後再次執行 aggrega pull —release,若持續失敗,請詢問其操作員)
sourceresolver: kind=<kind> url=<url> version=<version>: oci: the transfer from the registry broke off (cause: <what the transport reported>); remediation: run aggrega pull —release <release> again; if the transfer keeps breaking off, check the connection to <host> and any proxy or gateway between(來源解析器:種類、網址、版本:oci:來自登錄庫的傳輸中斷(原因:傳輸層所回報的內容);補救方式:再次執行 aggrega pull —release;若傳輸持續中斷,請檢查與主機之間的連線,以及其間的任何代理或閘道)
catalog: cached <uri> content digest <computed> does not match lockfile pin <pinned>: oci: content digest mismatch(目錄:快取的內容摘要與鎖定檔固定不符:oci:內容摘要不符)
oci: content digest mismatch: pinned entity "<uri>": registry now serves digest <computed> for the pinned version, not the pinned digest <pinned>; run aggrega pull --upgrade --release <release> to update the pin(oci:內容摘要不符:已固定的實體:登錄庫現在為固定的版本提供的摘要,不是已固定的摘要;請執行升級 pull 以更新固定)
pinned entity <uri>: no source holds the pinned bytes <pinned> (<what each source it read held>); with a registry reachable, aggrega pull --release <release> fetches the pinned version again: <the message above>(已固定的實體:沒有任何來源持有已固定的位元組;在登錄庫可連線時,pull 會再次擷取已固定的版本:上述訊息)
oci: manifest has no layer of media type "<media-type>": oci: manifest has no layer of the expected content media type(oci:資訊清單沒有該媒體類型的層:oci:資訊清單沒有預期內容媒體類型的層)
以及多於一個,同時指名有多少個:
oci: manifest has <count> layers of media type "<media-type>"; expected exactly one: oci: manifest has multiple layers of the expected content media type(oci:資訊清單有數個該媒體類型的層;預期恰好一個:oci:資訊清單有多個預期內容媒體類型的層)
bundle root carries no entity document among <file>, <file>: oci: published bundle carries no entity document(組合包根目錄在這些檔案之間沒有實體文件:oci:已發布的組合包沒有實體文件)
沒有,在它完全沒有攜帶任何東西時:
bundle root carries no files at all: oci: published bundle carries no entity document(組合包根目錄完全沒有檔案:oci:已發布的組合包沒有實體文件)
以及多於一個,同時指名數量與衝突的文件:
bundle root carries <count> entity documents (<file>, <file>): oci: published bundle carries more than one entity document(組合包根目錄有數個實體文件,即衝突的檔案:oci:已發布的組合包有多於一份實體文件)
oci: unbundle gzip: <archive error>: oci: published bundle cannot be unpacked(oci:解開 gzip:封存檔錯誤:oci:已發布的組合包無法解開)
在檔案中途停止的:
read <file> from the published bundle: <archive error>: oci: published bundle cannot be unpacked(從已發布的組合包讀取檔案:封存檔錯誤:oci:已發布的組合包無法解開)
宣告從不發布的種類的文件:
the published document declares kind <kind>, which a registry does not publish: oci: published artifact is not an entity document(已發布的文件宣告了登錄庫不發布的種類:oci:已發布的成品不是實體文件)
以及根本不是文件的位元組:
the published bytes do not parse as a document (<parse error>): oci: published artifact is not an entity document(已發布的位元組無法解析為文件:oci:已發布的成品不是實體文件)
oci: target does not support referrer discovery: <target kind>: oci: referrer discovery could not be completed(oci:目標不支援參照者探索:oci:參照者探索無法完成)
成品本身無法定位:
oci: resolve subject "<reference>": <the underlying failure>: oci: referrer discovery could not be completed(oci:解析主體:底層失敗:oci:參照者探索無法完成)
以及查詢失敗:
oci: list referrers of "<reference>": <the underlying failure>: oci: referrer discovery could not be completed(oci:列出參照者:底層失敗:oci:參照者探索無法完成)
在不要求簽章時,相同的文字會改為以通知出現:
signature verification could not run for <uri> (the registry could not answer the signature lookup and no signature is required; continuing): <the message above>(無法對該 URI 執行簽章驗證,原因是登錄庫無法回答簽章查詢且不要求簽章,因此繼續:上述訊息)
signing: signature bundle does not verify: <what the verifier reported>(簽署:簽章組合包未通過驗證)
以及在密碼學檢查成立、但讀取簽章是針對哪個成品所作的結果並不一致時:
signing: signature bundle does not verify: its cryptographic check holds, but it does not name <manifest-digest> as the artifact it was made for(簽署:簽章組合包未通過驗證:其密碼學檢查成立,但並未指名所針對的成品)
signing: signature bundle does not verify: its cryptographic check holds, but it is in a form from which the artifact it was made for cannot be read(簽署:簽章組合包未通過驗證:其密碼學檢查成立,但其形式無法讀出所針對的成品)
各以所驗證的參照作為前綴:
verifying the signature of <uri>: <the message above>(驗證簽章時:上述訊息)
以及在登錄庫的項目將驗證設為提示時,以通知取代中止:
signature verification failed for <uri> (advisory; continuing): <the message above>(簽章驗證失敗,為提示並繼續執行:上述訊息)
signing: signature identity is not trusted for this registry: <what the verifier reported>; signer presented issuer "<issuer>" with identity "<subject>", but no trusted identity permits that issuer(簽署:此簽章的身分不受這個登錄庫信任;簽署者提出了簽發者與身分,但沒有任何受信任的身分允許該簽發者)
以及在無法讀取時,退回採用驗證器本身的回報:
signing: signature identity is not trusted for this registry: <what the verifier reported>(簽署:此簽章的身分不受這個登錄庫信任)
egress: 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(出口:因為工作區處於離線狀態,網路存取遭拒;補救方式:傳入選項以允許本次執行使用網路,或清除設定檔中的頂層鍵(或 AGGREGA_OFFLINE)以從此允許;若工作是需要本機沒有之內容的建置,請先在已連線的環境中執行命令以填入快取)
uses edge target does not exist ("<target>", wired into socket "<socket>"). Point the target at a component the Aggregate declares, or declare a component under that name.(uses 邊的目標不存在。請將目標指向 Aggregate 所宣告的元件,或以該名稱宣告一個元件)
connection alias is already used by another connection of the same component ("<alias>", on component "<component>", this connection wired into socket "<socket>", with target "<target>", written in "<file>", at "<key path>", the connection already holding the alias wired into socket "<socket>", with target "<target>", written in "<file>", at "<key path>"). Give one of the two connections an alias of its own: a component reads each connection by its alias, whatever socket it is wired into. A list entry takes its target’s name as its alias, so a target listed twice is listed once, or written as two keyed entries under two aliases.(連線別名已被同一元件的另一條連線使用。請為兩條連線之一指定專屬的別名:元件以別名讀取每條連線,無論連接到哪個插槽。清單項目以其目標的名稱作為別名,所以被列出兩次的目標應只列一次,或寫成兩個有鍵項目、使用兩個別名)
當兩條連線寫在同一個鍵路徑上——一個清單把同一目標寫了兩次——每一條也會以它在清單中的位置命名,即 list entry "2" 與 list entry "1" 並列,這是區分這兩個項目的唯一依據。
unknown 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 (Release <release-name>, at .spec.components.<component>, "<component-type>", "<socket-name>", "<declared-sockets>")(未知的 uses 插槽:請指名實體在其 usesSchema 中宣告的插槽——只有元件自己的 uses 區塊可以指名目錄未宣告的插槽)
a connection carries an attachment under a name its socket declares no slot for (Aggregate <aggregate-name>, at .spec.components.<component>.uses.<socket>.<alias>, "<attachment>", on the connection "<alias>", through socket "<socket>", of component "<component>", the socket declaring the slots "<slots>"). Write the attachment under one of the slots the socket declares, or declare this slot in the socket’s featuresSchema on the Component.(連線帶有的附加項目,其名稱在插槽中沒有對應的槽位。請把附加項目寫在插槽所宣告的槽位之一下,或在 Component 上該插槽的 featuresSchema 中宣告此槽位)
a connection carries an attachment under a name its socket declares no slot for (Release <release-name>, at .spec.boundaries.<boundary>.components.<component>.uses.<socket>.<alias>, "credentail", near the declared slot "credential", on the connection "<alias>", …)(連線帶有的附加項目,其名稱在插槽中沒有對應的槽位,且接近已宣告的槽位)
這樣的名稱不會另外發出提示。在元件自己的 features: 區塊上,與已宣告槽位只差一次編輯的名稱是合法的,只會引發下方「An attachment name is one edit from a declared slot(附加項目名稱與已宣告的槽位只差一次編輯)」之下的提示;在連線上,這樣的名稱則會被拒絕,而且拒絕本身就帶有配對。
若插槽沒有宣告任何槽位,清單就不存在,建議會寫成「The socket declares no slots, so no connection wired through it carries an attachment: remove the attachment, or declare the slot in the socket’s featuresSchema on the Component.(插槽未宣告任何槽位,因此連接到它的連線都不帶有附加項目:請移除附加項目,或在 Component 上該插槽的 featuresSchema 中宣告槽位)」。若 Component 完全沒有宣告該插槽,則寫成「The component’s type does not declare this socket, so the socket declares no slots and no connection wired through it carries an attachment: remove the attachment, or declare the socket and its slot in the Component’s usesSchema.(元件的型別未宣告此插槽,因此該插槽未宣告任何槽位,連接到它的連線都不帶有附加項目:請移除附加項目,或在 Component 的 usesSchema 中宣告插槽及其槽位)」。
release edge retargets a developer-declared edge (declared target "<declared-target>", target the Release names "<release-target>", wired into socket "<socket>"). Drop the target from the Release entry to configure the connection as it was declared, or change the target where the connection is declared.(release 邊重新指定了開發者所宣告之邊的目標。請從 Release 項目中移除目標,以依宣告的樣子設定該連線,或在宣告連線之處更改目標)
release per-edge configuration has no edge to apply to (Release <release-name>, at .spec.boundaries.<boundary>.components.<consumer>.uses.<socket>.<alias>, "<consumer>", on socket "<socket>", under alias "<alias>"). Give the entry a target to wire the edge, or remove it: an entry with no target configures an edge that must already exist.(Release 的每邊設定沒有可套用的邊。請為項目指定目標以連接該邊,或移除它:沒有目標的項目設定的是必須已存在的邊)
當項目指名的元件是 Aggregate 未宣告的,中止來自建置較早之處,並以如下方式呈現,指名該項目所設定的內容——infra、features 或 infra and features:
release per-edge configuration has no edge to apply to: release edge <consumer>/<socket>/<alias> sets <infra|features|infra and features> on <consumer>, which is not a component in the topology(Release 的每邊設定沒有可套用的邊:release 邊在不是拓撲中元件的對象上進行設定)
a Release attachment takes the name of an attachment one of a component’s connections carries (Release <release-name>, at .spec.components.<component>, "<alias>.<slot>", of component "<component>", on the connection "<alias>", through socket "<socket>", in the slot "<slot>"). Write it on the connection entry, under uses.<socket>.<alias>.features.<slot>, and remove "<alias>.<slot>" from this entry’s features: an attachment a connection carries is written on that connection and nowhere else.(Release 附加項目採用了元件某條連線所帶之附加項目的名稱。請把它寫在連線項目上,並從此項目的功能中移除該名稱:連線所帶的附加項目寫在該連線上,不寫在其他任何地方)
發出的訊息,用於邊界上的鍵。它指名邊界的附加項目區塊,以及其連線帶有該附加項目的元件:
a Release attachment takes the name of an attachment one of a component’s connections carries (Release <release-name>, at .spec.boundaries.<boundary>.features, "<alias>.<slot>", of component "<component>", on the connection "<alias>", through socket "<socket>", in the slot "<slot>"). Write it on component "<component>"’s connection entry, under uses.<socket>.<alias>.features.<slot>, and remove "<alias>.<slot>" from this boundary’s features: an attachment a connection carries is written on that connection and nowhere else.(Release 附加項目採用了元件某條連線所帶之附加項目的名稱。請把它寫在該元件的連線項目上,並從此邊界的功能中移除該名稱:連線所帶的附加項目寫在該連線上,不寫在其他任何地方)
a Release connection attachment names no Feature type, and the type is required for an attachment only the Release makes (Release <release-name>, at .spec.components.<component>.uses.<socket>.<alias>, "<slot>", on the connection "<alias>", through socket "<socket>", of component "<component>"). Name the Feature this attachment attaches under its type, or declare the attachment on the Aggregate’s connection entry and size it here.(Release 連線附加項目未指名 Feature 型別,而只有 Release 才有的附加項目必須有型別。請以型別指名此附加項目所附加的 Feature,或在 Aggregate 的連線項目上宣告該附加項目,再於此處調整其大小)
此檢查讀取的是元件實際帶有的身分,對於匯入之 Aggregate 所貢獻的元件,那是限定後的身分——模組的名稱、一個點,以及元件自己的名稱。所以兩個各自單獨可接受的名稱,仍然可能連接成不可接受的身分:名為 bfr--x 的模組與其內名為 y 的元件,會連接成 bfr--x.y,其開頭與組合身分相同。中止會指名連接後的身分,同時指向你所寫的鍵。
發出的訊息,用於目標會拒絕的身分:
component identity cannot be the name its emitted resources are stamped with: rename the component (Aggregate, at <field-path>, "<identity>", which must "<rule>")(元件身分不能作為其輸出資源所標記的名稱:請重新命名該元件)
以及用於開頭與組合身分相同的身分,其中 <opening> 是名稱所符合的保留開頭之一:
component identity cannot be the name its emitted resources are stamped with: rename the component (Aggregate, at <field-path>, "<identity>", which must not open with the reserved "<opening>")(元件身分不能作為其輸出資源所標記的名稱:請重新命名該元件,其開頭不得為保留的開頭)
目標可以給出兩種答案,而且它們通往不同之處。 若較短的名稱會被接受,中止會說明可行的長度,所以新名稱只需選擇一次而不是兩次。若沒有任何長度有幫助——例如目標的文法拒絕名稱落在該位置上的某個字元——就不會說明長度,因為縮短無法解決它。第二種中最常見的情形是:名稱僅限小寫的目標會跳脫它不接受的每個字元,而每個跳脫都以連字號開頭,所以第一個字元被跳脫的名稱,會產生以連字號開頭的名稱。要求該處為小寫字母或數字的目標,無論其餘部分多短都會拒絕它。目標也可能讓名稱的開頭遵守以它命名之資源的更嚴格規則:helm 目標會拒絕以數字開頭的名稱,並以 Service name 回報,因為 Helm 接受這樣的發行名稱,而叢集卻拒絕以它命名的 Kubernetes Service。
有些名稱只為元件所渲染的工作負載而存在。 提供者會在該元件的 Workload 解析後被詢問一次,而這個詢問帶有 Workload 的 form 與其 Service 鍵,所以目標也能判斷它由這些建構出的名稱。在 helm 目標下,這會多出兩個:CronJob name,最多 52 個字元,且只針對 scheduled 的 Workload 判斷,因為叢集會以附加的後綴,用 CronJob 來命名每次執行的 Job;以及每個 Service name,即 <release name>-<service key>,最多 63 個字元。Service name 是由兩位作者的部分建構而成——你的元件名稱,以及工作負載在 Recipe 或 FeatureRecipe 中所宣告的鍵——所以它的理由會指出該鍵與工作負載宣告它之處 spec.workload.services.<key>,並列於你所寫的欄位旁。長到沒有空間容納任何元件名稱的鍵,不會說明可供選擇的長度,而理由會說明需要縮短的是該鍵。對於附加到整個邊界的 Feature,不會判斷這些名稱:它的身分在其 Workload 解析之前就已定案,因為其輸出被組裝的位置可能取決於它。
發出的訊息,用於撰寫的身分:
the target will not accept a name derived from this component’s authored identity: rename the component (component "<identity>", written at <field-path>, which the target cannot use as a <name-kind>, <the target's reason>). choose a name of at most <n> characters that the target accepts(目標不接受由此元件所撰寫的身分衍生的名稱:請重新命名該元件。請選擇目標接受、且最多為指定字元數的名稱)
修正方式: 在每個指名它的介面上,把元件重新命名為目標接受的名稱——宣告它的 Aggregate,以及安置並設定它的 Release。若訊息說明了長度,請維持在其內。若沒有,請閱讀目標的理由:通常是目標不接受的某個字元,最常見的是名稱開頭的大寫字母——或者在 helm 目標下,是開頭的數字。建議使用以連字號連接單字的小寫字母與數字;命名章節說明了名稱在各種目標下的代價。若理由指名了 Service 鍵,也可以在工作負載宣告該鍵之處縮短該鍵來取回長度——而若理由說明該鍵沒有留下空間,則只有這麼做才有用。重新命名元件會改變其資源所帶的名稱,所以對已部署的應用程式,請把它當作任何其他資源重新命名來處理。
provider guest never accepted a component identity the compiler composed for it (provider guest "<provider>", refused <n> proposals, the last of them "<identity>"). report the defect to whoever maintains that provider plugin(提供者客體從未接受編譯器為其組合的元件身分。請把缺陷回報給維護該提供者外掛程式的人)
required uses socket not populated (Component, at .spec.components.<instance>.uses.<socket>, "<socket-name>", declared required by component type "<component-type>")(必要的 uses 插槽未被填入)
Feature type mismatch between Aggregate and Release(Aggregate 與 Release 之間的 Feature 型別不符)
Aggregate 與 Release 都以相同的實例名稱附加了一個功能,但各自宣告了不同的 type:,而且 Release 的附加項目是從邊界的 features: 到達元件。若 Release 改為寫在它自己對該元件的項目上,同樣的衝突會更早被拒絕,並以 E0153 回報,見上方「A feature attached by both the Aggregate and the Release cannot be merged(Aggregate 與 Release 都附加的功能無法合併)」。
輸出的訊息:
feature type mismatch between Aggregate and Release (node <node-id>, attachment <instance-name>, existing type <type-in-aggregate> conflicts with <type-in-release>)(Aggregate 與 Release 之間的功能型別不符)
cyclic extends chain (Component <name>, rule extends). <entity> extends <reference>, which is already in the chain; remove the extends on <entity>, or point it at an entity outside the chain(循環的 extends 鏈。該實體擴充的參照已在鏈中;請移除該實體上的 extends,或將它指向鏈外的實體)
component placed in no boundary: name it under a boundary’s components, or place the sub-module that contributes it under aggregates (Release <name>, at <authored key>, "<component-id>")(元件未置於任何邊界:請在邊界的元件之下指名它,或把貢獻它的子模組置於 aggregates 之下)
sub-module placed in no boundary: route it into a boundary under aggregates, or name its components there under components (Release <name>, at <authored key>, "<module-path>")(子模組未置於任何邊界:請在 aggregates 之下把它路由進邊界,或在那裡於 components 之下指名它的元件)
boundary names a component the composition does not hold: correct the name, or remove the entry (Release <name>, at <authored key>, "<addressed id>")(邊界指名了組合未持有的元件:請更正名稱,或移除該項目)
uses edge target was pruned because its active toggle resolved to false ("<target>", wired into socket "<socket>"). Keep the target’s active toggle true, or drop the dependency on it.(uses 邊的目標因其 active 切換開關解析為 false 而被修剪。請讓目標的切換開關保持為 true,或捨棄對它的相依)
uses edge target names a component its module does not export ("<target>", module "<module>", which exports "<aliases>", wired into socket "<socket>"). Name the component through one of the module’s exported aliases, or list it under the module’s exportedComponents.(uses 邊的目標指名了其模組未匯出的元件。請透過模組所匯出的別名之一來指名該元件,或把它列在模組的下方)
active toggle did not resolve to a boolean (node "<node>", active resolved to "<value>")(active 切換開關未解析為布林值:節點,以及 active 所解析成的值)
而在它完全未解析為任何值時,附上指出常見原因的建議:
active toggle did not resolve to a boolean (node "<node>", active resolved to ""). a toggle reading a parameter resolves to nothing until that parameter is fulfilled(active 切換開關未解析為布林值:節點,active 解析為空。讀取參數的切換開關在該參數被滿足之前會解析為空)
flattened node ID collision: rename one of the colliding instances so their flattened IDs differ (id "<identifier>", path "<path in the composition>", collides with existing entry from "<the other contributor>")(展平的節點 ID 衝突:請重新命名其中一個衝突的實例,讓它們展平後的 ID 不同;涉及的 id、組合中的路徑,以及與之衝突的來自另一個貢獻者的既有項目)
components in different subsystems take the same identity: rename one of them, since a subsystem contributes nothing to a component’s identity (Aggregate, at .spec.subsystems.<second>.components.<identifier>, "<identifier>", declared under subsystems "<first>, <second>")(不同子系統中的元件取用同一個身分:請重新命名其中之一,因為子系統不會為元件的身分貢獻任何東西——位於某個路徑,識別碼,宣告於這些子系統之下)
mutator patch rejected: patch <n> does not decode as a JSON Patch document: <what the reader could not do> > mutator patch rejected: patch <n> does not apply to the node-label surface: <what the patch engine refused>(變異器修補被拒絕:修補無法解碼為 JSON Patch 文件,並指出讀取器無法做到的事;變異器修補被拒絕:修補無法套用到節點標籤介面,並指出修補引擎所拒絕的內容)
或套用它的結果不是主機交出的檢視:
mutator patch rejected: mutated node set changed size (a mutator may not add or remove nodes) > mutator patch rejected: mutated node set introduced node "<node>" (a mutator may not add nodes) > mutator patch rejected: node "<node>" gained a field outside "labels" (a mutator may only touch labels) > mutator patch rejected: node "<node>" lost its "labels" field > mutator patch rejected: node "<node>" carries a non-string label value after patching: <what the reader found>(變異器修補被拒絕:變異後的節點集合大小改變(變異器不可新增或移除節點);變異後的節點集合引入了新節點(變異器不可新增節點);節點取得了標籤欄位以外的欄位(變異器只能修改標籤);節點失去了其標籤欄位;節點在修補後帶有非字串的標籤值,並指出讀取器所找到的內容)
invalid inject key: the from-key must name a provides key its source publishes (Aggregate <name>, at .spec.components.<component>.inject.<mechanism>.<delivery-key>, "<from-key>", "<component-type>", "<key-1>", "<key-2>")(無效的 inject 鍵:from 鍵必須指名其來源所發布的 provides 鍵;涉及所屬位置、有錯的鍵、元件型別與其已宣告的鍵)
invalid inject key: the from-key must name a provides key its source publishes (Aggregate <name>, at .spec.components.<component>.uses.<socket>.<alias>, "<mechanism>", "<delivery-key>", "<from-key>", "<component-type>", "<key-1>")(無效的 inject 鍵:from 鍵必須指名其來源所發布的 provides 鍵;涉及所屬位置、機制、遞送鍵、有錯的鍵、元件型別與其已宣告的鍵)
invalid inject key: the from-key must name a provides key its source publishes (Aggregate <name>, at .spec.components.<component>.features.<attachment>, "<from-key>", in "<in>", mechanism "<mechanism>", FeatureRecipe "<feature-recipe>", publishes "<key-1>", publishes "<key-2>")(無效的 inject 鍵:from 鍵必須指名其來源所發布的 provides 鍵;涉及所屬位置、有錯的鍵、in、機制、解析所依據的來源,以及它所發布的鍵)
missing required feature: attach a Feature of the required type to the component (<required-type>, required by component type <component-type>, under the requirement label <label>)(缺少必要的功能:請將所需型別的 Feature 附加到元件(所需型別、要求它的元件型別,以及要求標籤))
存在強制要求的宣告無法被評估。註記值是不透明字串,所以在編譯器讀取之前沒有任何東西驗證其形狀:不是 Feature 型別 URI 的值,或是指名強制要求系列但前綴之後沒有標籤的鍵,會被回報為損壞的宣告,而不是未滿足的要求——打字錯誤絕不能被當成已滿足的要求。
發出的訊息:
malformed attachment requirement (<key>, declared by component type <component-type>, which cannot be evaluated because the value must be a Feature type URI of the form <publisher>/<name> in lower-case kebab segments, as in core/prometheus-exporter). Correct that annotation on the component type’s catalog entity.(附加要求格式錯誤(註記鍵,由元件型別宣告,無法評估,因為其值必須是以小寫 kebab 區段組成的 Feature 型別 URI,如範例所示)。請更正元件型別目錄實體上的該註記。)
malformed attachment requirement (<key>, declared by component type <component-type>, which cannot be evaluated because the key needs a label naming the requirement, as in features.aggrega.ai/requiredType.database). Correct that annotation on the component type’s catalog entity.(附加要求格式錯誤(註記鍵,由元件型別宣告,無法評估,因為該鍵需要一個指名要求的標籤,如範例所示)。請更正元件型別目錄實體上的該註記。)
required attachment slot unfilled (<slot>, declared required by component type <component-type>). Attach a Feature at that name, in the Aggregate or in the Release, on the component or at a scope above it.(必要的附加槽位未填入(槽位名稱,由元件型別宣告為必要)。請在 Aggregate 或 Release 中,於該元件或其上層範圍,以該名稱附加一個 Feature。)
required attachment slot unfilled ("<slot>", declared required by socket "<socket>", of component type "<component-type>", left unfilled by the connection "<alias>"). Attach a Feature under that slot in this connection’s features, on its entry in the Aggregate or in the Release.(必要的附加槽位未填入(槽位,由元件型別的插槽宣告為必要,未被該連線填入)。請在此連線的 features 中,於其在 Aggregate 或 Release 中的項目上,於該槽位下附加一個 Feature。)
a Feature reaches a component alongside a Feature it declares a conflict with ("<feature>", attached in the Release on boundary "<boundary-path>", conflicts with "<other-feature>", attached in the Aggregate on component "<component>", on component "<component>"). Attach only one of the two where they meet: remove one attachment, or move it to a scope that does not hold this component.(一個 Feature 抵達元件時,同時帶有它宣告衝突的 Feature(該 Feature,於 Release 的邊界上附加,與另一個 Feature 衝突,於 Aggregate 的元件上附加,在該元件上)。請只在兩者相遇之處附加其中一個:移除其中一個附加項目,或將它移到不包含此元件的範圍。)
第一個值是其清單指名了另一個的 Feature——即上面句子所指名的那個——它被附加的每個位置都接在其後;接著是與它衝突的 Feature,以及那個 Feature 被附加的每個位置;最後是兩者相遇的元件。每個位置都以你要開啟並修改的文件所用的字眼拼寫:attached in the Aggregate on component、attached in the Aggregate on subsystem、attached in the Release on boundary(巢狀邊界的路徑以 / 連接其各層)、attached in the Release on the entry for component 後接 in boundary,或 attached by annotation-driven expansion of 該註記,後接 declared at,指出其被撰寫之處。寫在連線上的附加項目會拼寫為該連線的項目,因為應編輯的是該項目,而非元件自己的區塊:attached in the Aggregate on the connection 後接 through socket 與 of component,或 attached in the Release on the connection 後接 through socket、of the entry for component 與 in boundary。同一個 Feature 附加在兩處時會列出兩處。回報定位在 components: 下該元件自己的鍵,而在多個元件上相遇的一對,會為每個元件各回報一次,依 Aggregate 宣告元件的順序。
修正方式: 在兩者相遇之處只附加其中一個——移除其中一個附加項目,或將其中一個移到不包含此元件的範圍,例如同層邊界。若附加項目來自由註記驅動的展開,應更改的是該註記,而不是它所展開到的區塊。若這兩個 Features 實際上可以組合,則錯的是宣告:請從宣告方 Feature 的目錄實體中,把另一個 Feature 從 conflictsWith 清單移除。
Attachment does not conform to its declared slot shape(附加項目不符合其宣告的槽位形狀)
attachment does not conform to its declared slot shape (Aggregate <name>, at .spec.components.<component>.features.<attachment>, "<slot>", "<mechanism>", "<permitted-mechanism>")(附加項目不符合其宣告的槽位形狀(Aggregate 的名稱、位置、槽位、機制、允許的機制))
attachment does not conform to its declared slot shape (Aggregate <name>, at .spec.components.<component>.features.<attachment>.<key>, attachment does not conform to the declared slot shape: this key is not part of the slot’s declaration — <remedy>)(附加項目不符合其宣告的槽位形狀(Aggregate 的名稱、位置,附加項目不符合所宣告的槽位形狀:此鍵不屬於槽位的宣告,後接補救方式))
其中 <remedy> 依該鍵而定:
remove it,用於在允許清單為空的槽位上指名了機制的 inject: 區塊;
remove it, or add it to the slot's inject allowlist in the entity's featuresSchema,用於槽位的允許清單可以指名的機制——env、file 或 arg;
remove it: a slot's inject allowlist in the entity's featuresSchema accepts only env, file and arg,用於任何其他機制,因為沒有槽位能宣告它。
attachment does not conform to its declared slot shape (Aggregate <name>, at .spec.subsystems.<scope>.features.<attachment>, this attachment is declared at a scope that reaches component <component>, whose attachment slot <slot> does not accept the delivery it carries: move the attachment down to the components that may receive it)(附加項目不符合其宣告的槽位形狀(Aggregate 的名稱、位置,此附加項目宣告於觸及某元件的範圍,而該元件的附加槽位不接受它所帶的傳遞:請將附加項目向下移到可接收它的元件))
duplicate delivery key across inject sources (Aggregate <name>, at .spec.components.<component>.inject.<mechanism>.<key>, "<mechanism>", "<key>", "<other-mechanism>")(跨 inject 來源的重複傳遞鍵(Aggregate 的名稱、位置、機制、鍵、另一個機制))
兩個機制都不是肇事者,兩則回報都由你來修改:在其中一個之下重新命名該鍵,或移除兩個傳遞之一。元件究竟可以使用哪些機制是另一個問題,由其 spec.inject 允許清單回答——見下方的「Self-inject mechanism not in the component’s allowlist(自行注入機制不在元件的允許清單中)」。
由附加到元件的 Feature 宣告的鍵,會從三種撰寫介面中的第三種遇到同一個共用空間,並回報在下方「An attachment delivers a key another inject source already claimed(附加項目傳遞了另一個 inject 來源已宣告的鍵)」之下;兩個已附加的 Features 傳遞的鍵,若兩者中較晚者透過其 FeatureRecipe 的 injectMapping 傳遞,則回報在「Two attached Features deliver one key, the later through its FeatureRecipe’s injectMapping(兩個已附加的 Features 傳遞同一個鍵,後者透過其 FeatureRecipe 的 injectMapping)」之下。
Self-inject on a component without an allowlist(在沒有允許清單的元件上自行注入)
self-inject on component without spec.inject allowlist (Aggregate <name>, at .spec.components.<component>.inject, "inject", "<component-type>")(沒有 spec.inject 允許清單的元件上的自行注入(Aggregate 的名稱、位置、區塊名稱、元件型別))
uses-edge inject dictates a delivery mechanism the socket does not permit ("<mechanism>", on socket "<socket>", declared on the component type "<component-type>"). The socket declares no delivery allowlist, so it permits no dictation at all — the entity that declared it delivers the dependency’s values itself. Remove the inject block from this connection and read the values from the connection’s provides in the consuming Recipe, or declare the mechanisms the socket permits in its usesSchema entry.(uses 邊的 inject 指定了插槽不允許的傳遞機制(機制,位於插槽上,宣告於元件型別)。該插槽未宣告傳遞允許清單,所以完全不允許指定——宣告它的實體自行傳遞相依項目的值。請從此連線移除 inject 區塊,並在使用端 Recipe 中從連線的 provides 讀取值,或在其 usesSchema 項目中宣告該插槽允許的機制。)
uses-edge inject dictates a delivery mechanism the socket does not permit ("<mechanism>", on socket "<socket>", which permits "<mechanism-1>, <mechanism-2>", declared on the component type "<component-type>"). Dictate one of the mechanisms the socket permits, or widen that socket’s inject allowlist in the declaring entity’s usesSchema entry.(uses 邊的 inject 指定了插槽不允許的傳遞機制(機制,位於插槽上,該插槽允許的機制,宣告於元件型別)。請指定插槽允許的機制之一,或在宣告實體的 usesSchema 項目中放寬該插槽的 inject 允許清單。)
inject entry carries both value: and from:; schema requires exactly one ("<mechanism>", "<in-1>", "<in-2>")(inject 項目同時帶有字面值與來源鍵;結構描述要求恰好其中之一(機制、各項目的 in 值))
inject entry on a connection carries value:; a connection delivers the target’s published keys, each named with from: ("<mechanism>", "<in>")(連線上的 inject 項目帶有字面值;連線傳遞目標所發布的鍵,每個都以來源鍵指名(機制、in 值))
每個違規項目各自回報為一項發現,歸在 DEVELOPER_ERROR 之下,針對其文件撰寫該區塊的 Aggregate——在模組中撰寫的附加項目則為模組自己的文件——並定位在該文件中附加項目區塊內的傳遞機制:.spec.components.<component>.features.<attachment>.inject.<mechanism>,或子系統的附加項目為 .spec.subsystems.<subsystem>.features.<attachment>.inject.<mechanism>。一份文件中的每一項都會一次回報;匯入的模組中的那些,會在匯入它的 Aggregate 通過之後回報。發現會指名該機制與項目的 in:。同時帶有 value: 與 from: 的項目只會回報一次,在上面的「An inject: entry carries both a literal and a source key(項目同時帶有字面值與來源鍵)」之下。
輸出的訊息:
inject 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 ("<mechanism>", "<in>")(附加項目上的 inject 項目帶有字面值;附加項目傳遞其 FeatureRecipe 所發布的鍵,每個都以來源鍵指名,而字面值屬於元件自己的 inject 區塊(機制、in 值))
inject delivery: shape must be a list of entries, each in: with exactly one of from: or value: ("<mechanism>")(inject 傳遞:形狀必須是項目清單,每個項目帶有 in 以及恰好一個來源鍵或字面值(機制))
attachment slot selector unsatisfied ("<selector>", declared on slot "<slot>", not satisfied by the labels of the Feature filling it, "<feature-type>"). Add the labels the slot’s selector requires to the Feature’s labels, or fill the slot with a Feature that already carries them.(附加槽位選擇器未滿足(選擇器,宣告於槽位,未被填入該槽位的 Feature 的標籤滿足,Feature 型別)。請將槽位選擇器所要求的標籤加入該 Feature 的標籤,或以已帶有它們的 Feature 填入該槽位。)
以及在限制本身無法被評估時:
attachment slot selector unsatisfied ("<selector>", declared on slot "<slot>", which could not be evaluated: "<why it could not be evaluated>"). Correct the selector on the slot’s declaration in the component’s catalog entity.(附加槽位選擇器未滿足(選擇器,宣告於槽位,無法評估:原因)。請更正元件目錄實體中該槽位宣告上的選擇器。)
[OPS_ERROR E0008] release.yaml at .spec.boundaries.main.components.app.features.identity
attachment slot selector unsatisfied ("feature.aggrega.ai/kind!=secret", declared on slot "identity", not satisfied by the labels of the Feature filling it, "core/secret-value"). Add the labels the slot's selector requires to the Feature's labels, or fill the slot with a Feature that already carries them.
在 Aggregate 中寫在元件上的相同填入會回報 [DEVELOPER_ERROR E0008] aggregate.yaml at .spec.components.app.features.identity。
attachment slot selector unsatisfied ("<selector>", declared on slot "<slot>", of socket "<socket>", filled on the connection "<alias>", not satisfied by the labels of the Feature filling it, "<feature-type>"). Add the labels the slot’s selector requires to the Feature’s labels, or fill the slot with a Feature that already carries them.(附加槽位選擇器未滿足(選擇器,宣告於插槽的槽位,在連線上填入,未被填入該槽位的 Feature 的標籤滿足,Feature 型別)。請將槽位選擇器所要求的標籤加入該 Feature 的標籤,或以已帶有它們的 Feature 填入該槽位。)
attachment slot selector unsatisfied ("<selector>", declared on slot "<slot>", of socket "<socket>", which could not be evaluated: "<why it could not be evaluated>"). Correct the selector on the slot’s declaration in the socket’s featuresSchema on the component’s catalog entity.(附加槽位選擇器未滿足(選擇器,宣告於插槽的槽位,無法評估:原因)。請更正元件目錄實體上插槽的 featuresSchema 中該槽位宣告上的選擇器。)
介面上的其餘一切仍然自由。其 Feature 不符合任何已宣告槽位的附加項目會建置成功;在某個已有東西繫結的槽位旁邊多出的附加項目也是,只要它符合的其他槽位沒有被留空。元件從子系統或 Release 邊界繼承的附加項目永遠不會被判定,所以共用的形狀——一個認證在多個元件所處的範圍附加一次,沒有元件填入該槽位——會成功建置。未宣告 selector: 的槽位,對它是為哪個 Feature 而設沒有任何說法,所以沒有附加項目以此方式受它約束。連線所帶的附加項目在此也不被判定:插槽的槽位是封閉集合,連線上的任何其他名稱會在「A connection carries an attachment under a name its socket declares no slot for(連線帶有一個附加項目,其名稱在其插槽中沒有宣告槽位)」之下中止。
attachment written under a name no slot declares fits a slot its component leaves empty ("<attachment>", on component "<component>", attaching the Feature "<feature-type>", which fits the empty slot "<slot>"). Attach it as "<slot>" to fill the slot.(以沒有槽位宣告的名稱撰寫的附加項目符合其元件留空的槽位(附加項目名稱,位於元件,附加的 Feature 型別,其符合空槽位)。請以該槽位名稱附加它以填入該槽位。)
當 Feature 符合多個空槽位時,訊息會依元件的型別宣告它們的順序指名每一個,並將選擇留給你:
attachment written under a name no slot declares fits a slot its component leaves empty ("<attachment>", on component "<component>", attaching the Feature "<feature-type>", which fits the empty slot "<slot>", and the empty slot "<another-slot>"). Attach it under the name of the slot it is meant to fill.(以沒有槽位宣告的名稱撰寫的附加項目符合其元件留空的槽位(附加項目名稱,位於元件,附加的 Feature 型別,其符合空槽位,以及另一個空槽位)。請以它要填入的槽位名稱附加它。)
[OPS_ERROR E0328] release.yaml at .spec.boundaries.main.components.app.features.metrics
attachment written under a name no slot declares fits a slot its component leaves empty ("metrics", on component "app", attaching the Feature "core/prometheus-exporter", which fits the empty slot "identity"). Attach it as "identity" to fill the slot.
空槽位本身在其為必要時是另一項發現,回報在 Aggregate 中的元件上,位於「Required attachment slot not bound(必要的附加槽位未繫結)」之下。
這與近似提示的差異。 「An attachment name is one edit from a declared slot(附加項目名稱與已宣告的槽位僅差一個編輯)」下的提示,關乎名稱的拼寫:名稱與某個槽位僅差一次編輯,而附加項目的 Feature 不滿足該槽位的 selector:,它會建置並回報警告。此中止關乎 Feature 符合什麼,與名稱無關:名稱可以是任何東西,而它符合的槽位必須是留空的。當名稱與某個槽位僅差一次編輯且其 Feature 確實符合該槽位時,不會發出提示,而若該槽位留空,此中止就是回報的唯一發現。
An attachment delivers a key another inject source already claimed(附加項目傳遞了另一個 inject 來源已宣告的鍵)
三種撰寫介面透過 inject: 區塊傳遞到一個元件的注入管道:元件自己的 inject: 區塊、其相依區塊項目上的 inject: 區塊,以及附加到它的每個 Feature 上的區塊。它們每個傳遞機制共用一個有鍵的空間,所以其中兩者宣告的鍵不明確到底哪個值抵達,建置會停止,而不是讓一個介面悄悄取代另一個。附加的 Feature 也可以用第二種方式傳遞,即透過其 FeatureRecipe 的 injectMapping;該路徑在每個區塊都已傳遞後才遇到同一個空間,並回報在下方的「Two attached Features deliver one key, the later through its FeatureRecipe’s injectMapping(兩個已附加的 Features 傳遞同一個鍵,後者透過其 FeatureRecipe 的 injectMapping)」之下。
此條件是該空間的附加項目區塊這一側。當附加項目自己的 inject: 區塊宣告了某個較早的傳遞已持有的鍵時就會回報——上面「Duplicate delivery key across inject sources(跨 inject 來源的重複傳遞鍵)」下的項目是同一條規則從開發者撰寫這一側來讀,兩者合起來涵蓋了每個區塊的宣告。
順序決定誰發生衝突。 每個 inject: 區塊都在任何對應渲染之前傳遞,而對應以固定的順序渲染——即注入對應走訪元件已附加 Features 的順序,描述於編譯管線——所以一個鍵下的第一個傳遞是持有它的那個,後來的 Feature 才是被回報的。只看是否存在:不比較值,所以兩個 Features 在同一個鍵下傳遞相同的值仍會被回報。對應輸出完全不帶的鍵不算傳遞;它帶有但值為空的鍵則算,因為空值會取代原有的任何東西。同一個鍵在兩個不同傳遞機制之下是兩個鍵,不是衝突。
duplicate delivery key across two attachments: an attachment’s FeatureRecipe writes a delivery key another attachment already delivered ("<key>", mechanism "<mechanism>", attachment "<attachment>", delivered first by attachment "<other-attachment>"). Give one of the two attachments a key of its own, or attach one fewer: the key this attachment delivers under is chosen by its FeatureRecipe, which can read the attachment’s own values and infra, and the other’s is chosen the same way or by its own inject block where it delivered through one. A Release sets an attachment’s infra and never its values, so where a key is chosen by a value, attach that attachment in the Aggregate with the value, and keep giving the rest from the Release.(跨兩個附加項目的重複傳遞鍵:附加項目的 FeatureRecipe 寫入了另一個附加項目已傳遞的傳遞鍵(鍵、機制、附加項目、先由另一個附加項目傳遞)。請為兩個附加項目之一提供自己的鍵,或少附加一個:此附加項目傳遞所用的鍵由其 FeatureRecipe 選擇,它可以讀取附加項目自己的 values 與 infra,而另一個的鍵以同樣方式選擇,或在它透過 inject 區塊傳遞時由其自己的 inject 區塊選擇。Release 設定附加項目的 infra 而從不設定其 values,所以當鍵由某個值選擇時,請在 Aggregate 中附加該附加項目並帶上該值,其餘的繼續從 Release 提供。)
custom inject mechanism has no matching key in injectMapping output; add the mechanism’s key to the Recipe injectMapping ("<mechanism>", recipe "<featurerecipe>")(自訂 inject 機制在 injectMapping 輸出中沒有相符的鍵;請將該機制的鍵加入 Recipe 的 injectMapping(機制、配方))
FeatureRecipe injectMapping output writes a key no delivery mechanism of the host reads ("all", recipe "<featurerecipe>", an output may carry "env, file, arg, or a custom mechanism the host's Recipe reads under its own name")(FeatureRecipe 的 injectMapping 輸出寫入了主機的任何傳遞機制都不讀取的鍵(鍵、配方、輸出可以帶有的鍵))
provides block references a root outside the self-contained set ("<expression>")(provides 區塊參照了自足集合之外的根(運算式))
中止定位在宣告該項目的 Recipe 與其內撰寫的鍵——.spec.provides.<name>——所以它指名要編輯的區塊,而不是繫結該 Recipe 的元件。每個伸出介面之外的項目都會在同一次建置中回報;超過一個時,發現會歸在 provides entries that reach outside the data they are evaluated against 之下。
所發出的訊息,針對元件 Recipe 自己的 locals: 區塊中的項目。它定位在 Recipe 內撰寫的鍵,而每個違規項目都在一次建置中回報;超過一個時,發現會歸在 locals entries that read a sibling they cannot 之下:
locals entry references a sibling defined later in the same block ("<expression>", the key it names is "<referenced>", resolved at this point "<the locals available here>", reached through the component "<component>"). define "<referenced>" above "<key>" in the locals block(locals 項目參照了同一區塊中較後定義的同層項目(運算式、其所指名的鍵、此處已解析的 locals、所經由的元件)。請在 locals 區塊中將被參照的項目定義在該鍵之上)
locals entry references a sibling defined later in the same block ("<expression>", the key it names is "<key>", resolved at this point "<the locals available here>", reached through the component "<component>"). a locals entry cannot read itself; compute the value from .values and .infra directly(locals 項目參照了同一區塊中較後定義的同層項目(運算式、其所指名的鍵、此處已解析的 locals、所經由的元件)。locals 項目無法讀取自身;請直接從 .values 與 .infra 計算該值)
一個 Recipe 由許多元件繫結,所以共用區塊中的一個錯誤,會為每個繫結它的元件各回報一次——而 reached through the component 就是區分這些發現的依據。 它們共用一個位置,因為它們都是關於同一份文件中的同一個撰寫項目;位置是要編輯之處,而元件名稱是每個發現所代表的是你的哪個元件。這些發現不會合併為一個,因為合併會說有東西錯了,卻沒說它觸及哪些元件,而那正是你必須採取行動的部分。
template references a key the locals block does not declare (Recipe <recipe> provides[<key>] references <expression>, the locals block declares no <referenced>, it declares <the keys it does declare>). correct the key name(範本參照了 locals 區塊未宣告的鍵(Recipe 名稱、provides 的某個項目參照了某運算式,locals 區塊未宣告被參照的鍵,它宣告的是其所宣告的鍵)。請更正鍵名)
template references a key the locals block does not declare ("<expression>", the missing key is "<referenced>", the block declares "<the keys it does declare>", reached through the component "<component>"). correct the key name(範本參照了 locals 區塊未宣告的鍵(運算式、缺少的鍵、區塊所宣告的鍵、所經由的元件)。請更正鍵名)
此檢查讀取參照所解析到的路徑,而不是其按鍵拼寫,所以區塊的別名會被追蹤:透過 with .locals 主體重新繫結的點所到達的鍵,或透過繫結到 .locals 的變數所到達的鍵,會依與直接拼寫完全相同的條件檢查並以相同方式中止,括號中從區塊讀出的鍵也是——{{ (.locals).nope }} 或 {{ ($.locals).nope }}——因為括號只產生區塊本身,沒有其他。有一種拼寫會逃過檢查:透過範本文字無法指名其結果的呼叫所到達的鍵——{{ index .locals "nope" }},或 {{ (default dict .locals).nope }}——因為這種呼叫產生的內容是在範本執行時決定的,而不是由所寫的內容決定。將不存在的鍵讀作這種呼叫結果的欄位——即 (default dict .locals).nope 形式——不會中止,並會渲染範本引擎的預留位置文字 <no value>。透過 index 到達的不存在鍵會中止,但是以下方的「A template indexes a map with a key the map does not hold(範本以對應表未包含的鍵索引該對應表)」,而不是此檢查:index 會對對應表未持有的任何對應表鍵中止。因此 index 仍是到達名稱本身是計算出來的鍵的方式,而區塊未宣告的計算出的名稱仍會依其鍵回報。
Template references a root the render context does not define(範本參照了渲染情境未定義的根)
template references a root the render context does not define (template <template-name> references <dotted-path>, the render context defines <the roots that context defines>)(範本參照了渲染情境未定義的根;所指名的範本參照了該路徑,而渲染情境定義了該情境所定義的根)
而當根正確、但已宣告支柱之下的某個鍵不正確時:
template references a root the render context does not define (template <template-name> references <dotted-path>, <pillar> defines <the keys that pillar defines>)(範本參照了渲染情境未定義的根;所指名的範本參照了該路徑,而該支柱定義了該支柱所定義的鍵)
artifact template references a pillar the Recipe does not declare (<expression>, artifact <output-name>, attachment <attachment-name>)(成品範本參照了 Recipe 未宣告的支柱)
此中止與上文的「Template references a root the render context does not define(範本參照了渲染情境未定義的根)」不同,值得區分,因為補救方式不同。那一個針對的是介面完全沒有定義的根,或在形狀固定的支柱之下拼錯的鍵——在確實宣告了工作負載的 Recipe 上的 {{ .workload.containres }}。這一個針對的是對根本不存在的支柱的、拼寫正確的參照。
A template reads a rendered name the node’s provider does not report(範本讀取了節點的提供者未回報的渲染後名稱)
template 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 (".context.rendered_name", provider "<provider>"). read {{ .context.instance_id }} instead: this node supplies no source of its own, so its resources are named after the node’s identity(範本讀取目標為該節點渲染之資源所給的名稱,而此節點的提供者並未回報這樣的名稱;符合規範的範本讀取節點自己的提供者所提供的值。請改讀節點的識別碼:此節點未提供自己的來源,所以其資源是依節點的身分命名的)
而當節點確實提供來源、但提供者不衍生這樣的名稱時:
template 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 (".context.rendered_name", provider "<provider>"). write a value that does not depend on a name this target derives: it reports none for the output it renders from supplied source, so there is nothing of that kind to read here(範本讀取目標為該節點渲染之資源所給的名稱,而此節點的提供者並未回報這樣的名稱;符合規範的範本讀取節點自己的提供者所提供的值。請寫一個不依賴此目標所衍生之名稱的值:它對於由所提供的來源渲染的輸出不回報任何名稱,所以這裡沒有那一類東西可讀)
template reads its callers’ render facts, but the FeatureRecipe does not set readsCallerRenderFacts (<reference>, written in <field>)(範本讀取其呼叫端的渲染事實,但 FeatureRecipe 並未設定 readsCallerRenderFacts)
pipeline 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 (<reference>, written in <field>)(管線步驟讀取其呼叫端的渲染事實,但管線步驟不讀取連接到其主機的元件;它只讀取主機自己的渲染事實)
參照是相對於它所讀取的連線來引用的——.render_facts 或 .render_facts.<name>——如同上一個項目,而欄位以 id 指名步驟:pipeline[<step>].with 或 pipeline[<step>].when。當多個步驟讀取這些事實時,每一個都在一行指名它們共通之處的文字下各有自己的回報:
pipeline steps reading their callers’ render facts(管線步驟讀取其呼叫端的渲染事實)
template reads the render facts of a component its host is wired to, but the FeatureRecipe does not set readsTargetRenderFacts (<reference>, written in <field>)(範本讀取其主機所連接之元件的渲染事實,但 FeatureRecipe 並未設定 readsTargetRenderFacts)
pipeline 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 (<reference>, written in <field>)(管線步驟讀取其主機所連接之元件的渲染事實,但管線步驟只讀取主機自己的渲染事實)
參照的引用方式如上一個項目,而欄位以 id 指名步驟:pipeline[<step>].with 或 pipeline[<step>].when。當多個步驟讀取這些事實時,每一個都在一行指名它們共通之處的文字下各有自己的回報:
pipeline steps reading the render facts of the components their host is wired to(管線步驟讀取其主機所連接之元件的渲染事實)
selector violation ("", declared on socket "", not satisfied by the labels of ""). Add the labels the selector requires to the target’s component type, or wire the socket to a component that already carries them.(選擇器違規。請把選擇器所要求的標籤加到目標的元件型別,或把插槽連接到已帶有這些標籤的元件)
selector violation ("", declared by Feature "", not satisfied by the labels of ""). Add the labels the Feature’s appliesTo requires to this component’s type, or attach a Feature whose applicability the component already satisfies.(選擇器違規。請把 Feature 的 appliesTo 所要求的標籤加到此元件的型別,或附加一個元件已滿足其適用性的 Feature)
selector violation ("", declared by Feature "", which could not be evaluated: ""). Correct the appliesTo selector on the Feature’s catalog entity.(選擇器違規。請更正 Feature 目錄實體上的 appliesTo 選擇器)
selector violation ("", declared on socket "", which could not be evaluated: ""). Correct the selector on the socket’s declaration in the component type’s usesSchema.(選擇器違規。請更正元件型別的 usesSchema 中該插槽宣告上的選擇器)
[OPS_ERROR E0007] release.yaml at .spec.boundaries.main.components.app.features.metrics
selector violation ("component.aggrega.ai/type in (server, worker)", declared by Feature "core/prometheus-exporter", not satisfied by the labels of "app"). Add the labels the Feature's appliesTo requires to this component's type, or attach a Feature whose applicability the component already satisfies.
capability is served by more than one provider plugin; add a plugins.providers entry to select one: capability "<capability-name>" is served by more than one provider plugin (<plugin-1>, <plugin-2>); add a plugins.providers entry for "<capability-name>" selecting one(一個能力由多個提供者外掛程式提供;請新增 plugins.providers 項目以選定其一)
boundary-level Feature’s output is routed to a dispatch path nothing assembles (boundary "<boundary>", feature "<instance>", dispatch path "<path>", provider "<provider>"). attach the Feature at a boundary whose output path also receives its components, or give the boundary’s components the directory the Feature’s output is routed to(邊界層級 Feature 的輸出被送往沒有任何東西組裝的分派路徑。請把 Feature 附加在其輸出路徑也接收其元件的邊界,或讓該邊界的元件使用 Feature 輸出所送往的目錄)
[OPS_ERROR E0365] release-compose.yaml at .spec.boundaries.bridge.features.gateway
boundary-level Feature's output is routed to a dispatch path nothing assembles (boundary "bridge", feature "gateway", dispatch path "bridge/compose", provider "compose"). attach the Feature at a boundary whose output path also receives its components, or give the boundary's components the directory the Feature's output is routed to
當有多個 Feature 有問題時,這些發現會一起出現在回報 boundary-level Features whose output is routed to a dispatch path nothing assembles 之下。
這個中止針對的是變數。在被允許的變數之下拼錯的鍵——{{ .manifest.recipe_nmae }}——改為回報上文的「Template references a root the render context does not define(範本參照了渲染情境未定義的根)」,指名 .manifest 確實定義的鍵,因為變數本身被接受,只有鍵是錯的。
輸出的訊息:
path template references a field not in the documented allowlist ("<dotted-path>", written in "<directory|subDirectory>", the render context defines "<the variables that field may read>")(路徑範本參照了不在文件所載允許清單中的欄位)
boundary output directory does not name a directory beneath the output root (Release "<release>", boundary "<boundary>", directory: "<value>", output path "<path>"). write a directory beneath the output root, such as “deploy/prod” — no leading ”/”, no ”..” climbing above it, and not the output root itself(邊界輸出目錄並未指名輸出根目錄之下的目錄。請寫一個輸出根目錄之下的目錄,例如「deploy/prod」——不要以「/」開頭、不要用「..」向上爬出,也不要是輸出根目錄本身)
boundary-level Feature instance name is not a directory name (Release "<release>", boundary "<boundary>", feature "<instance>"). rename the Feature instance under the boundary’s features to an ordinary name, such as “audit”(邊界層級 Feature 的實例名稱不是目錄名稱。請把邊界的 features 之下的 Feature 實例改為一般名稱,例如「audit」)
修正方式: 把邊界 features: 之下的實例改名為一般名稱。
Instance-ID collision across boundaries assembling to the same path(跨邊界組裝到同一路徑的實例 ID 衝突)
組裝到同一個(路徑、提供者)組合的兩個邊界,貢獻了實例 ID 相同的元件。合併後的組裝無法區分這兩個元件片段——單一個 Helm chart 無法帶有兩個名為 web-server 的 Deployment,單一個 docker-compose 檔案也無法帶有兩個名為 api 的服務。
輸出的訊息:
multiple contributors share an instance ID at the same dispatch path: dispatch path "<path>" provider "<provider>" already contains node "<instance-id>" (contributing boundaries: [<boundaries>]); component instance IDs must be unique within an assembly group(多個貢獻者在同一個分派路徑上共用實例 ID;元件實例 ID 在組裝群組內必須是唯一的)
assembled output collision: two contributors write the same output path (output path "<output-path>", written by "<contributor-1> and <contributor-2>", assembled within "<boundary-1> and <boundary-2>")(組裝輸出衝突:兩個貢獻者寫入同一個輸出路徑)
每個貢獻者都以它是什麼來命名,這說明了它的名稱寫在何處:元件實例是 component <name>,附加到邊界的功能是 feature <name>,組裝本身合併的輸出是 the <provider> assembly。貢獻者依名稱順序列出,所以相同輸入的每次建置,句子都相同。
Recipe 貢獻到邊界共用輸出的檔案也適用這條規則。 Recipe 的 boundary: 區塊把它的檔案寫在提供者自己組裝的輸出旁邊,每個檔名一次。多個元件宣告同一個名稱且位元組相同的是同一個檔案,永不衝突;以不同位元組宣告則會在此衝突,指名該檔案與宣告它的每個元件,提供者的組裝本身所寫的名稱也是如此——例如 terraform 的 aggrega.modules.tf,它會在貢獻者中指名 the terraform assembly。多個元件以相同方式宣告、而與組裝自己的檔案相遇的檔案,會連同所有元件一起被指名,如 component <name-1> and component <name-2>。
derived name collision: one name is derived more than once in one key space ("<name>", key space "<kind-of-name>", derived by component "<contributor>", provider "<provider>", dispatch path "<path>")(衍生名稱衝突:同一個名稱在同一個鍵空間中被衍生多次(名稱、鍵空間、由元件衍生、提供者、分派路徑))
貢獻者會以其本身的種類來指名,而這就說明了它的名稱寫在哪裡:元件實例是 derived by component,附加到邊界的功能是 derived by feature。
derived name collision: one name is derived more than once in one key space ("<name>", key space "<kind-of-name>", derived by feature "<feature-name>", attached at boundary "<boundary-path>", provider "<provider>", dispatch path "<path>")(衍生名稱衝突:同一個名稱在同一個鍵空間中被衍生多次(名稱、鍵空間、由功能衍生、附加於邊界、提供者、分派路徑))
元件會帶有其渲染衍生了該名稱的附加項目的鍵,因為元件對你寫的每個鍵各帶有一個附加項目:
derived name collision: one name is derived more than once in one key space ("<name>", key space "<kind-of-name>", derived by component "<component>", carrying attachment "<attachment-key>", provider "<provider>", dispatch path "<path>")(衍生名稱衝突:同一個名稱在同一個鍵空間中被衍生多次(名稱、鍵空間、由元件衍生、帶有附加項目、提供者、分派路徑))
derived name collision: one name is derived more than once in one key space ("<name>", key space "<kind-of-name>", derived more than once by component "<contributor>", provider "<provider>", dispatch path "<path>")(衍生名稱衝突:同一個名稱在同一個鍵空間中被衍生多次(名稱、鍵空間、由元件多次衍生、提供者、分派路徑))
two things a plugin produced occupy one name in its output > cloudformation-provider: an export name a cross-boundary link derives is already declared by another Outputs entry in the same stack: the link derives the export name <export-name> for provides key <provides-key> of component <component> in boundary <boundary> of Release <release>, and another Outputs entry of the same stack already declares that same export name — that declaration sits under the stack output <stack-output>, a name this provider assembles rather than one a Recipe wrote; each shadowing Outputs entry spells its export name exactly as the halt does, so searching your Recipes for that name reaches the entry — rename the export name the entry declares, or remove that entry’s Export block and let the link publish the export(外掛程式產生的兩個東西在其輸出中佔用同一個名稱 > cloudformation-provider:跨邊界連結所衍生的匯出名稱,已被同一堆疊中的另一個 Outputs 項目宣告:該連結為 Release 的邊界中元件的提供鍵衍生出匯出名稱,而同一堆疊的另一個 Outputs 項目已宣告同一個匯出名稱,該宣告位於堆疊輸出之下,這是此提供者組裝的名稱,而不是 Recipe 所寫的名稱;每個遮蔽的 Outputs 項目都與中止完全一致地拼寫其匯出名稱,所以在你的 Recipes 中搜尋該名稱就能找到該項目,請重新命名該項目所宣告的匯出名稱,或移除該項目的 Export 區塊,讓連結發布匯出)
two things a plugin produced occupy one name in its output > cloudformation-provider: the stack output a cross-boundary link publishes its export on already carries an Export the link did not write: the link derives the export name <export-name> for provides key <provides-key> of component <component> in boundary <boundary> of Release <release>, and the stack output this provider assembles for that key and component <what-it-found>; remove that entry’s Export block and let the link publish the export every consumer imports(外掛程式產生的兩個東西在其輸出中佔用同一個名稱 > cloudformation-provider:跨邊界連結用來發布其匯出的堆疊輸出,已帶有連結並未寫入的 Export:該連結為 Release 的邊界中元件的提供鍵衍生出匯出名稱,而此提供者為該鍵與元件組裝的堆疊輸出出現了所發現的情形;請移除該項目的 Export 區塊,讓連結發布每個使用端所匯入的匯出)
<what-it-found> 依上述形狀的順序,為下列其中之一:
already declares the export name <name> > already declares an export name that is not a string — one given as an intrinsic, which resolves at deploy time, so this provider cannot read what it spells > already carries an Export block declaring no export name > already carries an Export that is not a block, where CloudFormation expects one carrying a Name(已宣告匯出名稱 > 已宣告不是字串的匯出名稱,也就是以內建函式給出的名稱,它在部署時解析,所以此提供者無法讀出它所拼寫的內容 > 已帶有未宣告任何匯出名稱的 Export 區塊 > 已帶有不是區塊的 Export,而 CloudFormation 預期的是帶有 Name 的區塊)
FeatureRecipe template references a field outside its scope’s allowlist(FeatureRecipe 範本參照了其範圍允許清單以外的欄位)
具有 executionScope: boundary 的 FeatureRecipe,在為邊界執行一次的範本中參照了僅限元件的欄位,例如 .context.instance_id、.context.inject 或 .context.uses(這些欄位在邊界範圍內沒有有意義的值);這些範本是其 locals:、provides:、valuesMapping:、artifacts:,或管線步驟的 with: 或 when:。反向的條件也成立:元件範圍(預設)的 FeatureRecipe 參照 .boundary.* 欄位,同樣無法通過驗證器。驗證在解析時進行,在任何渲染工作開始之前,依相關範圍的欄位允許清單檢查。邊界範圍 FeatureRecipe 的 injectMapping 不在這裡檢查:它會為附加項目所到達的每個元件各執行一次,在該元件的情境中執行,所以它讀取 .context.*,而其中對 .boundary 的參照,會由上方的「Template references a root the render context does not define(範本參照了渲染情境未定義的根)」回報。
輸出的訊息:
FeatureRecipe template references a per-component-only field with executionScope: boundary ("<dotted-path>", written in "<field>", the render context defines "<the roots the boundary-scope context defines>")(FeatureRecipe 範本在 executionScope: boundary 下參照了僅限元件的欄位(點分路徑、寫在的欄位、渲染情境所定義的根))
[CATALOG_ERROR E0039] scope-probe-fr at .spec.valuesMapping
FeatureRecipe template references a per-component-only field with executionScope: boundary (".context.instance_id", written in "valuesMapping", the render context defines ".values, .infra, .locals, .provides, .features, .metadata, .steps, .source, .boundary")
這個介面的 .context 正是造成這種情況的原因:它只帶有 instance_id、labels 與 annotations,沒有別的。因此 .context.inject 與 .context.uses 是這個介面的情境未定義的鍵,而這個參照會在解析時、在任何東西渲染之前,以上方的「Template references a root the render context does not define(範本參照了渲染情境未定義的根)」中止。診斷會指名範本所屬的機制與傳遞鍵,並列出 .context 在此定義的鍵,所以同一份回報涵蓋了確實想取得跨節點資料的情況,以及像 {{ .context.nmae }} 這樣的單純拼錯,後者是更常見的錯誤,否則會渲染成空無一物。
發出的訊息,是參照層級的細節;周圍的回報也會指名節點、機制與傳遞鍵:
template references a root the render context does not define (template self-inject.<mechanism>[<key>] references .context.inject, .context defines .context.instance_id, .context.labels, .context.annotations)(範本參照了渲染情境未定義的根(範本參照了,而情境定義了))
resolve: parse template at <name>:<version>.spec.locals.<key>, read by <name>:<version>.spec.source.<field>: resolve: source-template parse error (cause: template: <name>:<version>.spec.locals.<key>:1: function "<function>" not defined); a source field, and every locals entry it reads, is evaluated when the source is resolved with Aggrega’s own helpers only (optional, capitalizedWords and index), not the Sprig functions a render adds; write the value without that function, or move the value into a locals entry no source field reads(解析:解析範本,由來源欄位讀取:解析:來源範本解析錯誤(原因:範本:未定義函式);來源欄位以及它讀取的每個 locals 項目,是在解析來源時僅以 Aggrega 自己的輔助函式(optional、capitalizedWords 與 index)求值,而不是渲染所加入的 Sprig 函式;請在不使用該函式的情況下寫出該值,或將該值移到沒有來源欄位讀取的 locals 項目中)
source: 欄位本身呼叫該函式時,回報方式相同,只指名該欄位。
涵蓋範圍是座標所讀取的項目。 解析座標時,會對 source: 欄位所讀取的每個 locals: 項目求值,並對這樣的項目依序讀取的每個項目求值,沒有其他項目。沒有任何 source: 欄位觸及的項目,在解析來源時不會被求值、解析或檢查,所以渲染需要的本機值,例如以 Sprig 函式做算術的,或以 .context.instance_id 命名資源的,對固定成品沒有任何影響;它是在 Recipe 渲染時求值,其中的任何錯誤也在那時回報。欄位讀取了哪些項目,是從其文字決定的,所以以不指名任何單一項目的方式讀取 .locals 的欄位,例如 {{ index .locals "version" }}、把整個區塊交給 optional,或繫結到變數,會讓每個項目都被求值,而對於以這種方式觸及的項目,其診斷會這麼說:它不寫 read by <field>,而是寫 evaluated for <field>, which reads the locals block as a whole rather than by entry, so every entry is evaluated。
參照順序契約在這裡對座標所讀取的每個項目都相同。 解析座標時,會拒絕渲染在它求值的每個項目中所拒絕的相同參照:讀取區塊在其下方宣告的同層項目的項目,以及讀取區塊未宣告之鍵的任何範本。兩者回報的都是上方「locals: entry references a sibling defined later in the same block(項目參照了同一區塊中較後定義的同層項目)」與「locals: key does not exist(鍵不存在)」之下記載的條件,不論哪個解析先碰到它,條件與補救方式都相同,而回報會指名該項目是為哪個 source: 欄位求值的。沒有任何 source: 欄位讀取的項目中的錯誤,會在 Recipe 渲染時以相同的條件被拒絕。
resolve: evaluate template at <name>:<version>.spec.source.<field>: resolve: source-template evaluation failure at lock time (cause: template: … map has no entry for key "<key>"); it reads <name>:<version>.spec.locals.<key>, which could not be evaluated here (cause: template: … map has no entry for key "context")(解析:求值範本:解析:鎖定時的來源範本求值失敗(原因:範本:…對應表沒有該鍵的項目);它讀取在這裡無法求值的項目(原因:範本:…對應表沒有該鍵的項目))
source-version template at <name>:<version>.spec.source.<field> references .provides, which is an invalid reverse reference (locals feed provides, never the reverse) — refactor to read only .values and .infra (and .locals over the same): resolve: source-template references .provides (invalid reverse reference)(位於 的 source-version 範本參照了 ,這是無效的反向參照(locals 提供給 provides,絕不反向)——請重構為只讀取 與 (以及同樣範圍內的 ):resolve: source-template references .provides(無效的反向參照))
template: <template>:<line>:<column>: executing "<template>" at <index <map> <key>>: error calling index: template indexes a map with a key the map does not hold (key "<key>"). read a key that may be absent through a function that tests for it first, such as optional, get or hasKey(範本:執行時呼叫 index 發生錯誤:範本以對應表未包含的鍵索引該對應表(鍵)。請透過會先測試的函式讀取可能不存在的鍵,例如 optional、get 或 hasKey)
在以自己的條件回報範本失敗的介面上,也就是 provides: 項目(「A provides: template could not be evaluated(提供項目的範本無法求值)」)、參數插值(「A {{ .parameters.* }} reference cannot be interpolated(參照無法插值)」)、結構描述述詞(「An x-aggrega-when: or x-aggrega-validate: predicate cannot be evaluated(述詞無法求值)」)、source: 座標(「Resolving a source: coordinate registers a narrower function set(解析座標時註冊較窄的函式集)」),開頭帶有該條件的代碼,而上一行是它所帶的原因,包括該鍵。
不會被印出,當讀取位於 if、with 或 range 的內容,或 else 分支之內,因為該讀取是否執行取決於條件,而條件可能正是讓它不會遇到空無一物的那個測試,所以 {{ if .values.user }}{{ .values.user }}{{ end }} 旁邊有 range .values.user 時,渲染結果與以往相同。當它是防護自己的測試、變數的指派,或函式的引數時也不會被印出,例如 {{ .values.user | quote }}、{{ toYaml .values.user }},其輸出是函式的答案,而不是預留位置。
在確實會對空無一物的路徑執行的內容之內印出,仍然會寫出 <no value>,這項檢查不會涵蓋它。一個路徑的某一種拼寫與其他每一種拼寫是同一個路徑,所以一種拼寫的印出與另一種拼寫的 range 會被一併判斷,而訊息會引述範本最先寫的那種拼寫。持有值的路徑照常印出與迭代,而其父項空無一物的路徑,則留給深入空無一物時已經引發的中止來處理。
發出的訊息,作為回報的最後一行:其上方的框架會指名節點與範本,而開頭帶有此條件的代碼:
template reads a path as a value and iterates it, and the data holds nothing at that path (path <path>). supply a value at the path, guard the printed read with an if or with over the path, or read it one way only(範本將路徑作為值讀取並對它迭代,而資料在該路徑上空無一物(路徑)。請在該路徑提供值、以 if 或 with 防護被印出的讀取,或只以一種方式讀取)
Aggregate 中的參數插值也會在此條件的代碼下回報同一行。provides: 項目是在「A provides: template could not be evaluated(提供項目的範本無法求值)」之下回報範本失敗,所以在那裡開頭帶有該條件的代碼,而上一行是它所帶的原因,包括路徑。
Recipe 或 FeatureRecipe 的值範本,也就是「Missing template key — asymmetric policy(缺少範本鍵:非對稱原則)」所列的範本之一,其中包括 Workload 內容、artifacts: 內容或 locals: 項目,已解析、開始執行,並在產生其文字之前停止。讓它停止的是範本引擎自己的原因,中止會把它帶在下方:穿過沒有東西提供的容器的參照,例如未撰寫任何 tls 時的 {{ .values.tls.ca }};兩種型別的值之間的比較,例如 {{ if eq .context.instance_id 1 }},它拿文字與數字比較,並以 cannot compare text with a number 中止;或是對 Sprig 的 fail 的呼叫,值範本可以用它以自己的訊息拒絕輸入。
這些範本上有四種失敗,改為在各自的條件下回報。provides: 項目在下方的「A provides: template could not be evaluated(提供項目的範本無法求值)」之下回報,其訊息中帶有這個句子與引擎的原因。對對應表未包含的鍵的 index 讀取,在上方的「A template indexes a map with a key the map does not hold(範本以對應表未包含的鍵索引該對應表)」之下回報。既印出又迭代同一個空無內容的路徑的範本,會在上方的「A template reads and iterates a path that holds nothing(範本讀取並迭代一個空無內容的路徑)」之下,在執行之前就被拒絕。而無法解析的範本在執行之前就會停止,所以它不是這個條件。
ir-verdict: plugin "<the attachment's uri>": with.settings does not satisfy the plugin’s declared settings schema: <what the schema check found>: policy attachment settings do not satisfy the plugin’s declared settings schema(ir-verdict:外掛程式:with.settings 不符合外掛程式宣告的設定結構描述:結構描述檢查所發現的內容:原則附加項目的設定不符合外掛程式宣告的設定結構描述)
失敗的是什麼,是以步驟的 id 與其索引來命名,而後面的子句說明是哪個部分失靈:渲染步驟的 with 輸入、呼叫本身、主機無法讀取的輸出、外掛程式回傳的錯誤、外掛程式輸出的錯誤嚴重性診斷、修補引擎拒絕的修補,或指名了走訪所沒有的範圍的修補。
失敗的步驟會整個回復。 文件會還原為步驟執行之前的樣子,步驟自己的輸出也隨之丟棄,所以之後步驟的 when 或 with 無法讀到部分結果。宣告為 optional: true 的步驟接著會回報為警告,走訪繼續進行;不是選用的步驟則會停止建置。optional:不 容忍的是違反宣告的契約,見下方的項目。
pipeline step "<id>"with input does not satisfy the declared input contract: <what the schema check found>: pipeline step typed-I/O contract violation > pipeline step "<id>" returned outputs that do not satisfy the declared output contract: <what the schema check found>: pipeline step typed-I/O contract violation(管線步驟輸入不符合宣告的輸入契約:結構描述檢查所發現的內容:管線步驟具型別 I/O 契約違反 > 管線步驟回傳的輸出不符合宣告的輸出契約:結構描述檢查所發現的內容:管線步驟具型別 I/O 契約違反)
而對於契約未宣告的診斷嚴重性,它會出現在步驟失敗的框架之內:
pipeline step failed: step "<id>" (index <n>): <the severity the host could not route>: pipeline step typed-I/O contract violation(管線步驟失敗:步驟(索引):主機無法路由的嚴重性:管線步驟具型別 I/O 契約違反)
當步驟的 with 範本讀取了宣告為敏感的值時,輸入違反不會指名任何值。 結構描述檢查所發現的內容,會被每個失敗的位置與拒絕它的關鍵字取代,並以指名原因的通知結尾:at '/origin': pattern (the value is withheld because the template that rendered this input reads a value declared sensitive),所以要更正的欄位仍然會被指名。請見 vocabulary/compact-form-authoring.md 的「拒絕對已宣告的值說了什麼」。
兩者都是走訪自己的拒絕,而建置會針對其管線做出該修補的節點來回報它們,所以上方的訊息會出現在指名該節點的中止之下。該中止是同樣兩種定址錯誤中止建置的形式,記載於下方的「A pipeline step addresses documents the node does not have(管線步驟指向節點沒有的文件)」之下,它也涵蓋步驟可能什麼都到達不了的第三種位址,也就是在不對應任何東西的位置,請求主機元件的文件。
修正方式: 問題出在外掛程式,而不是你的文件。測試所預期的值在文件中不存在,通常表示外掛程式正在處理一種它並非為其撰寫的形狀,例如另一個提供者的輸出,或是同一條管線中較早的步驟已經變更過的文件。若該修補由你負責修正,可以把測試放寬到文件實際帶有的內容,或讓步驟的 when 關卡跳過該情況,而不是在修補內部測試它。
A workload: form and the fields beside it do not agree(工作負載的形式與其旁的欄位不一致)
workload declares a persistentTemplate volume but is not form: stateful; declare form: stateful(工作負載宣告了 persistentTemplate 磁碟區,但不是 form: stateful;請宣告 form: stateful) > workload is form: reference but declares no endpoint; set endpoint to the external host or URL the reference points at(工作負載是 form: reference,但未宣告 endpoint;請將 endpoint 設為該參照所指向的外部主機或 URL) > workload declares an endpoint but is not form: reference; declare form: reference or remove the endpoint(工作負載宣告了 endpoint,但不是 form: reference;請宣告 form: reference,或移除 endpoint) > workload is form: scheduled but declares no schedule; set schedule to a 5-field cron expression or an @-macro (e.g. @daily)(工作負載是 form: scheduled,但未宣告 schedule;請將 schedule 設為 5 個欄位的 cron 運算式或 @ 巨集(例如 @daily)) > workload declares a schedule but is not form: scheduled; declare form: scheduled or remove the schedule(工作負載宣告了 schedule,但不是 form: scheduled;請宣告 form: scheduled,或移除 schedule)
workload validation failed (Workload in Recipe <name>:<version>, at <path>, schema stage):
.endpoint: value matches a shape that is not allowed here(工作負載驗證失敗(Recipe 中的 Workload,位於某路徑,結構描述階段): > .endpoint:值符合此處不允許的形狀)
workload schedule is not a valid cron expression; use a 5-field crontab expression (e.g. “0 0 * * *”) or one of @hourly, @daily, @weekly, @monthly, @yearly(工作負載的排程不是有效的 cron 運算式;請使用 5 個欄位的 crontab 運算式(例如 “0 0 * * *”),或 @hourly、@daily、@weekly、@monthly、@yearly 其中之一)
它被記錄的條件是 schedule is not a valid cron expression,也就是其簡短代碼所解析到的內容。
workload declares suspend but is not form: scheduled; declare form: scheduled with a schedule or remove suspend(工作負載宣告了 suspend,但不是 form: scheduled;請宣告帶有 schedule 的 form: scheduled,或移除 suspend)
artifacts $import: is not a bare-name artifact-library reference (#/artifacts/): "<the value as written>" > valuesMapping $import: is not a bare-name mapping-library reference (#/mappings/): "<the value as written>" > workload $import: is not a bare-name workload-library reference (#/workloads/): "<the value as written>"(artifacts 的匯入不是純名稱的成品程式庫參照:所寫的值 > valuesMapping 的匯入不是純名稱的對應程式庫參照:所寫的值 > workload 的匯入不是純名稱的工作負載程式庫參照:所寫的值)
artifacts $import: is not a bare-name artifact-library reference (#/artifacts/): version separator is ’:’, not ’@’ — use "<the corrected value>"(artifacts 的匯入不是純名稱的成品程式庫參照:版本分隔符號是「:」,不是「@」——請改用更正後的值)
artifacts $import: is not a bare-name artifact-library reference (#/artifacts/) ("<the value as written>", bundle "<bundle>", bundle file "<filename>", artifacts entry "<key>"). a bundle file body cannot import another bundle — compose the two at the artifacts entry that consumes them(artifacts 的匯入不是純名稱的成品程式庫參照(所寫的值、套組、套組檔案、artifacts 項目)。套組檔案的本文不能匯入另一個套組——請在使用兩者的 artifacts 項目處組合它們)
artifacts $import: is not a bare-name artifact-library reference (#/artifacts/): bundle "<bundle>" file "<filename>" body is a field-root $import: (nested library import inside a bundle file is not supported; compose at the consumption site)(artifacts 的匯入不是純名稱的成品程式庫參照:套組的檔案本文是欄位根層的 $import:(不支援套組檔案內的巢狀程式庫匯入;請在使用處組合))
valuesMapping $import: is not a bare-name mapping-library reference (#/mappings/) ("<the value as written>"). name the library and the entry either side of the fragment — write #/mappings/(valuesMapping 的匯入不是純名稱的對應程式庫參照(所寫的值)。請在片段兩側分別寫出程式庫與項目名稱——寫成程式庫#/mappings/項目)
workload $import: is not a bare-name workload-library reference (#/workloads/) ("<the value as written>"). name the library and the entry either side of the fragment — write #/workloads/(workload 的匯入不是純名稱的工作負載程式庫參照(所寫的值)。請在片段兩側分別寫出程式庫與項目名稱——寫成程式庫#/workloads/項目)
修正方式: 將該值改寫為 <Library>#<entry-path>,只在你需要為可選取的版本設定下限時,才在程式庫名稱後加上 :<version>。請檢查片段是否與欄位相符:在 workload: 上使用 #/mappings/… 的項目路徑,指名的是該欄位不讀取的介面,並會在此回報,而不是回報為缺少項目。同一種身分形式也適用於結構描述的 $ref:,其拒絕情形記載於上方的「A $ref: is not written in a form the compiler can resolve(參照的寫法不是編譯器能解析的形式)」。
A library $import: names a library or an entry the catalog does not hold(程式庫的匯入指名了目錄中沒有的程式庫或項目)
artifact-library import references an ArtifactLibrary not present in the catalog: ArtifactLibrary "<library>" (bundle "<entry>") > mapping-library import references a MappingLibrary not present in the catalog: MappingLibrary "<library>" (entry "<entry>") > workload-library import references a WorkloadLibrary not present in the catalog: WorkloadLibrary "<library>" (entry "<entry>")(成品程式庫匯入參照了目錄中不存在的 ArtifactLibrary:該 ArtifactLibrary(套組) > 對應程式庫匯入參照了目錄中不存在的 MappingLibrary:該 MappingLibrary(項目) > 工作負載程式庫匯入參照了目錄中不存在的 WorkloadLibrary:該 WorkloadLibrary(項目))
項目不存在:
artifact-library import references a bundle not present in the ArtifactLibrary: bundle "<entry>" in ArtifactLibrary "<library>" > mapping-library import references an entry not present in the MappingLibrary: entry "<entry>" in MappingLibrary "<library>" > workload-library import references an entry not present in the WorkloadLibrary: entry "<entry>" in WorkloadLibrary "<library>"(成品程式庫匯入參照了 ArtifactLibrary 中不存在的套組:ArtifactLibrary 中的該套組 > 對應程式庫匯入參照了 MappingLibrary 中不存在的項目:MappingLibrary 中的該項目 > 工作負載程式庫匯入參照了 WorkloadLibrary 中不存在的項目:WorkloadLibrary 中的該項目)
artifact-library import references a bundle not present in the ArtifactLibrary ("<entry>", ArtifactLibrary "<library>", artifacts entry "<key>")(成品程式庫匯入參照了 ArtifactLibrary 中不存在的套組(該項目、該 ArtifactLibrary、artifacts 項目))
mapping-library import references an entry not present in the MappingLibrary ("<entry>", MappingLibrary "<library>")(對應程式庫匯入參照了 MappingLibrary 中不存在的項目(該項目、該 MappingLibrary))
workload-library import references an entry not present in the WorkloadLibrary ("<entry>", WorkloadLibrary "<library>")(工作負載程式庫匯入參照了 WorkloadLibrary 中不存在的項目(該項目、該 WorkloadLibrary))
它是依每個 Recipe、針對該 Recipe 自己的輸出而提出的,這正是它與組裝中兩個不同貢獻者落在同一路徑上的區別,後者是上方的「Two contributors write the same output path(兩個貢獻者寫入同一個輸出路徑)」,補救方式不同。
輸出的訊息:
artifacts output filename collision: two artifact outputs carry the same filename (Recipe "<recipe>", artifact output "<filename>" emitted more than once)(artifacts 輸出檔名碰撞:兩個成品輸出帶有相同的檔名(Recipe、該成品輸出被發出超過一次))
artifact-library bundle file name does not name a file of its own beneath the artifacts key its output is nested under ("<filename>", ArtifactLibrary "<library>", artifacts entry "<key>"). rename the file inside the ArtifactLibrary bundle to an ordinary file name beneath the artifacts key it is consumed at, such as “config.yaml” or “rbac/role.yaml” — no ”.” or ”..” part, and no leading, trailing or doubled ”/“(成品程式庫套組的檔名,沒有指名其輸出所巢狀其下的 artifacts 鍵底下屬於自己的檔案(該檔名、該 ArtifactLibrary、artifacts 項目)。請將 ArtifactLibrary 套組內的檔案重新命名為其被使用之 artifacts 鍵底下的普通檔名,例如「config.yaml」或「rbac/role.yaml」——不得有「.」或「..」部分,也不得有開頭、結尾或重複的「/」)
artifact-library bundle file name does not name a file of its own beneath the artifacts key its output is nested under (Recipe "<recipe>", artifact "<key>", bundle file "<filename>"). rename the file inside the ArtifactLibrary bundle to an ordinary file name beneath the artifacts key it is consumed at, such as “config.yaml” or “rbac/role.yaml” — no ”.” or ”..” part, and no leading, trailing or doubled ”/“(成品程式庫套組的檔名,沒有指名其輸出所巢狀其下的 artifacts 鍵底下屬於自己的檔案(Recipe、成品、套組檔案)。請將 ArtifactLibrary 套組內的檔案重新命名為其被使用之 artifacts 鍵底下的普通檔名,例如「config.yaml」或「rbac/role.yaml」——不得有「.」或「..」部分,也不得有開頭、結尾或重複的「/」)
imported artifact content does not match the digest recorded for it in entity.lock ("<artifact>", imported file "<path>", its content digests to "<digest>", the recorded pin is "<digest>"). If the file was changed on purpose, run aggrega pin on the entity that imports it to record its new digest; otherwise restore the file > imported artifact content does not match the digest recorded for it in entity.lock ("<artifact>", imported file "<path>", its content digests to "<digest>", the recorded pin is "<digest>", attachment "<attachment>"). If the file was changed on purpose, run aggrega pin on the entity that imports it to record its new digest; otherwise restore the file(匯入的成品內容與 entity.lock 中為它記錄的摘要不相符(該成品、匯入的檔案、其內容的摘要、所記錄的固定項目)。若檔案是刻意變更的,請對匯入它的實體執行 ,以記錄其新的摘要;否則請還原該檔案 > 匯入的成品內容與 entity.lock 中為它記錄的摘要不相符(該成品、匯入的檔案、其內容的摘要、所記錄的固定項目、附加項目)。若檔案是刻意變更的,請對匯入它的實體執行 ,以記錄其新的摘要;否則請還原該檔案)
the files of the entity’s local source do not match the pins recorded for them in entity.lock (file <path> digests to <digest> and its recorded pin is <digest>). If the source was changed on purpose, run aggrega pin on the entity to record its files again; otherwise restore the files > the files of the entity’s local source do not match the pins recorded for them in entity.lock (file <path> digests to <digest> and no pin is recorded for it). If the source was changed on purpose, run aggrega pin on the entity to record its files again; otherwise restore the files > the files of the entity’s local source do not match the pins recorded for them in entity.lock (file <path> is no longer in the source and its recorded pin is <digest>). If the source was changed on purpose, run aggrega pin on the entity to record its files again; otherwise restore the files(實體的本機來源的檔案,與 entity.lock 中為它們記錄的固定項目不相符(檔案的摘要,以及其所記錄的固定項目)。若來源是刻意變更的,請對該實體執行 ,以重新記錄其檔案;否則請還原這些檔案 > 實體的本機來源的檔案,與 entity.lock 中為它們記錄的固定項目不相符(檔案的摘要,且沒有為它記錄固定項目)。若來源是刻意變更的,請對該實體執行 ,以重新記錄其檔案;否則請還原這些檔案 > 實體的本機來源的檔案,與 entity.lock 中為它們記錄的固定項目不相符(檔案已不在來源中,而其所記錄的固定項目)。若來源是刻意變更的,請對該實體執行 ,以重新記錄其檔案;否則請還原這些檔案)
a symbolic link sits among the files an entity carries (<path>). remediation: replace the link with a copy of what it points to, placed inside the entity’s own directory. A link met inside a source directory can instead be left out with a line in the .aggregaignore beside the entity, which takes effect when the entity is pinned again. A link is refused rather than followed because the bytes it points to would travel under the link’s name, from wherever it points(實體所攜帶的檔案中有符號連結(該路徑)。補救方式:以它所指向內容的副本取代該連結,並放在實體自己的目錄內。在來源目錄內遇到的連結,也可以改用實體旁 .aggregaignore 中的一行將它排除,該行會在實體再次被固定時生效。連結會被拒絕而不是被跟隨,因為它所指向的位元組,會以連結的名稱從它所指向的任何地方被帶出去)
修正方式: 若實體需要連結所指向的內容,請在實體目錄內以它的副本取代該連結,並再次固定該實體。若連結只是為了你自己的方便而存在,而實體並不讀取它,請把它的路徑加到實體文件旁的 .aggregaignore,並再次固定。Which files ship with an entity 說明了決定實體攜帶哪些檔案的規則。
An entity reads an input the lock beside it records no pin for(實體讀取了其旁的鎖定檔沒有記錄固定項目的輸入)
an input the entity reads has no pin recorded for it in the entity.lock beside it (Recipe "<name>", remote source <url>@<version>: no pin recorded, imported file <key>: the recorded pin no longer matches it). remediation: run aggrega pin <entity-path> and commit the entity.lock it writes beside the entity; to have every pull in this workspace record the pins itself instead, set pin_sources_at_pull: true in the workspace configuration > an input the entity reads has no pin recorded for it in the entity.lock beside it (Recipe "<name>", remote source <url>@<version>: no pin recorded). remediation: run aggrega pin <entity-path> and commit the entity.lock it writes beside the entity; to have this publication record the pins itself instead, re-run it with --pin-sources; to have every publication in this workspace record them, set pin_sources_at_push: true in the workspace configuration(實體所讀取的輸入,在其旁的 entity.lock 中沒有為它記錄固定項目(Recipe、遠端來源:未記錄固定項目、匯入的檔案:所記錄的固定項目已不相符)。補救方式:執行 ,並提交它寫在實體旁的 entity.lock;若要改由此工作區中的每次 pull 自行記錄固定項目,請在工作區設定中設定 > 實體所讀取的輸入,在其旁的 entity.lock 中沒有為它記錄固定項目(Recipe、遠端來源:未記錄固定項目)。補救方式:執行 ,並提交它寫在實體旁的 entity.lock;若要改由此次發布自行記錄固定項目,請以 重新執行;若要讓此工作區中的每次發布都記錄它們,請在工作區設定中設定 )
無論求值回報什麼,標頭都帶有這個條件的代碼 E0056。 當求值因它自己的中止條件而停止時(對對應表不含的鍵進行 index 讀取是最常見的),該條件會回報在這個條件之下,而不是取代它:在 caused by (2): 之下,這個條件的句子排在最前面,求值自己的回報(包括其句子)排第二。所以比對代碼的讀者,會把每個失敗的 provides: 項目都歸在 E0056,並從其下的條件讀出求值失敗的原因,該條件的句子會解析到它自己的代碼,見 Every condition, by short code(依簡短代碼列出所有條件),不存在的鍵是 E0327。
修正方式: 打開 Recipe 中訊息所指名的鍵上的 provides: 區塊,閱讀所回報的原因,它通常指名某個解析位置或某個函式。此介面上的缺少鍵處理,會把不存在的最後一個鍵渲染為空,而不是失敗,所以這裡的失敗是結構性錯誤:不能解析的範本、穿過從未提供之容器的參照,或是對對應表不含的鍵進行的 index 讀取,所回報的原因會指名它。若該值確實是選用的,請透過 optional 輔助函式讀取,而不是深入可能不存在的東西。
A Recipe or FeatureRecipe does not publish a provides key its contract declares(Recipe 或 FeatureRecipe 沒有發布其契約所宣告的提供鍵)
Recipe or FeatureRecipe does not publish a provides key its abstract entity’s schema.provides contract declares ("<key>", declared by component type "<type>", bound to component instance "<instance>")(Recipe 或 FeatureRecipe 沒有發布其抽象實體的 schema.provides 契約所宣告的提供鍵(該鍵、由元件型別宣告、繫結到元件實例))
參照沒有任何東西提供的鍵,也會在此回報。 此介面以嚴格的缺少鍵處理求值,正是為了讓參照渲染為空的述詞,不能與空無一物比較而悄悄通過,否則單一個拼寫錯誤,就會讓斷言原本要強制執行的規則悄悄失效。這就是為什麼單純的 default 在此介面上不提供後備值:裸參照會在後備值得以執行之前就停止求值。請以 hasKey 把關參照,或使用 optional 輔助函式;透過 index 讀取也會中止並指名該鍵,如「A template indexes a map with a key the map does not hold(範本以對應表未包含的鍵索引該對應表)」所述。
宣告為敏感的值不會出現在訊息中。 當斷言讀取這樣的值,並以寫成單一引號字串的句子呼叫 fail,即 fail "…",沒有傳入任何東西,也沒有任何組合時,無論該值持有什麼,訊息都會照所寫的帶出該句子,因為句子沒有引述斷言所讀取的任何東西。當訊息引述該值時,訊息會在該值的位置顯示 <redacted>。當訊息以任何其他方式組合,而斷言所做的事取決於該值持有什麼時,失敗運算式之後的訊息會被換成 failure text withheld: this template reads a value declared sensitive, and the failure depends on what that value holds;中止及其代碼不變。何者算是已宣告,以及哪些拒絕不在此列,見 vocabulary/compact-form-authoring.md 的「拒絕對已宣告的值說了什麼」。
單獨檢查時,實體會把失敗的斷言回報為警告。 對 Recipe 檔案執行 aggrega validate、編輯器透過 aggrega serve 對該檔案的檢查,以及對 entity 執行 aggrega mcp 的 validate 工具,會圍繞預留位置與結構描述預設值、而不是 Release 所設定的值來建置 Recipe,所以它們無法分辨等待 Release 的斷言與已損壞的斷言。在那裡,呼叫 fail 的斷言(Recipe 自己的,或它所實作的 Component 所宣告的)會回報為警告,帶有上述訊息,並以句子 A Release must satisfy this assertion before a build of it can pass. 結尾,而檢查會通過。參照沒有任何東西提供的鍵,以及不能解析的斷言,都不是失敗的斷言:每一項都是斷言自己文字中的錯誤,而該檢查會像判斷其他任何錯誤一樣判斷它。建置一定有 Release,並如此處所述在斷言上中止;見失敗的斷言是警告。
pipeline /host operation from a step with no host component(來自沒有主機元件之步驟的管線 /host 操作) > pipeline /host operation from a step with no host component ("<attachment>")(來自沒有主機元件之步驟的管線 /host 操作(附加項目))
這三者是管線走訪自己所回報之位址拒絕的、會使建置中止的形式,記載於上方的「A pipeline patch addresses a document the set does not hold, or one with no tree to address(管線修補定址了集合中不存在的文件,或沒有可定址樹的文件)」之下。
pipeline PATCH targets an assembler provider’s pre-assembly fragments ("<attachment>")(管線修補指向組裝器提供者的組裝前片段(附加項目)) > pipeline PATCH targets an assembler provider’s pre-assembly fragments (node "<instance>", <scope>-scope document "<key>" is rendered by an assembler provider). the post-assembly phase re-runs this PATCH once the documents are discrete(管線修補指向組裝器提供者的組裝前片段(節點、該範圍的文件由組裝器提供者渲染)。組裝後階段會在文件變成離散之後重新執行此修補)
pipeline plugin is not compatible with the rendering provider ("<provider>")(管線外掛程式與渲染的提供者不相容(提供者)) > pipeline plugin is not compatible with the rendering provider ("<attachment>", "<provider>")(管線外掛程式與渲染的提供者不相容(附加項目、提供者))
rendering node "<instance>": node "<instance>" (provider "<provider>"): two renders of identical input produced different output: provider render is not deterministic(渲染節點:節點(提供者):相同輸入的兩次渲染產生不同的輸出:提供者的渲染不具決定性)
an omits entry left out nothing the source rendered (node "<node-id>", provider "<provider>", "<document>" omits[<position>], kind "<kind>", name "<name>", namespace "<namespace>"). correct the entry so it names something the source renders, or remove it; a source upgrade that renamed or removed it is the usual cause(omits 項目沒有排除來源所渲染的任何東西(節點、提供者、文件的 omits 項目、種類、名稱、命名空間)。請更正該項目,使它指名來源所渲染的東西,或是移除它;最常見的原因是來源升級重新命名或移除了它)
標頭帶有這個條件的簡短代碼 E0334。
修正方式: 將該項目與來源現在所渲染的內容比較,移除該項目後建置,並閱讀元件渲染出什麼,然後更正該項目的種類、名稱或命名空間,或在它所指名的東西已不存在時移除該項目。對於圖表,項目以文件自己的 kind、metadata.name,以及在項目指名命名空間時,文件所在的命名空間來指名文件;對於 compose 檔案,它以鍵指名 service、volume 或 config;對於 CloudFormation 範本,它以資源的 Type 與邏輯 ID 指名資源,可在來源的任何範本中。見 Recipe → The omits: field。
A provider’s omitted counts do not match the omits entries it was handed(提供者回報的省略計數與其收到的 omits 項目不符)
a provider’s omitted counts do not match the omits entries it was handed (node "<node-id>", provider "<provider>", handed <n> omits entries, returned <m> omitted counts)(提供者回報的省略計數與其收到的 omits 項目不符(節點、提供者、交給的 omits 項目個數、回傳的省略計數個數))
a template does more than copy a value it reads off a cross-boundary link (template "<template>", provides key "<key>" that component "<consumer>" reads off its connection "<alias>" on socket "<socket>" to component "<producer>"). Copy the value as it stands, whole or inside a larger string, because the provider writes in its place what the value becomes in the other output, and branch on a value of the component’s own instead(範本做的不只是複製它從跨邊界連結讀到的值(範本、使用端元件在其連線別名與插槽上讀取的提供值鍵、生產端元件)。請照原樣複製該值,完整或置於較長字串之內,因為提供者會在它的位置寫入該值在另一個輸出中成為的內容,並改以元件自己的值來分支)
修正方式: 複製訊息所指出的值,而不是測試或轉換它,並讓決定依據使用端元件自己撰寫的值——它自己的 values 或 infra 鍵之一——而不是依據它的連線所讀到的內容。CloudFormation 提供者 說明了複製的值在另一個堆疊中會變成什麼。
A provider named a directory for a contributor that is not one directory(提供者為貢獻者指定的目錄並非單一目錄)
provider named a directory for each contributor’s own sub-directory that is not a single directory name: provider "<provider>" declared nest_segment "<value>"; the value must name one directory, carrying no path separator and naming neither the current nor the parent directory(提供者為每個貢獻者自己的子目錄所指定的名稱不是單一目錄名稱:提供者宣告了 nest_segment 值;該值必須指名一個目錄,不得帶有路徑分隔字元,也不得指名目前目錄或上層目錄)
attachment binds a FeatureRecipe with executionScope: boundary and no boundary holding the component declares it ("<attachment>", on a component in boundary "<boundary>")(附加項目繫結了 executionScope: boundary 的 FeatureRecipe,而容納該元件的邊界都沒有宣告它(附加項目,位於某邊界中的元件))
而對於不在任何範圍中、因此不貢獻這類值的元件:
attachment binds a FeatureRecipe with executionScope: boundary and no boundary holding the component declares it ("<attachment>")(附加項目繫結了 executionScope: boundary 的 FeatureRecipe,而容納該元件的邊界都沒有宣告它(附加項目))
plugin "<plugin>" declares abi_version "<declared>"; host speaks "<supported>": wasm: plugin rejected by the sandbox(外掛程式宣告了 abi_version,主機支援的是另一個版本:wasm:外掛程式被沙箱拒絕)
主機沒有詞彙可對應的外掛程式種類:
plugin "<plugin>" declares unknown plugin_type "<declared>": wasm: plugin rejected by the sandbox(外掛程式宣告了未知的 plugin_type:wasm:外掛程式被沙箱拒絕)
無法讀取的自我回報:
wasm: plugin "<plugin>" describe() output is not valid JSON: <what the read reported>: wasm: plugin rejected by the sandbox(wasm:外掛程式的 describe() 輸出不是有效的 JSON:讀取所回報的內容:wasm:外掛程式被沙箱拒絕)
缺少其種類所需匯出的外掛程式,名稱取自該種類本身所讀取的同一個登錄庫:
<kind> plugin "<plugin>" declares no "<export>" export: wasm: plugin rejected by the sandbox(某種類的外掛程式未宣告所需的匯出:wasm:外掛程式被沙箱拒絕)
plugin "<plugin>" export "<export>" declares unknown scope "<declared>" (want "own", "host", or empty): wasm: plugin rejected by the sandbox(外掛程式的匯出宣告了未知的 scope(預期值為 own、host 或空白):wasm:外掛程式被沙箱拒絕)
宣告了成對的能力卻沒有同時具備其兩個匯出,或有匯出卻沒有宣告能力:
plugin "<plugin>" declares the cross-boundary linking capability but does not export both "link_publish" and "link_resolve": wasm: plugin rejected by the sandbox(外掛程式宣告了跨邊界連結能力,卻沒有同時匯出 link_publish 與 link_resolve:wasm:外掛程式被沙箱拒絕)
plugin "<plugin>" (plugin_type "provider") serves the capability "<name>", which contains a colon; a Recipe’s capability reference is read as the capability up to its last colon and a version pin after it, so no Recipe can name "<name>": report the capability name without a colon: wasm: plugin rejected by the sandbox(外掛程式(plugin_type 為提供者)所服務的能力名稱含有冒號;Recipe 的能力參照會被讀作最後一個冒號之前的能力,其後為版本固定,因此沒有任何 Recipe 能指名它:請回報不含冒號的能力名稱:wasm:外掛程式被沙箱拒絕)
plugin "<plugin>" declares host function "<name>" in describe() that its wasm does not import: wasm: plugin rejected by the sandbox > plugin "<plugin>" imports host function "<name>" that its describe() does not declare: wasm: plugin rejected by the sandbox(外掛程式在 describe() 中宣告了其 wasm 並未匯入的主機函式:wasm:外掛程式被沙箱拒絕 > 外掛程式匯入了其 describe() 並未宣告的主機函式:wasm:外掛程式被沙箱拒絕)
wasm: plugin "<plugin>": expected a <kind in words> plugin (plugin type "<expected>") but its describe() reports plugin type "<reported>": wasm: declared plugin type does not match plugin describe()(wasm:外掛程式預期為某種類的外掛程式(預期的外掛程式型別),但其 describe() 回報了另一種外掛程式型別:wasm:宣告的外掛程式型別與外掛程式的 describe() 不符)
call "<export>": wasm: guest plugin returned an output that is not the shape the socket reads: <what could not be read>(呼叫某匯出:wasm:客體外掛程式回傳了不是插槽所讀取形狀的輸出:無法讀取的內容)
plugin "<plugin>" call "<export>": wasm: guest plugin returned a diagnostic whose severity the contract does not declare: diagnostic <index> has severity "<value>"; the declared severities are "halt", "warn" and "info"(外掛程式呼叫某匯出:wasm:客體外掛程式回傳的診斷,其嚴重性未在契約中宣告:某索引的診斷具有某值的嚴重性;已宣告的嚴重性為 halt、warn 與 info)
provider guest returned two output files under one path; a conforming guest returns each output path at most once (path "<path>", node "<node>")(提供者客體在同一路徑下回傳了兩個輸出檔案;符合規範的客體每個輸出路徑最多回傳一次(路徑、節點))
A provider reported a render fact whose value is not a list(提供者回報的渲染事實,其值不是清單)
提供者可以在檔案之外,回報它所渲染之輸出的事實——每個事實有名稱與值,採用該提供者自己文件所載的詞彙——而附加到元件的 Features 會從其範本讀取它們。每個事實的值都是清單,即使只有一個項目:同一個名稱可能被元件的多次渲染回報,也就是它自己的提供者呼叫,以及附加到它的 Features 的渲染,這些清單會在該名稱之下合併成一個,供讀取它的範本使用。提供者在渲染時無從得知它的回報是否會是該名稱下唯一的一份,因此值為物件、字串、數字、布林值或 null 時,會在提供者交出時被拒絕,每次渲染皆然,不論是否有任何範本讀取該事實。
發出的訊息,指出事實、回報該事實的節點、回報它的提供者,以及值是什麼:
provider 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 (fact "<fact>", node "<node>", provider "<provider>", its value is <kind>)(提供者客體回報了值不是清單的渲染事實;符合規範的客體會把每個渲染事實的值回報為 JSON 陣列,即使只有一個項目(事實、節點、提供者,其值為某種類))
link patch names an output file the dispatch group did not emit; a conforming link patch names a file the group’s own render returned (file "<file>", node "<node>")(連結修補指名了分派群組未發出的輸出檔案;符合規範的連結修補會指名群組自己渲染所回傳的檔案(檔案、節點))
emit_file side effect carries no file; a conforming emit_file side effect carries a file with its path and content (node "<node>", side effect <index>)(emit_file 副作用不帶任何檔案;符合規範的 emit_file 副作用帶有含路徑與內容的檔案(節點、副作用索引))
side effect declares a kind the plugin contract does not define; a conforming side effect declares emit_file or emit_crd (node "<node>", side effect <index>, kind "<value>")(副作用宣告了外掛程式契約未定義的種類;符合規範的副作用宣告 emit_file 或 emit_crd(節點、副作用索引、種類值))
reassemble names a patched unit token the carve did not produce; a conforming codec carves and reassembles a file under the same tokens (token "<token>", file "<file>")(重新組裝指名了切分未產生的已修補單元 token;符合規範的轉碼器會以相同的 token 切分並重新組裝檔案(token、檔案))
a plugin has no expression for a construct this build declares > compose: workload form "<form>" has no compose mapping; compose supports stateless and stateful only: compose cannot express this workload form(外掛程式對此建置所宣告的構造沒有表達方式;compose:工作負載形式沒有 compose 對應;compose 只支援 stateless 與 stateful:compose 無法表達此工作負載形式)
a plugin has no expression for a construct this build declares > compose: node "<node>" container "<container>": compose: node "<node>" declares container lifecycle hooks; compose has no lifecycle-hook primitive: compose has no lifecycle-hook primitive; container declares lifecycle hooks(外掛程式對此建置所宣告的構造沒有表達方式;compose:節點與容器:compose:節點宣告了容器生命週期鉤子;compose 沒有生命週期鉤子的基本元素:compose 沒有生命週期鉤子的基本元素;容器宣告了生命週期鉤子)
a plugin has no expression for a construct this build declares > compose: node "<node>" container "<container>": compose: node "<node>" declares container envFrom; compose has no env-from-object primitive: compose has no env-from-object primitive; container declares envFrom(外掛程式對此建置所宣告的構造沒有表達方式;compose:節點與容器:compose:節點宣告了容器 envFrom;compose 沒有從物件取得環境的基本元素:compose 沒有從物件取得環境的基本元素;容器宣告了 envFrom)
a plugin has no expression for a construct this build declares > compose: an omits entry (name "<name>") names kind "<kind>": compose leaves out a service, a volume or a config, each named by its key under services:, volumes: or configs:, and no other kind(外掛程式對此建置所宣告的構造沒有表達方式;compose:omits 項目(名稱)指名了某種類:compose 只會省略服務、磁碟區或設定,各自以其在 services:、volumes: 或 configs: 之下的鍵指名,不含其他種類)
a plugin has no expression for a construct this build declares > compose: an omits entry (kind "<kind>", name "<name>") names namespace "<namespace>", and a compose file has no namespaces: compose leaves out a service, a volume or a config, each named by its key under services:, volumes: or configs:, and no other kind; remove the namespace from the entry(外掛程式對此建置所宣告的構造沒有表達方式;compose:omits 項目(種類、名稱)指名了命名空間,而 compose 檔案沒有命名空間:compose 只會省略服務、磁碟區或設定,各自以其在 services:、volumes: 或 configs: 之下的鍵指名,不含其他種類;請從項目中移除該命名空間)
a plugin has no expression for a construct this build declares > cloudformation-provider: an omits entry (kind "<kind>", name "<name>") names namespace "<namespace>", and a CloudFormation template has no namespaces: cloudformation leaves out a resource, named by its Type as the entry’s kind and its logical ID under Resources as the entry’s name; remove the namespace from the entry(外掛程式對此建置所宣告的構造沒有表達方式;cloudformation-provider:omits 項目(種類、名稱)指名了命名空間,而 CloudFormation 範本沒有命名空間:cloudformation 只會省略資源,以其 Type 作為項目的 kind、以其在 Resources 之下的邏輯 ID 作為項目的 name 來指名;請從項目中移除該命名空間)
a plugin has no representation for a value it was given > compose: node "<node>" apply service ports: compose publishes a port’s transport as a tcp or udp suffix; this port declares a transport compose cannot express(外掛程式對其收到的值沒有對應表示;compose:節點套用服務連接埠:compose 以 tcp 或 udp 後綴發布連接埠的傳輸;此連接埠宣告了 compose 無法表達的傳輸)
a plugin has no representation for a value it was given > compose: node "<node>" container "<container>": compose: the <cpu|memory|nvidia.com/gpu><request|limit> at <path>: "<value>" is not a quantity: <reason>; a quantity is a number such as 2, 0.5 or 1.5, with an optional sign and at most one of an integer exponent (1e3, 5E-2) or a unit suffix (n, u, m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi, Ei): resources quantity cannot be converted to a compose deploy.resources value(外掛程式對其收到的值沒有對應表示;compose:節點與容器:compose:某資源的請求或限制在某路徑上的值不是數量,並說明原因;數量是像 2、0.5 或 1.5 這樣的數字,帶有選用的正負號,且至多帶有一個整數指數(1e3、5E-2)或單位後綴(n、u、m、k、M、G、T、P、E、Ki、Mi、Gi、Ti、Pi、Ei):resources 數量無法轉換為 compose 的 deploy.resources 值)
compose 無法表示的數量之後會接著 compose 對該資源所容納的範圍:
a plugin has no representation for a value it was given > compose: node "<node>" container "<container>": compose: the memory <request|limit> at <path> is "<value>", a quantity compose cannot represent exactly; a compose memory value is a whole number of bytes from 0 to 9223372036854775807: resources quantity cannot be converted to a compose deploy.resources value(外掛程式對其收到的值沒有對應表示;compose:節點與容器:compose:記憶體的請求或限制在某路徑上為某值,compose 無法精確表示的數量;compose 的記憶體值是從 0 到 9223372036854775807 的整數位元組:resources 數量無法轉換為 compose 的 deploy.resources 值)
a plugin has no representation for a value it was given > compose: node "<node>" container "<container>": compose: the cpu <request|limit> at <path> is "<value>", a quantity compose cannot represent exactly; a compose cpus value is a core count from 0 to 9223372036.854775807 with at most nine decimal places: resources quantity cannot be converted to a compose deploy.resources value(外掛程式對其收到的值沒有對應表示;compose:節點與容器:compose:cpu 的請求或限制在某路徑上為某值,compose 無法精確表示的數量;compose 的 cpus 值是從 0 到 9223372036.854775807 的核心數,小數點後至多九位:resources 數量無法轉換為 compose 的 deploy.resources 值)
a plugin has no representation for a value it was given > compose: node "<node>" container "<container>": compose: the nvidia.com/gpu <request|limit> at <path> is "<value>", a quantity compose cannot represent exactly; a compose device count is a whole number of devices from 0 to 9223372036854775807: resources quantity cannot be converted to a compose deploy.resources value(外掛程式對其收到的值沒有對應表示;compose:節點與容器:compose:nvidia.com/gpu 的請求或限制在某路徑上為某值,compose 無法精確表示的數量;compose 的裝置數目是從 0 到 9223372036854775807 的整數個裝置:resources 數量無法轉換為 compose 的 deploy.resources 值)
要求不同數目的 GPU 請求與限制,會指出兩個路徑與兩個數目:
a plugin has no representation for a value it was given > compose: node "<node>" container "<container>": compose: the nvidia.com/gpu request at <path> and the limit at <path> ask for different counts (<request> and <limit>); compose reserves one device count for a service, so write the same count in both or only the limit: resources quantity cannot be converted to a compose deploy.resources value(外掛程式對其收到的值沒有對應表示;compose:節點與容器:compose:nvidia.com/gpu 在某路徑上的請求與在某路徑上的限制要求不同的數目(請求與限制的數目);compose 為一個服務只保留一個裝置數目,因此請在兩者寫入相同的數目,或只寫限制:resources 數量無法轉換為 compose 的 deploy.resources 值)
a plugin has no representation for a value it was given > helm: node "<node>": <path>: "<value>" is not a quantity: <reason>; a quantity is a number such as 2, 0.5 or 1.5, with an optional sign and at most one of an integer exponent (1e3, 5E-2) or a unit suffix (n, u, m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi, Ei)(外掛程式對其收到的值沒有對應表示;helm:節點、路徑、值不是數量,並說明原因;數量是像 2、0.5 或 1.5 這樣的數字,帶有選用的正負號,且至多帶有一個整數指數(1e3、5E-2)或單位後綴(n、u、m、k、M、G、T、P、E、Ki、Mi、Gi、Ti、Pi、Ei))
修正方式: 以 Workload → 資源數量 所載的形式寫入值。若欄位是範本產生的,要修正的值是範本所讀取的那個:像 m 或 Mi 這樣的裸後綴,是範本在其所插入的值為空時留下的,而 Release 參數抵達欄位時,與撰寫時完全一樣。
A service type the helm provider cannot render(helm 提供者無法渲染的服務型別)
helm 提供者把每個 Workload 的 services 項目渲染為 Kubernetes Service,其型別是該項目的 type。Loopback 項目要求其連接埠只能從主機自己的回送位址到達,別處皆不行,而 Kubernetes Service 沒有能做到這一點的型別:NodePort Service 在哪些節點位址上監聽,是整個叢集的設定,而不是單一 Service 的設定。因此建置會在第一個 Loopback 項目處中止,依服務宣告的順序,在寫出任何資源之前。
它選擇中止,而不是把項目渲染為另一種型別,因為 Service 確實有的每種型別都會改變連接埠所到達的範圍:ClusterIP Service 會丟掉項目所要求的發布到達範圍,而 NodePort 會把連接埠發布在叢集允許的每個節點位址上——這正是項目存在所要避免的更廣暴露。
發出的訊息。 它以條件開頭,接著指出節點、服務在 Workload 中的路徑以及型別:
a plugin has no representation for a value it was given > helm: node "<node>": services.<service>: type “Loopback” publishes the service’s ports on the host’s loopback address only, and a Kubernetes Service has no type that does; declare ClusterIP to keep the ports inside the cluster, or NodePort or LoadBalancer to publish them outside it(外掛程式對其收到的值沒有對應表示;helm:節點、服務:型別 Loopback 只會把服務的連接埠發布在主機的回送位址上,而 Kubernetes Service 沒有能做到這一點的型別;請宣告 ClusterIP 以讓連接埠留在叢集內,或宣告 NodePort 或 LoadBalancer 以將它們發布到叢集之外)
a plugin has no representation for a value it was given > helm: node "<node>" in boundary "<boundary>": annotation aggrega.ai/kubernetes-version: "<value>" is not a Kubernetes version a chart can be rendered for: <reason>; write the version of the cluster the chart deploys to, such as “1.31” or “v1.31.2”, on the component or on its boundary(外掛程式對其收到的值沒有對應表示;helm:位於某邊界中的節點:註記 aggrega.ai/kubernetes-version:某值不是可供渲染 chart 的 Kubernetes 版本,並說明原因;請在元件或其邊界上寫入 chart 所部署到之叢集的版本,例如 1.31 或 v1.31.2)
a plugin could not resolve something it requires to exactly one value > compose: node "<node>" container "<container>": probe http: requires at least one container port; container declares none(外掛程式無法把它所需的某事解析為恰好一個值;compose:節點與容器:http 探測:至少需要一個容器連接埠;容器未宣告任何連接埠)
a plugin could not resolve something it requires to exactly one value > compose: node "<node>" container "<container>": probe declares no shape (http/tcp/exec)(外掛程式無法把它所需的某事解析為恰好一個值;compose:節點與容器:探測未宣告任何形狀(http/tcp/exec))
a plugin could not resolve something it requires to exactly one value > compose AssembleBoundary: service "<service>" references config "<name>" mounted at "<path>"; declare each one as a top-level configs: entry from the Recipe’s artifacts: input: configmap volume requires a file emitted via the Recipe’s artifacts: input; none found(外掛程式無法把它所需的某事解析為恰好一個值;compose AssembleBoundary:服務參照了掛載在某路徑的設定;請從 Recipe 的 artifacts: 輸入把每一個宣告為頂層 configs: 項目:configmap 磁碟區需要透過 Recipe 的 artifacts: 輸入發出的檔案;找不到任何檔案)
a plugin could not resolve something it requires to exactly one value > compose: what an omits entry left out is still named by the file: service "<service>" names <kind>"<name>" at <field>; compose refuses a file naming a service, a volume or a config it does not declare: leave out what names it as well, change the reference through valuesMapping, or remove the entry(外掛程式無法把它所需的某事解析為恰好一個值;compose:omits 項目所省略的內容仍被檔案指名:服務在某欄位指名了某種類與名稱;compose 會拒絕指名了它未宣告之服務、磁碟區或設定的檔案:請一併省略指名它的內容、透過 valuesMapping 變更參照,或移除該項目)
檢查會一併讀取宣告它的 Recipe 或 FeatureRecipe 自己的範本:對其中另一個範本仍宣告之邏輯 ID 的參照不會中止,而對被省略資源的參照則會使渲染中止,即使另一個元件宣告了該邏輯 ID 的資源。每個參照都會回報,而不是只回報第一個——逐範本依來源所帶的順序,每個範本的資源,然後是其輸出,依鍵順序——因此一次建置就能指出全部。
a plugin could not resolve something it requires to exactly one value > cloudformation-provider: what an omits entry left out is still named by the source’s templates: template "<template>" names resource "<logical-id>" (type "<type>") by <Ref|Fn::GetAtt|DependsOn|Fn::Sub> at <path>; CloudFormation refuses a template naming a resource it does not declare: leave out what names it as well, or remove the entry(外掛程式無法把它所需的某事解析為恰好一個值;cloudformation-provider:omits 項目所省略的內容仍被來源的範本指名:範本以某種方式在某路徑指名了資源(邏輯 ID、型別);CloudFormation 會拒絕指名了它未宣告之資源的範本:請一併省略指名它的內容,或移除該項目)
當項目的欄位由宣告為敏感的值所建構時,其資源的邏輯 ID 與型別會顯示為 <redacted>,拼出該邏輯 ID 的路徑任何一步也是如此。
a plugin could not resolve something it requires to exactly one value > cloudformation-provider: the Recipe’s or FeatureRecipe’s valuesMapping writes the key "<key>", and no template of the source declares a parameter of that name: template "<template>" declares "<parameter>", …; a sourced template takes values only through the parameters it declares, so rename the key to the parameter it is meant for, or remove it from the valuesMapping(外掛程式無法把它所需的某事解析為恰好一個值;cloudformation-provider:Recipe 或 FeatureRecipe 的 valuesMapping 寫了某個鍵,而來源的任何範本都沒有宣告該名稱的參數:範本宣告了某參數,……;來源式範本只透過它所宣告的參數取得值,因此請把該鍵重新命名為它原本要對應的參數,或從 valuesMapping 中移除它)
a plugin could not resolve something it requires to exactly one value > cloudformation-provider: a parameter a sourced template’s binding filled is still referenced from elsewhere in the assembled stack: component "<component>"’s template "<template>" references parameter "<parameter>", which the valuesMapping of a Recipe or FeatureRecipe rendering for component "<component>" binds; …; binding a parameter removes its declaration from the source that declares it, and no template in the stack declares it any more, so the reference names nothing CloudFormation can resolve: reference what the binding component publishes instead, declare the parameter in the template that references it, or remove the key from the valuesMapping(外掛程式無法把它所需的某事解析為恰好一個值;cloudformation-provider:來源式範本的繫結所填入的參數,仍被組裝後堆疊的其他地方參照:元件的範本參照了參數,而為該元件渲染的 Recipe 或 FeatureRecipe 的 valuesMapping 繫結了它;……;繫結參數會從宣告它的來源移除其宣告,堆疊中已沒有任何範本宣告它,因此該參照指名的是 CloudFormation 無法解析的東西:請改為參照繫結元件所發布的內容、在參照它的範本中宣告該參數,或從 valuesMapping 中移除該鍵)
A value bound to a CloudFormation parameter cannot take the parameter’s type(繫結到 CloudFormation 參數的值無法採用該參數的型別)
繫結到參數的字面值,會以堆疊部署時 CloudFormation 轉換為該參數的 Type 所傳入之相同值的方式轉換。沒有這種轉換時,渲染會中止:不是數字的值繫結到 Number 或 List<Number>、清單或對應表繫結到只接受一個值的參數,以及任何繫結到 AWS::SSM::Parameter::Value<…> 參數的字面值,其值是 CloudFormation 從 Parameter Store 而非範本讀取。繫結到範本將其指名為 Fn::Sub 變數之參數的清單也會使渲染中止,因為變數只替換一個字串。
發出的訊息。條件領頭,接著是參數、它的範本與型別,以及值為何不符;不引用任何值:
a plugin has no representation for a value it was given > cloudformation-provider: parameter "<parameter>" of template "<template>" is of type <type>, and <why the value does not fit>(外掛程式對其收到的值沒有對應表示;cloudformation-provider:範本的參數屬於某型別,且說明值為何不符)
修正方式: 繫結參數型別的值——或對 Parameter Store 型別,使用 {{resolve:ssm:…}} 動態參照或內建函式——或不繫結該參數,改於堆疊部署時傳入值。
A value bound to a CloudFormation parameter is one its constraints refuse(繫結到 CloudFormation 參數的值被其限制條件拒絕)
a plugin has no representation for a value it was given > cloudformation-provider: the value bound to parameter "<parameter>" of template "<template>" does not satisfy its <constraint>, which CloudFormation would refuse when the stack deploys; bind a value the parameter admits(外掛程式對其收到的值沒有對應表示;cloudformation-provider:繫結到範本某參數的值不滿足其某限制條件,CloudFormation 會在堆疊部署時拒絕它;請繫結參數所接受的值)
修正方式: 繫結限制條件所接受的值;範本自己對該參數的宣告會列出它所允許的內容。
A secret bound to a CloudFormation parameter would be written into the template(繫結到 CloudFormation 參數的機密會被寫入範本)
a plugin has no representation for a value it was given > cloudformation-provider: parameter "<parameter>" of template "<template>" is declared NoEcho, and the value bound to it would be written into the template as it stands; bind a dynamic reference ({{resolve:secretsmanager:…}} or {{resolve:ssm-secure:…}}) or an intrinsic function instead, or leave the parameter unbound for a deploy-time value(外掛程式對其收到的值沒有對應表示;cloudformation-provider:範本的某參數宣告為 NoEcho,而繫結到它的值會照原樣寫入範本;請改為繫結動態參照({{resolve:secretsmanager:…}} 或 {{resolve:ssm-secure:…}})或內建函式,或不繫結該參數,改於部署時傳入值)
cloudformation-provider: the Recipe’s or FeatureRecipe’s valuesMapping reads a value declared sensitive, so a literal it produces is refused, and binding parameter(s) "<parameter>", … would write a literal into the template as it stands; …(cloudformation-provider:Recipe 或 FeatureRecipe 的 valuesMapping 讀取了宣告為敏感的值,因此它所產生的字面值會被拒絕,而繫結參數(某參數,……)會把字面值照原樣寫入範本;……)
a plugin has no representation for a value it was given > cloudformation-provider: the value bound to parameter "<parameter>" is a dynamic reference, and template "<template>" references the parameter in <where>, where CloudFormation does not resolve a dynamic reference or shows it to whoever reads the stack; bind an intrinsic function instead, or leave the parameter unbound for a deploy-time value(外掛程式對其收到的值沒有對應表示;cloudformation-provider:繫結到參數的值是動態參照,而範本在某位置參照該參數,CloudFormation 在該處不解析動態參照,或會把它顯示給讀取堆疊的人;請改為繫結內建函式,或不繫結該參數,改於部署時傳入值)
修正方式: 不要繫結該參數,並在堆疊部署時傳入它的值,或繫結能在該處產生範本所需內容的內建函式。
A rule reads a bound CloudFormation parameter by name(規則以名稱讀取已繫結的 CloudFormation 參數)
範本 Rules 中的 Fn::ValueOf 是以邏輯 ID 指名參數,而不是透過 Ref,並讀取堆疊部署時為它傳入的值。繫結參數會從來源的每個範本移除它的宣告,這會使規則——在其中任何範本中——指名不到任何東西,因此渲染會中止。
發出的訊息。條件領頭,接著是規則、它的範本與參數:
a plugin has no expression for a construct this build declares > cloudformation-provider: rule "<rule>" of template "<template>" reads parameter "<parameter>" through Fn::ValueOf, which names a declared parameter by its logical ID, and binding the parameter removes its declaration from the source; leave the parameter unbound so the rule can read it at deploy(外掛程式對此建置所宣告的構造沒有表達方式;cloudformation-provider:範本的規則透過 Fn::ValueOf 讀取參數,它以邏輯 ID 指名已宣告的參數,而繫結參數會從來源移除其宣告;請不要繫結該參數,讓規則能在部署時讀取它)
a plugin has no expression for a construct this build declares > cloudformation-provider: the assembled stack of component "<component>", … cannot carry the transform "<transform>", declared by component "<component>": <why>(外掛程式對此建置所宣告的構造沒有表達方式;cloudformation-provider:某元件的組裝後堆疊,……,無法帶有某元件所宣告的轉換,並說明原因)
a plugin could not resolve something it requires to exactly one value > cloudformation-provider: the transforms "<first>" and "<second>" are ordered both ways — "<first>" before "<second>" by <who>, and "<second>" before "<first>" by <who> — and the assembled stack’s Transform runs them in one order; declare them in one order(外掛程式無法把它所需的某事解析為恰好一個值;cloudformation-provider:兩個轉換被以兩種方向排列——前者在後者之前,由某方排列,而後者在前者之前,由另一方排列——而組裝後堆疊的 Transform 以單一順序執行它們;請以同一個順序宣告它們)
two things a plugin produced occupy one name in its output > cloudformation-provider: two entries an author wrote reach one stack Output name: <the entries that met> reach the Output name "<name>"; an Output name is built by encoding the component and the entry into the letters and digits a logical id admits, rather than by dropping what it does not, so two entries an author wrote apart stay apart — renaming either end clears the build(外掛程式產生的兩樣東西佔用其輸出中的同一個名稱 > cloudformation-provider:作者所寫的兩個項目抵達同一個堆疊 Output 名稱:交會的項目抵達該 Output 名稱;Output 名稱是將元件與項目編碼成邏輯 ID 所接受的字母與數字所建構,而不是捨棄它不接受的部分,因此作者分開撰寫的兩個項目保持分開——重新命名任一端即可清除此次建置)
two things a plugin produced occupy one name in its output > cloudformation-provider: one mapping key is written more than once: the key "<key>" is written at line <first> and again at line <second>; a mapping holds one value per key, so one of the two bodies would be dropped — remove one, or rename one so each key is written once(外掛程式產生的兩樣東西佔用其輸出中的同一個名稱 > cloudformation-provider:同一個對應表鍵被寫了不只一次:該鍵先寫在第一行,又寫在第二行;對應表每個鍵只保存一個值,因此兩個內容之一會被捨棄——請移除其中一個,或重新命名其中一個,讓每個鍵只寫一次)
a plugin has no representation for a value it was given > arm-provider: the text at JSON pointer <pointer> is read by ARM as an expression but does not parse (offset <offset>: <reason>); correct the expression, or write [[ at its start to keep it literal text(外掛程式對它收到的某個值沒有對應的表示 > arm-provider:位於 JSON pointer 的文字被 ARM 當作運算式讀取,但無法剖析(位移與原因見上);請修正該運算式,或在開頭寫 [[ 以讓它保持為字面文字)
修正方式: 在該指標處開啟片段。請修正運算式;若該文字原本就是字面文字,請以 [[ 開頭——ARM 會把 [[ 讀成單一個 [。請見 arm → 撰寫 ARM 文字。
A value is written inside an ARM expression(值被寫在 ARM 運算式之內)
元件的 Recipe 將鄰近元件的值寫成文字,再由提供者組合它:整個寫出的值會以生產端的運算式承載,寫在字面文字內的值則會變成 format() 運算式。寫在 Recipe 自己所寫的運算式之內的值無法被組合,因為該值本身的方括號會落在運算式的方括號之內,ARM 無法讀取它們。建置會中止,而不是寫出 ARM 會錯誤求值的文字。
輸出的訊息:
a plugin has no representation for a value it was given > arm-provider: the text at JSON pointer <pointer> writes a value inside an expression, at offset <offset>, where ARM reads brackets as an expression and not as text; compose the value in literal text instead, writing the delivered value whole inside the text around it, or write [[ to keep the text literal(外掛程式對它收到的某個值沒有對應的表示 > arm-provider:位於 JSON pointer 的文字在運算式之內寫入了一個值,而 ARM 在該處會把方括號讀成運算式,而不是文字;請改為在字面文字中組合該值,將傳遞來的值整個寫在周圍文字之內,或寫 [[ 以讓文字保持為字面文字)
修正方式: 將值整個寫成字串,或寫在其周圍的字面文字之內,例如 postgres://<value>:5432,提供者會把它寫成 format() 運算式;或在你的運算式中,以生產端自己的呼叫取代該值。請見 arm → 撰寫 ARM 文字。
An ARM reference names nothing in its template level(ARM 參照在其範本層級中指不到任何東西)
在組裝後範本的同一層級之內——它的頂層,或是容納為較窄範圍所寫內容的巢狀部署——reference() 呼叫、dependsOn 項目或 list* 呼叫所指名的每個符號名稱,都必須是該層級所宣告的資源,而每個 parameters() 或 variables() 引數也都必須是該層級所做的宣告。不符合任何東西的名稱會在範本部署時失敗。常見的原因是打字錯誤(符號名稱區分大小寫),以及為另一個邊界的範本所宣告的資源,手寫了一個符號名稱。由 uses 邊從另一個邊界傳遞來的值是由連結接上的,絕不會以單純符號名稱的形式進入此檢查;請見 arm → Linking across deployments。
發出的訊息,以條件開頭,接著說明哪個名稱沒有符合任何東西:
a plugin could not resolve something it requires to exactly one value > arm-provider: at JSON pointer <pointer> in the fragment of "<contributor>", <function or dependsOn> names the resource "<name>", which no resource in this template declares by that symbolic name; correct the name (symbolic names are case-sensitive), declare the resource in this template, or name a resource deployed elsewhere by its resource ID(外掛程式無法將它所需的某樣東西解析為恰好一個值 > arm-provider:在貢獻者的片段中,位於 JSON pointer 處,某個函式或 dependsOn 指名了一個資源,而此範本中沒有任何資源以該符號名稱宣告;請修正名稱(符號名稱區分大小寫)、在此範本中宣告該資源,或以資源 ID 指名部署在別處的資源)
未宣告的參數或變數會以相同的形狀回報,並指出應在哪個區段下宣告它。
修正方式: 修正名稱,在同一範本層級的片段中宣告該資源、參數或變數,或將兩個元件放在同一個邊界,讓它們組裝成同一個範本。若要讀取另一個邊界的範本所產生的值,請宣告 uses 邊並讀取提供的值;請見 arm → 跨部署連結。
a plugin has no representation for a value it was given > arm-provider: provides key <key> of component <component> reads a secret, and a link would write it as an output of the template of boundary <boundary>: a secret read by another deployment lands in its history; store it in Key Vault and attach core/referenced-secret on both ends(外掛程式對它收到的某個值沒有對應的表示 > arm-provider:元件的 provides 鍵讀取了機密,而連結會把它寫成該邊界範本的輸出:被另一個部署讀取的機密會落入其記錄;請將它存放在 Key Vault,並在兩端都附加 core/referenced-secret)
a plugin has no representation for a value it was given > arm-provider: at JSON pointer <pointer> in the template of boundary <boundary>, the value of provides key <key> of component <component> is read from another deployment with reference(), which ARM evaluates only inside a resource’s properties, an output’s value or the input of an output’s copy loop; move the value into one of those(外掛程式對它收到的某個值沒有對應的表示 > arm-provider:在邊界範本的 JSON pointer 處,元件的 provides 鍵的值是以 reference() 從另一個部署讀取的,而 ARM 只會在資源的 properties、輸出的 value 或輸出的 copy 迴圈的輸入之內求值;請將該值移到其中之一)
a plugin has no representation for a value it was given > arm-provider: provides key <key> of component <component>, which the link on socket <socket> carries to another deployment, splices a template call into literal text, which that deployment would receive unevaluated, as text; write the provides value as one expression, such as [format(‘postgres://{0}:5432’, reference(‘Db’).outputs.fqdn.value)](外掛程式對它收到的某個值沒有對應的表示 > arm-provider:元件的 provides 鍵經由插槽上的連結傳遞到另一個部署,卻將範本呼叫拼接進字面文字,而該部署會把它當作文字、未經求值就收到;請將 provides 值寫成單一運算式,例如 [format(‘postgres://{0}:5432’, reference(‘Db’).outputs.fqdn.value)])
a plugin could not resolve something it requires to exactly one value > arm-provider: <template> has no value mapped to "<parameter>", which declares no default and does not admit null; …, so map each one, writing [parameters('<parameter>')] to read a top-level parameter the Recipe’s artifacts fragment declares(外掛程式無法將它所需的某樣東西解析為恰好一個值 > arm-provider:範本沒有任何值對應到該參數,而該參數沒有宣告預設值,也不接受 null;……,因此請對應每一個,並寫成參數讀取式,以讀取 Recipe 的 artifacts 片段所宣告的頂層參數)
a plugin could not resolve something it requires to exactly one value > cloudformation-provider: cross-boundary link resolve received no consumer stack template(外掛程式無法將它所需的某樣東西解析為恰好一個值 > cloudformation-provider:跨邊界連結的解析未收到使用端的堆疊範本)
a plugin has no representation for a value it was given > cloudformation-provider: cross-boundary link value is interpolated into a larger string; only a whole-scalar injection can carry a cross-stack reference: output key "<key>" on socket "<socket>"(外掛程式對它收到的某個值沒有對應的表示 > cloudformation-provider:跨邊界連結的值被插入較大的字串;只有整個純量的注入才能承載跨堆疊參照:插槽上的輸出鍵)
two things a plugin produced occupy one name in its output > helm: node "<node>": rendered resources "<one template>" and "<the other>" both derive output "<file>" with differing content: two rendered resources derive the same output filename with differing content(外掛程式產生的兩樣東西佔用其輸出中的同一個名稱 > helm:節點:渲染出的兩個資源都衍生出同一個輸出,但內容不同:兩個渲染出的資源衍生出相同的輸出檔名,但內容不同)
a plugin could not resolve something it requires to exactly one value > synthesized StatefulSet requires a headless governing Service (declare a service with type: Headless); none found: synthesized StatefulSet has no headless governing Service(外掛程式無法將它所需的某樣東西解析為恰好一個值 > synthesized StatefulSet requires a headless governing Service (declare a service with type: Headless); none found: synthesized StatefulSet has no headless governing Service)
a plugin could not resolve something it requires to exactly one value > synthesized StatefulSet declares more than one headless Service; the governing Service is ambiguous (declare exactly one type: Headless service): synthesized StatefulSet has more than one headless Service(外掛程式無法將它所需的某樣東西解析為恰好一個值 > synthesized StatefulSet declares more than one headless Service; the governing Service is ambiguous (declare exactly one type: Headless service): synthesized StatefulSet has more than one headless Service)
wasm: guest plugin named a condition the socket does not declare: the guest named "<offered>", and <why it resolves to no condition>; a plugin names a condition this compiler declares, and reaches for one of <the generic conditions and their codes> when it has none better: <the plugin's own sentence>(wasm:客體外掛程式指名了插槽未宣告的條件:客體指名了所提供的編號,而它為何解析不到任何條件的原因;外掛程式應指名此編譯器所宣告的條件,並在沒有更好的選擇時使用一般條件及其代碼之一:外掛程式自己的句子)
a value a cache location is built from would place cached files outside the place it names in the cache (version "../../../etc" for entity "demo/app/web"). a version, a name, a kind or a host names one directory of the cache, so it carries no / or \ and is neither . nor ..; a URL path or a module subdirectory may name directories beneath its place but may not climb above it. Correct the value where it was written, or, where a registry served it, ask its publisher to publish a version that carries a well-formed one(用來建構快取位置的某個值,會把快取檔案放到它在快取中所指名位置之外(某個實體的版本)。版本、名稱、種類或主機指名快取的單一目錄,因此不帶斜線或反斜線,也不是單一個點或兩個點;URL 路徑或模組子目錄可以指名其位置之下的目錄,但不得向上爬出。請在寫入該值之處修正它,或是在由登錄庫提供時,請其發布者發布帶有格式正確的值的版本)
a path this operation writes or deletes leads through a link out of the directory it must stay inside (removing <workspace>/dist/boundaries, which must stay inside <workspace>, the link <workspace>/dist leads to <elsewhere>/dist-target). nothing was written to or removed from that path. Remove the link, or make it lead to a place inside <workspace>, and run the operation again(此作業寫入或刪除的路徑經由連結通往它必須留在其中的目錄之外(正在移除工作區中的某個路徑,它必須留在工作區之內,工作區中的連結通往其他位置的目標)。沒有任何東西被寫入該路徑或從中移除。請移除該連結,或讓它通往工作區之內的位置,然後再次執行此作業)
a name this operation writes holds a path segment Windows cannot hold as written (the name "aux/x.yaml", its segment "aux", beneath <directory>). It was not written. Windows reserves device names such as CON, PRN, AUX, NUL, COM1 and LPT1, in any letter case and whatever extension follows, and does not hold a segment ending in a full stop or a space as written; rename that segment where the name is produced(此作業寫入的名稱含有 Windows 無法照所寫容納的路徑區段(名稱、其區段,位於目錄之下)。它沒有被寫入。Windows 保留 CON、PRN、AUX、NUL、COM1 與 LPT1 等裝置名稱,無論字母大小寫,也無論後面接什麼副檔名,並且不會照所寫保留以句點或空格結尾的區段;請在產生名稱之處重新命名該區段)
annotation binding declares one path in both pillar lists(註記繫結在兩個支柱清單中宣告同一個路徑)
它是在建置遇到上方「An annotation routes through a pillar its authoring side may not use(註記經由其撰寫端可能不得使用的支柱傳送)」所述的中止之前,先對你發出的警告——提示是早期的介面,該中止則是強制執行的介面。此 lint 在 warnings.md 的「Binding-map-overlap lint(繫結對應重疊 lint)」之下說明。
An attachment name is one edit from a declared slot(附加項目名稱與已宣告的槽位僅差一個編輯)
提示。元件以某個名稱附加 Feature,該名稱不是其型別所宣告的槽位之一,但與其中之一只差一個編輯——這正是槽位名稱打字錯誤的形狀。以沒有任何槽位宣告的名稱附加是合法的,因此沒有任何東西會中止;提示所指出的是後果,也就是該附加項目是自由附加項目,而不是你所指的槽位的填入,槽位仍然是空的。在連線上,同樣的打字錯誤不合法,反而會中止,並指出近似的槽位;請見「A connection carries an attachment under a name its socket declares no slot for(連線帶有的附加項目,其名稱在插槽中沒有宣告對應槽位)」。當附加項目的 Feature 滿足近似槽位的 selector: 時,不會發出提示:該配對是由「An attachment written under another name fits a slot its component leaves empty(以其他名稱撰寫的附加項目符合其元件留空的槽位)」之下的中止來判定,在槽位留空時回報它。
它的訊息開頭是:
attachment name is a near miss for a declared slot(附加項目名稱與已宣告的槽位近似但不相符)
它是提示而不是中止,因為建置無法確定。繫結是針對整個工作區一次撰寫的,而一次建置只針對一個 Release,所以提供該能力的外掛程式可能只有另一個 Release 才會讀取。指名外掛程式的項目則以不同方式判斷,並在確定有誤時中止——請見上方的「A plugins.providers binding names a plugin that does not serve the capability(繫結指名了並不提供該能力的外掛程式)」。
它的訊息開頭是:
plugins.providers entry names a capability no provider-rendering plugin the build reads serves(plugins.providers 項目指名了建置所讀取的提供者渲染外掛程式都不服務的能力)
<file> at <authored key>: annotation contribution overridden by an explicit value ("<annotation-key>", component "<component>", attachment "<attachment>", pillar "<pillar>", key "<the key at issue>", annotation declared at "<where the annotation was written>")(位於撰寫的鍵:註記的貢獻被明確的值覆寫(註記鍵、元件、附加項目、支柱、相關的鍵,以及註記宣告的位置))
其中兩個值很容易誤讀。component 只有在取代它的項目有元件時才會被指名:為整個範圍所寫的項目沒有自己的元件,而指名它從未有過的元件,會把讀者送往沒有人寫過的鍵。而 annotation declared at 指名的是被取代的註記寫在哪裡,在它不是寫在取代它的元件上的情況下,就是它所繼承自的範圍——因此它不是在另一個標題下重複的元件鍵。
What to do about it: 若明確的值就是你的本意,就什麼也不用做。提示的存在,是為了讓優先順序是一種選擇,而不是意外。若它不是你的本意,有兩條出路,而範圍不同。刪除明確的項目,註記的值就會流入該鍵。或是從帶有它的元件或範圍移除註記,這樣就完全不會有貢獻——這也會影響該註記所提供的每個其他鍵。若兩邊都需要,但針對不同的鍵,請縮小延伸得比預期更遠的那一邊,讓兩者不再重疊。
A connection crosses between two different providers’ assembled outputs(連線跨越兩個不同提供者組裝出的輸出)
cross-boundary link between endpoints rendered by different providers is not supported ("<target-component>", socket "<socket>", consumer provider "<provider>", target provider "<provider>")(不支援由不同提供者渲染的端點之間的跨邊界連結(目標元件、插槽、使用端提供者、目標提供者))
workspaceconfig: registry alias "<alias>" is already used by host "<host>"; choose a different alias or address that host directly: registry alias is already used by another host(workspaceconfig:登錄庫別名已被主機使用;請選擇不同的別名,或直接以位址指定該主機:登錄庫別名已被另一個主機使用)
registrytrust: advertised trust config is malformed: <what the decoder reported>(registrytrust:所公告的信任設定格式錯誤:解碼器所回報的內容)
沒有任何可供比對的內容的身分項目:
registrytrust: advertised trust config is malformed: <list>[<index>]: an identity entry must set identity or identity_regexp(registrytrust:所公告的信任設定格式錯誤:清單的某個索引:身分項目必須設定 identity 或 identity_regexp)
以及沒有簽發者的項目:
registrytrust: advertised trust config is malformed: <list>[<index>]: an identity entry must set issuer(registrytrust:所公告的信任設定格式錯誤:清單的某個索引:身分項目必須設定 issuer)
a 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>(官方 hub 以外的登錄庫,在沒有手動提供信任原則的情況下不會離線登錄,因為它所公告的原則無法被擷取;請在線上時登錄它一次,或以命令手動固定其信任)
aggrega push: <reference>:<version> is already published as <existing digest>; refusing to overwrite with <proposed digest> — publish a new version (aggrega lint —pre-publish verifies the bump): oci: tag already published with different content(aggrega push:參照與版本已發布為既有的摘要;拒絕以所提議的摘要覆寫——請發布新版本(aggrega lint —pre-publish 會驗證版本提升):oci:標籤已以不同內容發布)
以及發布資料成品:
aggrega push-artifact: <reference>:<version> is already published as <existing digest>; refusing to overwrite with <proposed digest> — publish a new version: oci: tag already published with different content(aggrega push-artifact:參照與版本已發布為既有的摘要;拒絕以所提議的摘要覆寫——請發布新版本:oci:標籤已以不同內容發布)
the entity shares its directory with another entity, and an entity of its kind has a directory of its own (Recipe "<name>", beside it: Recipe "<name>" in <file>). remediation: give each entity a directory of its own — move <file> into a directory of its own, together with any file only that entity reads; only the Aggregate, Manifest and Release kinds may share a directory with other entities(該實體與另一個實體共用目錄,而其種類的實體有自己的目錄(Recipe 的名稱,旁邊:某檔案中的 Recipe 的名稱)。補救方式:讓每個實體都有自己的目錄——將該檔案連同只有該實體讀取的任何檔案,移到它自己的目錄;只有 Aggregate、Manifest 與 Release 種類可以與其他實體共用目錄)
A published archive carries an entry Windows cannot use(已發布的封存檔含有 Windows 無法使用的項目)
實體發布時才會引發的提示;它不會讓任何東西中止,建置也不會引發它。在文件旁邊帶有檔案的實體會以封存檔發布,而封存檔所容納的每個名稱——實體文件自己的檔名,然後是它所帶的每個檔案——都會依上方「A name the operation writes holds a part Windows cannot hold(作業所寫入的名稱含有 Windows 無法容納的部分)」這個中止在 Windows 上所套用的規則來判定:Windows 為裝置保留的部分,無論字母大小寫,也無論後面接什麼副檔名,或以句點或空格結尾的部分。因此 aux/x.yaml 會因它的目錄 aux 而引發它,report. 會因它最後的句點而引發,而名為 con.yaml 的文件會因為它自己的名稱而匯入結構描述檔案。不帶任何東西的實體會僅以其文件發布,位於產品所選擇的名稱之下,而 Plugin 不發布封存檔,因此兩者都不會引發它。
它在每個平台上都會引發,而且它不拒絕任何東西。 Windows 上的工作區會在該中止之下拒絕展開這樣的項目,因此無法使用該版本;提示是發布者在 Windows 上的人遇到之前,先得知這一點的方式。發布或其試執行的進行或中止,與沒有它時完全相同。
signing: keyless signing requires a live identity provider, Fulcio, and Rekor: an identity token source is required(signing:無金鑰簽署需要運作中的身分提供者、Fulcio 與 Rekor:必須有身分權杖來源)
以及沒有產出任何內容的來源:
signing: keyless signing requires a live identity provider, Fulcio, and Rekor: an identity token is required(signing:無金鑰簽署需要運作中的身分提供者、Fulcio 與 Rekor:必須有身分權杖)
aggrega push: registry "<host>" requires signatures; re-run signing the artifact (there is no flag to push unsigned content here): signing: registry requires signatures; refusing to push unsigned content(aggrega push:登錄庫要求簽章;請重新簽署成品(此處沒有可 push 未簽章內容的旗標):簽署:登錄庫要求簽章;拒絕 push 未簽章內容)
工作區原則的要求,其中指出使成品納入範圍的種類:
aggrega push: the signing policy requires a signature for kind "<kind>"; re-run signing the artifact (there is no flag to push unsigned content here): signing: signing policy requires a signature for this artifact kind; refusing to push unsigned content(aggrega push:簽署原則要求特定種類必須有簽章;請重新簽署成品(此處沒有可 push 未簽章內容的旗標):簽署:簽署原則要求此成品種類必須有簽章;拒絕 push 未簽章內容)
aggrega push: sign <reference>:<version>: the identity token carries no verified email or subject claim — the OIDC flow/client did not return an email-scoped identity (re-exporting or re-acquiring the token will not help); configure the identity provider/client/scope to return one: <the underlying failure>: signing: registry requires signatures; refusing to push unsigned content(aggrega push:簽署:身分權杖不含已驗證的電子郵件或主體宣告,OIDC 流程或用戶端未回傳含電子郵件範圍的身分(重新匯出或重新取得權杖也無濟於事);請設定身分提供者、用戶端或範圍使其回傳:簽署:登錄庫要求簽章;拒絕 push 未簽章內容)
aggrega sign: signing: the references named together need different signing credentials, so nothing was signed (<registry> signs with the held key signing.key_path names, <registry> signs keyless: no signing.key_path applies). remediation: sign them in separate runs, one per credential: the references on <registry>, then the references on <registry>; each run signs as it would on its own(aggrega sign:簽署:一併指名的參照需要不同的簽署認證,因此未簽署任何東西(一個登錄庫以 signing.key_path 所指名的持有金鑰簽署,另一個登錄庫以無金鑰方式簽署:沒有適用的 signing.key_path)。補救:分開執行,每個認證各一次:先處理一個登錄庫上的參照,再處理另一個登錄庫上的參照;每次執行都如同單獨執行般簽署)
以及當批次中有登錄庫要求簽章時,在補救方式的末尾指名它:
aggrega sign: signing: the references named together need different signing credentials, so nothing was signed (<registry> signs with the held key signing.key_path names, <registry> signs keyless: no signing.key_path applies). remediation: sign them in separate runs, one per credential: the references on <registry>, then the references on <registry>; each run signs as it would on its own, and <registry> requires signatures, so this refusal holds back signing that would otherwise have gone ahead rather than signing that cannot be done(aggrega sign:簽署:一併指名的參照需要不同的簽署認證,因此未簽署任何東西(一個登錄庫以 signing.key_path 所指名的持有金鑰簽署,另一個登錄庫以無金鑰方式簽署:沒有適用的 signing.key_path)。補救:分開執行,每個認證各一次:先處理一個登錄庫上的參照,再處理另一個登錄庫上的參照;每次執行都如同單獨執行般簽署,且有登錄庫要求簽章,因此此拒絕擋下的是原本會進行的簽署,而不是無法完成的簽署)
第二個有自己金鑰的登錄庫,會被標示為以「with a different held key(不同的持有金鑰)」簽署。金鑰的路徑絕不會被印出:訊息指名的是設定,那是你可以更改的東西。
docscache: <reference>@<version> has media type "<what was found>", want "<what a documentation bundle is>": docscache: artifact is not a documentation bundle(docscache:媒體類型不符,預期為文件組合包:docscache:成品不是文件組合包)
the edit was refused because the resulting document would not be valid, and nothing was written: document envelope validation failed (<kind>, at <path>); <line>:<column>: <field-path>: … <the schema's own objection>. correct the document to match its kind’s schema(編輯遭拒,因為產生的文件將無效,且未寫入任何東西:文件封套驗證失敗;結構描述本身的異議。請更正文件,使其符合其種類的結構描述)
the entity writes an Aggrega schema extension directly into schema content instead of declaring it under usesSchema or featuresSchema(實體把 Aggrega 結構描述擴充直接寫入結構描述內容,而不是以其專屬欄位宣告它)
🔴 有兩個條件描述了這件事,而且它們不是同一個。 建置所回報的提示記載於上方「A Recipe publishes a provides key its Component does not declare(Recipe 發布了其 Component 未宣告的鍵)」之下;這一個是在對照發布慣例檢查實體時提出的,並帶有自己的代碼。這個發現是在兩個介面上遇到的同一個事實——請讀診斷中的代碼,以分辨你手上的是哪一個。
它的訊息開頭是:
the Recipe publishes a provides key the Component it implements does not declare, so a consumer wiring that key is refused(Recipe 發布了其所實作的 Component 未宣告的 provides 鍵,因此連接該鍵的使用端會被拒絕)
a Component’s annotation stating how its metrics authenticate disagrees with whether it declares the provides key saying an instance’s metrics need a credential(Component 說明其指標如何驗證的註記,與它是否宣告說明某個實例的指標需要認證的 provides 鍵不一致)
a connection and the target it reaches do not name one key: they write different locators for it, or only one of them names one(連線與其所連到的目標並未指稱同一把金鑰:兩者為它寫了不同的定位字串,或只有其中一個指名了定位字串)
the importer reported a diagnostic that stops the import, so the source was not fully turned into draft authoring files(匯入器回報了停止匯入的診斷,因此來源並未被完整轉成草稿撰寫檔案)
這與同一種格式被多個匯入器公告不同,該情況說明於上方「A parse or import format is advertised by more than one plugin(有多個外掛程式公告同一種剖析或匯入格式)」之下。在那裡格式已確定,而服務它的匯入器相互競爭,因此由 plugins.importer 項目在其中選擇;在這裡格式本身就不同,因此沒有任何附加能解決,指名格式才能。辨識來源的匯入器,會把它辨識為其所公告的每一種格式,因此公告多於一種格式、且其中一個簽章符合的匯入器,在此處也會被拒絕。
它的訊息開頭是:
more than one importer recognises the source(有多個匯入器辨識出該來源)
訊息的其餘部分依匯入器身分與版本的順序,指名來源以及它被辨識為的每一種格式,然後是補救方式:
more than one importer recognises the source (source "<source>", recognised as "<format>", "<format>"). Pass —format to name the one to read it as (for example —format <format> or —format <format>)(有多個匯入器辨識出該來源(來源、辨識出的格式)。請傳入 —format 指名要以哪一種格式讀取(例如 —format 加上格式名稱))
這是上方「More than one importer recognises the source(有多個匯入器辨識出該來源)」的對應情況。 那裡是多種格式都主張該來源;這裡是沒有任何一個主張。兩者都靠指名格式解決,且在指名之前不會寫入任何東西。
它的訊息開頭是:
no importer recognises the source(沒有匯入器辨識出該來源)
訊息的其餘部分指名來源,然後是補救方式以及目錄的匯入器所公告的每一種格式(依讀取順序):
no importer recognises the source (source "<source>"). Pass —format to name it explicitly (for example —format <format> or —format <format>)(沒有匯入器辨識出該來源。請傳入 —format 明確指名(例如 —format 加上格式名稱))
no importer recognises the source (directory "<directory>"). Import one of the directory’s files on its own, or pass —format naming a format whose importer reads a directory through the file patterns it declares (for example —format <format> or —format <format>)(沒有匯入器辨識出該來源。請單獨匯入該目錄的其中一個檔案,或傳入 —format 指名一種格式,其匯入器會透過其所宣告的檔案模式讀取目錄(例如 —format 加上格式名稱))
the importer serving the source’s format declares no file patterns, so it reads one file and cannot read a directory(服務該來源格式的匯入器未宣告檔案模式,因此它讀取一個檔案,無法讀取目錄)
訊息的其餘部分指名格式、匯入器,以及你所指名的目錄,然後是補救方式:
the importer serving the source’s format declares no file patterns, so it reads one file and cannot read a directory (format "<format>", importer "importer/<name>", directory "<directory>"). Import one of the directory’s files on its own instead; the importer reads a directory once it declares the file patterns its files are named by(服務該來源格式的匯入器未宣告檔案模式,因此它讀取一個檔案,無法讀取目錄。請改為單獨匯入該目錄的其中一個檔案;匯入器在宣告其檔案所依循的檔案模式之後,才會讀取目錄)
no file in the directory matches the file patterns the importer serving the source’s format declares(目錄中沒有檔案符合服務該來源格式的匯入器所宣告的檔案模式)
訊息的其餘部分指名格式、匯入器、你所指名的目錄以及匯入器所宣告的每一個模式,然後是補救方式:
no file in the directory matches the file patterns the importer serving the source’s format declares (format "<format>", importer "importer/<name>", directory "<directory>", file patterns "<pattern>", "<pattern>"). Name a directory holding a file one of those patterns matches, or the format of an importer whose patterns match the files this directory holds(目錄中沒有檔案符合服務該來源格式的匯入器所宣告的檔案模式。請指名一個含有符合其中某個模式之檔案的目錄,或其模式符合此目錄所含檔案的匯入器的格式)
a file read from the directory and a file named in the importer’s with.sources have the same name(從目錄讀取的檔案與匯入器所指名的來源檔案同名)
訊息的其餘部分指名該名稱與 with.sources 檔案,然後是補救方式:
a file read from the directory and a file named in the importer’s with.sources have the same name (name "<name>", the with.sources file "<path>"). Each source reaches the importer under one name, so rename one of the two files, or leave the file out of the importer’s with.sources(從目錄讀取的檔案與匯入器所指名的來源檔案同名。每個來源都以單一名稱抵達匯入器,因此請重新命名兩個檔案之一,或把該檔案從匯入器的來源中拿掉)
no Recipe in the workspace’s catalog binds to the capability the import’s target names (target "<target>", the catalog’s Recipes bind to "<capability>", "<capability>"). Name one of those capabilities as the target, or leave the target out and no Manifest is drafted; nothing was drafted or written(工作區目錄中沒有任何 Recipe 繫結到匯入的目標所指名的能力。請指名其中一項能力作為目標,或省略目標而不草擬 Manifest;沒有草擬或寫入任何東西)
inherited boundary directory carries no template variable, so it resolves to the path the extended Release writes to(繼承的邊界目錄不帶範本變數,因此它解析到被擴充的 Release 所寫入的路徑)
A command-line plugin runner was built without a way to find plugins(命令列外掛程式執行器建置時沒有尋找外掛程式的方式)
E0003
malformed attachment requirement
Malformed attachment requirement(附加要求格式錯誤)
E0004
annotation contribution overridden by an explicit value
An explicit value displaced one an annotation supplied(明確值取代了註記所提供的值)
E0005
policy violation
A governance plugin rejected the build(治理外掛程式拒絕了建置)
E0006
required attachment slot unfilled
Required attachment slot not bound(必要的附加槽位未繫結)
E0007
selector violation
Cross-node type safety violation via selector:(透過選擇器的跨節點型別安全違規)
E0008
attachment slot selector unsatisfied
The Feature filling an attachment slot does not satisfy the slot’s selector(填入附加槽位的 Feature 不符合該槽位的選擇器)
E0009
pipeline step typed-I/O contract violation
A pipeline step’s typed input or output does not satisfy its declared contract(管線步驟的具型別輸入或輸出不符合其宣告的契約)
E0010
pipeline step failed
A pipeline step failed(管線步驟失敗)
E0011
pipeline patch targets a document not present in the set
A pipeline patch addresses a document the set does not hold, or one with no tree to address(管線修補定址了集合中不存在的文件,或沒有可定址樹的文件)
E0012
pipeline patch targets an opaque (non-structured) unit
A pipeline patch addresses a document the set does not hold, or one with no tree to address(管線修補定址了集合中不存在的文件,或沒有可定址樹的文件)
E0013
feature type mismatch between Aggregate and Release
Feature type mismatch between Aggregate and Release(Aggregate 與 Release 之間的 Feature 型別不符)
E0014
inject entry carries both `value:` and `from:`; schema requires exactly one
An inject: entry carries both a literal and a source key(項目同時帶有字面值與來源鍵)
E0015
uses-edge inject dictates a delivery mechanism the socket does not permit
uses edge dictates delivery on a socket that allowlists none(邊在未設定允許清單的插槽上指定傳遞); uses edge dictates a delivery mechanism outside the socket’s allowlist(邊指定了超出插槽允許清單的傳遞機制)
E0016
jsonpatch: test operation failed
A patch’s test operation did not match the document(修補的測試操作與文件不相符)
E0017
annotation-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
An annotation-transform plugin names a component it was not given, or injects a value no annotation takes(註記轉換外掛程式指名了未提供給它的元件,或注入了沒有任何註記接受的值)
E0018
policy attachment settings do not satisfy the plugin's declared settings schema
A governance attachment’s settings do not match the plugin’s declared schema(治理附加項目的設定與外掛程式宣告的結構描述不符)
E0019
endpoint requires form: reference
A workload: form and the fields beside it do not agree(工作負載的形式與其旁的欄位不一致)
E0020
schedule is not a valid cron expression
A workload schedule: is not an expression the check accepts(工作負載的排程不是檢查所接受的運算式)
E0021
persistentTemplate volume requires form: stateful
A workload: form and the fields beside it do not agree(工作負載的形式與其旁的欄位不一致)
E0022
pipeline PATCH target is not parseable structured YAML/JSON
A pipeline step addresses documents the node does not have(管線步驟指向節點沒有的文件)
E0023
form: reference requires an endpoint
A workload: form and the fields beside it do not agree(工作負載的形式與其旁的欄位不一致)
E0024
schedule requires form: scheduled
A workload: form and the fields beside it do not agree(工作負載的形式與其旁的欄位不一致)
E0025
form: scheduled requires a schedule
A workload: form and the fields beside it do not agree(工作負載的形式與其旁的欄位不一致)
E0026
imported artifact content does not match the digest recorded for it in entity.lock
An imported artifact no longer matches the digest recorded beside its Recipe(匯入的成品不再與記錄在其 Recipe 旁的摘要相符)
E0027
artifacts $import: is not a bare-name artifact-library reference (<Library>#/artifacts/<entry>)
A library $import: is not written in the bare-name form(程式庫的匯入不是以純名稱形式撰寫)
E0028
artifacts output filename collision: two artifact outputs carry the same filename
Two artifact outputs of one Recipe carry the same filename(同一個 Recipe 的兩個成品輸出帶有相同的檔名)
E0029
artifact template references a pillar the Recipe does not declare
An artifacts: template reads a pillar the Recipe does not declare(成品範本讀取了 Recipe 未宣告的支柱)
E0030
artifact-library import references a bundle not present in the ArtifactLibrary
A library $import: names a library or an entry the catalog does not hold(程式庫的匯入指名了目錄中沒有的程式庫或項目)
E0031
artifact-library import references an ArtifactLibrary not present in the catalog
A library $import: names a library or an entry the catalog does not hold(程式庫的匯入指名了目錄中沒有的程式庫或項目)
E0032
assembled output collision: two contributors write the same output path
Two contributors write the same output path(兩個貢獻者寫入同一個輸出路徑)
E0033
assertion failed
An assertion stopped the build(斷言使建置中止)
E0034
duplicate delivery key across attachment-inject and another inject source
An attachment delivers a key another inject source already claimed(附加項目傳遞了另一個 inject 來源已宣告的鍵)
E0035
provider expected to assemble its dispatch group provides no boundary assembler
The plugin serving a provider cannot assemble what that provider combines(為某個提供者服務的外掛程式,無法組裝該提供者所合併的內容)
E0036
merged-path assembly has conflicting assembly-name annotation values
Chart-name mismatch on a merged helm-chart umbrella(合併後 helm-chart 傘狀 chart 的 chart 名稱不一致)
E0037
cross-boundary link between endpoints rendered by different providers is not supported
A connection crosses between two different providers’ assembled outputs(連線跨越兩個不同提供者組裝出的輸出)
E0038
derived name collision: one name is derived more than once in one key space
The same name is derived more than once inside the output(同一個名稱在輸出之內被衍生多次)
E0039
FeatureRecipe template references a per-component-only field with executionScope: boundary
FeatureRecipe template references a field outside its scope’s allowlist(FeatureRecipe 範本參照了其範圍允許清單以外的欄位)
E0040
library $import: carries a registry host; reference the library by bare-name identity
A library $import: addresses its library by registry location(程式庫的匯入以登錄庫位置指定其程式庫)
E0041
multiple contributors share an instance ID at the same dispatch path
Instance-ID collision across boundaries assembling to the same path(跨邊界組裝到同一路徑的實例 ID 衝突)
E0042
locals entry references a sibling defined later in the same block
locals: entry references a sibling defined later in the same block(項目參照了同一區塊中較後定義的同層項目)
E0043
template references a key the locals block does not declare
locals: key does not exist(鍵不存在)
E0044
mapping-library import references an entry not present in the MappingLibrary
A library $import: names a library or an entry the catalog does not hold(程式庫的匯入指名了目錄中沒有的程式庫或項目)
E0045
valuesMapping $import: is not a bare-name mapping-library reference (<Library>#/mappings/<entry>)
A library $import: is not written in the bare-name form(程式庫的匯入不是以純名稱形式撰寫)
E0046
mapping-library import references a MappingLibrary not present in the catalog
A library $import: names a library or an entry the catalog does not hold(程式庫的匯入指名了目錄中沒有的程式庫或項目)
E0047
assembled output retains an unresolved cross-boundary link placeholder
Assembled output still carries a cross-boundary placeholder(組裝後的輸出仍帶有跨邊界預留位置)
E0048
dispatch path produced multiple provider outputs
Path collision: two contributors emit at incompatible paths(路徑衝突:兩個貢獻者在不相容的路徑上輸出)
E0049
path template references a field not in the documented allowlist
Path-template references a variable outside the allowlist(路徑範本參照了允許清單以外的變數)
E0050
pipeline /host operation from a step with no host component
A pipeline step addresses documents the node does not have(管線步驟指向節點沒有的文件)
E0051
pipeline PATCH targets an assembler provider's pre-assembly fragments
A pipeline patch addresses output that has not been assembled yet(管線修補指向尚未組裝的輸出)
E0052
pipeline PATCH targets a document the node did not emit
A pipeline step addresses documents the node does not have(管線步驟指向節點沒有的文件)
E0053
pipeline plugin is not compatible with the rendering provider
A pipeline step’s plugin does not claim the provider rendering what it addresses(管線步驟的外掛程式沒有宣稱支援渲染其指向內容的提供者)
E0054
provider rejected node input
A provider refused a node’s input(提供者拒絕了節點的輸入)
E0055
Recipe or FeatureRecipe does not publish a provides key its abstract entity's schema.provides contract declares
A Recipe or FeatureRecipe does not publish a provides key its contract declares(Recipe 或 FeatureRecipe 沒有發布其契約所宣告的提供鍵)
E0056
provides template evaluation failed
A provides: template could not be evaluated(提供項目的範本無法求值)
E0057
provides block references a root outside the self-contained set
provides: template references a non-self-contained root(範本參照了非自足的根)
E0058
provider render is not deterministic
A provider rendered the same input twice and produced different output(提供者對同一份輸入渲染了兩次,卻產生不同的輸出)
E0059
duplicate delivery key across self-inject and uses-inject
Duplicate delivery key across inject sources(跨 inject 來源的重複傳遞鍵)
E0060
template references a root the render context does not define
Template references a root the render context does not define(範本參照了渲染情境未定義的根); Self-inject value template references cross-node data(自我注入值範本參照了跨節點資料)
E0061
unknown provider
Unknown provider(未知的提供者)
E0062
custom inject mechanism has no matching key in injectMapping output; add the mechanism's key to the Recipe injectMapping
A component declares an inject mechanism the attached Feature maps nothing to(元件宣告了所附加 Feature 未對應任何內容的 inject 機制)
E0063
workload-library import references an entry not present in the WorkloadLibrary
A library $import: names a library or an entry the catalog does not hold(程式庫的匯入指名了目錄中沒有的程式庫或項目)
E0064
workload $import: is not a bare-name workload-library reference (<Library>#/workloads/<entry>)
A library $import: is not written in the bare-name form(程式庫的匯入不是以純名稱形式撰寫)
E0065
workload-library import references a WorkloadLibrary not present in the catalog
A library $import: names a library or an entry the catalog does not hold(程式庫的匯入指名了目錄中沒有的程式庫或項目)
E0066
uses edge target does not exist
Dangling uses target(懸空的目標)
E0067
active toggle did not resolve to a boolean
An active: toggle does not resolve to true or false(切換開關未解析為 true 或 false)
Resolving a source: coordinate registers a narrower function set(解析座標時註冊較窄的函式集)
E0113
resolve: sub-aggregate inclusion depth exceeded
The chain of module imports is deeper than the pin walk descends(模組匯入鏈比固定走訪所能下探的更深)
E0114
resolve: no entity in the catalog matches this URI
A reference names no entity the catalog holds(參照指名的實體不在目錄中)
E0115
compactform: ambiguous dispatch — $mode required
A compact-form schema declares a field literally named type(精簡形式結構描述宣告了字面名稱為保留關鍵字的欄位)
E0116
compactform: constraint not valid for declared type
A compact-form constraint does not apply to the type it was written on(精簡形式限制不適用於其所寫的型別)
E0117
compactform: $jsonschema content invalid
A $jsonschema: escape carries content that is not a schema(逸出帶有不是結構描述的內容)
E0118
compactform: cross-document $ref carries a registry host; reference the library by identity
A $ref: addresses a library by registry location(以登錄庫位置定址程式庫的參照)
E0119
compactform: $ref unresolvable
A $ref: is not written in a form the compiler can resolve(寫法為編譯器無法解析的形式)
E0120
compactform: unknown keyword
A compact-form schema uses a keyword the compact form does not know(精簡形式結構描述使用了精簡形式不認識的關鍵字)
E0121
compactform: cross-document $ref target not found
A $ref: is not written in a form the compiler can resolve(寫法為編譯器無法解析的形式)
E0122
deprecation: build consumes a deprecated entity
The build consumes an artifact its publisher has deprecated(建置使用了其發布者已棄用的成品)
E0123
docscache: artifact is not a documentation bundle
A resolved artifact is not a documentation bundle(解析出的成品不是文件組合包)
E0124
docscache: page not found in documentation bundle
A page is absent from a documentation bundle(頁面不存在於文件組合包中)
E0125
egress: 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
The workspace is offline and the step needs the network(工作區處於離線狀態,而此步驟需要網路)
E0126
externalinputs: acquisition is disabled for unpinned inputs
A render requests an external input the lockfile does not pin(渲染要求了鎖定檔未固定的外部輸入)
E0127
externalinputs: fetched bytes mismatch the pinned digest
Fetched bytes do not match a pinned digest(擷取的位元組與固定的摘要不符)
E0128
externalinputs: URL scheme is not allowed
An external input’s URL uses a scheme that is not allowed(外部輸入的 URL 使用了不允許的通訊協定)
E0129
externalinputs: store blob mismatches its pinned record
A stored external input no longer matches its record(已儲存的外部輸入不再與其記錄相符)
E0130
lockfile: out of date; it no longer matches what its Release resolves to
The lockfile no longer matches what the release resolves to(鎖定檔與 Release 解析的結果不再相符)
E0131
lockfile: file failed schema validation
The lockfile does not satisfy its schema(鎖定檔不符合其結構描述)
E0132
oci: manifest has multiple layers of the expected content media type
A manifest carries no layer of the expected kind, or more than one(資訊清單沒有預期種類的層,或有多於一個)
E0133
oci: cached manifest digest mismatch
Fetched or cached bytes do not match the digest committed for them(擷取或快取的位元組與為其承諾的摘要不符)
E0135
oci: content digest mismatch
Fetched or cached bytes do not match the digest committed for them(擷取或快取的位元組與為其承諾的摘要不符)
E0136
oci: network unreachable
The registry could not be reached(無法連線到登錄庫)
E0137
oci: artifact not found at remote source
An artifact is not at the source the build was told to find it(成品不在建置被告知要尋找它的來源)
E0138
oci: authentication required or failed
The registry will not serve an artifact without credentials it accepts(登錄庫不會在沒有它所接受的認證時提供成品)
E0139
oci: tag already published with different content
A tag is already published with different content(標籤已以不同內容發布)
E0140
oci: manifest has no layer of the expected content media type
A manifest carries no layer of the expected kind, or more than one(資訊清單沒有預期種類的層,或有多於一個)
E0141
oci: distinct catalog identities map to the same OCI repository location
Two catalog identities publish to one repository location(兩個目錄身分發布到同一個存放庫位置)
E0142
oci: referrer discovery could not be completed
The registry could not answer what is attached to an artifact(登錄庫無法回答成品附加了什麼)
E0143
oci: unknown entity kind for mediatype dispatch
An entity kind has no artifact media type(實體種類沒有成品媒體類型)
E0144
cached signature bundle does not match its recorded digest
A cached signature bundle does not match the digest recorded for it(快取的簽章組合包與為它記錄的摘要不符)
E0145
plugin reference is not a Plugin entity
A plugin reference is not a Plugin entity(外掛程式參照不是 Plugin 實體)
E0146
circular reference expansion
A library reference expands into itself(程式庫參照展開後指向自身)
E0147
registrytrust: advertised trust config is malformed
A registry serves a trust document that cannot be read as one(登錄庫提供了無法當作信任文件讀取的文件)
E0148
registrytrust: registry advertises no trust config
A registry publishes no trust document(登錄庫未發布信任文件)
E0149
attachment name is a near miss for a declared slot
An attachment name is one edit from a declared slot(附加項目名稱與已宣告的槽位僅差一個編輯)
E0150
attachment does not conform to its declared slot shape
Attachment does not conform to its declared slot shape(附加項目不符合其宣告的槽位形狀)
E0151
component declared in more than one boundary: declare each component in exactly one boundary
A component is placed in more than one boundary(元件被放進多個邊界)
E0152
duplicate Aggregate/Manifest identity (metadata.name) in the Release directory
The Release directory declares one Aggregate or Manifest twice(所在目錄重複宣告了同一個實體)
E0153
feature merge conflict: reconcile the Aggregate and Release declarations for the feature
A feature attached by both the Aggregate and the Release cannot be merged(功能同時由兩份文件附加而無法合併)
E0154
the compiler's own views of the catalog disagree
A guard needs a catalog entity the build resolved and cannot see(防護需要建置已解析但看不到的目錄實體)
E0155
duplicate delivery key across inject sources
Duplicate delivery key across inject sources(跨 inject 來源的重複傳遞鍵)
E0156
invalid inject key: the from-key must name a provides key its source publishes
Inject from key is not in the target’s provides(inject 的 from 鍵不在目標的 provides 中)
E0158
invalid parameter reference: check the {{ .parameters.* }} expression names a declared parameter and parses as a Go template
A {{ .parameters.* }} reference cannot be interpolated(參數參照無法內插)
E0160
Manifest annotation bindings collide on same Feature path+pillar
Two Manifest annotation bindings compete for one routing slot(兩個註記繫結爭用同一個路由槽位)
E0161
Manifest annotation binding uses reserved prefix
A Manifest annotation binding claims the reserved aggrega.ai/ prefix(註記繫結佔用了保留前綴)
E0162
missing required feature: attach a Feature of the required type to the component
Required feature not attached(未附加必要的功能)
E0163
required uses socket not populated
Required uses: socket not populated(必要的插槽未被填入)
E0164
parameter contract violated
Parameter type mismatch / contract violation(參數型別不符/契約違反)
E0165
required parameter not supplied
Parameter type mismatch / contract violation(參數型別不符/契約違反)
E0167
Recipe publishes a provides key its Component does not declare
A Recipe publishes a provides key its Component does not declare(Recipe 發布了其 Component 未宣告的鍵)
E0168
authored pillar does not conform to its declared schema
Authored values or infra do not conform to the declared schema(撰寫的 values 或 infra 不符合所宣告的結構描述)
E0169
self-inject on component without spec.inject allowlist
Self-inject on a component without an allowlist(在沒有允許清單的元件上自行注入); Self-inject mechanism not in the component’s allowlist(自行注入機制不在元件的允許清單中)
E0170
Aggregate/Manifest reference unresolvable
A Release’s aggregate: or manifest: reference resolves to nothing(參照未解析出任何東西)
E0171
unknown 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
uses: socket not declared in the owning entity’s usesSchema(插槽未在擁有實體中宣告)
An x-aggrega-when: or x-aggrega-validate: predicate cannot be evaluated(述詞無法求值)
E0218
validator/jsonschema: schema resolution failed
A declared schema cannot be resolved(宣告的結構描述無法解析)
E0220
extends chain exceeds maximum depth
An extends: chain runs past the depth bound(extends: 鏈超出深度上限)
E0221
merger: invalid merge input
The schema-merge step’s own input guard(結構描述合併步驟自身的輸入護欄)
E0222
registry alias matches more than one host
A registry alias matches more than one host(一個登錄庫別名符合多個主機)
E0223
a cross-cutting socket is bound by capability but attaches by uri
A plugin binding sets a key the socket it attaches to does not read(外掛程式繫結設定了其所附加之插槽不讀取的鍵)
E0224
workspace configuration is invalid
The workspace configuration is invalid(工作區設定無效)
E0225
capability is bound to more than one provider plugin
A capability is bound to more than one provider plugin(一項能力被繫結到多個提供者外掛程式)
E0226
registry alias is already used by another host
A registry alias is already bound to another host(登錄庫別名已繫結至另一個主機)
E0227
a governance attachment declares no role or an unknown role
A governance attachment declares no role, or one that is not a known role(治理附加項目未宣告角色,或宣告的不是已知角色)
E0228
a provider socket binding sets a field with no referent on that socket
A plugin binding sets a key the socket it attaches to does not read(外掛程式繫結設定了其所附加之插槽不讀取的鍵)
E0229
position out of range
An editor position falls outside the document(編輯器位置落在文件之外)
E0246
the digest recorded as trusted for this plugin does not match the digest its cached manifest reports
A trusted plugin’s recorded digest disagrees with the cached artifact(受信任外掛程式所記錄的摘要與快取成品不一致)
E0247
a plugin recorded as trusted for an accept-or-reject verdict is no longer attached at any verdict role
A plugin recorded as a trusted gate is no longer attached(記錄為受信任閘門的外掛程式已不再附加)
E0248
wasm: guest plugin returned an output that is not the shape the socket reads
A plugin returned something that is not the shape the socket reads(外掛程式回傳的不是插槽所讀取的形狀)
E0250
provider named a directory for each contributor's own sub-directory that is not a single directory name
A provider named a directory for a contributor that is not one directory(提供者為貢獻者指定的目錄並非單一目錄)
E0251
recipe source is an empty string, which names neither sourceless mode nor sourced mode
Recipe source: is an empty string(來源欄位為空字串)
E0252
artifact-library bundle file name does not name a file of its own beneath the artifacts key its output is nested under
An ArtifactLibrary bundle file names no file of its own under the key it was imported at(ArtifactLibrary 套組的檔案,在其被匯入的鍵之下沒有指名屬於自己的檔案)
E0253
annotation binding does not resolve against its target Feature
Annotation binding does not resolve against its target Feature(註記繫結無法對其目標 Feature 解析)
E0254
annotation subkey does not conform to the target Feature's schema at the routed pillar
A bound annotation value does not conform to the target Feature’s schema(繫結的註記值不符合目標 Feature 的結構描述)
E0255
annotation routes through a pillar its authoring side may not use
An annotation routes through a pillar its authoring side may not use(註記經由其撰寫側不得使用的支柱路由)
E0256
annotation binding declares one path in both pillar lists
An annotation binding declares one path in both pillar lists(註記繫結在兩個支柱清單中宣告同一個路徑)
E0257
declared 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
A declared schema contract cannot be read as a schema(宣告的結構描述契約無法被讀取為結構描述)
E0259
attachment binds a FeatureRecipe with executionScope: boundary and no boundary holding the component declares it
A boundary-scope Feature is attached only to a component(邊界範圍的 Feature 只附加到元件)
E0260
component placed in no boundary: name it under a boundary's `components`, or place the sub-module that contributes it under `aggregates`
A component the composition holds is placed in no boundary(組合所持有的元件未置於任何邊界)
E0261
boundary names a component the composition does not hold: correct the name, or remove the entry
A boundary names a component the composition does not hold(邊界指名了組合未持有的元件)
E0262
component identity cannot be the name its emitted resources are stamped with: rename the component
Component identity cannot be stamped on what it emits(Component 身分無法標記到它所輸出的內容上)
E0263
the target will not accept a name derived from this component's authored identity: rename the component
The target will not accept a name derived from an authored identity(目標不接受由撰寫的身分衍生的名稱)
E0264
provider guest never accepted a component identity the compiler composed for it
A provider never accepted a name the compiler composed(提供者從未接受編譯器所組合的名稱)
E0265
provider does not support the node's input kind
workload: requires a provider that can synthesize(workload: 需要能夠合成的提供者)
E0266
a schema `$import:` could not be applied
A schema $import: cannot be applied(結構描述的匯入無法套用)
E0267
a schema block declares a key that names no data pillar
A schema block names a key that is not a data pillar(結構描述區塊指名了不是資料支柱的鍵)
E0268
reassemble names a patched unit token the carve did not produce; a conforming codec carves and reassembles a file under the same tokens
A provider’s reassembly is handed a unit its own carve never produced(提供者的重新組裝收到了其自身切分從未產生的單元)
E0269
provider guest returned two output files under one path; a conforming guest returns each output path at most once
A provider returned two output files under one path(提供者在同一路徑下回傳了兩個輸出檔案)
E0270
link patch names an output file the dispatch group did not emit; a conforming link patch names a file the group's own render returned
A provider’s link wiring names an output file that was never emitted(提供者的連結連接指名了從未發出的輸出檔案)
E0271
emit_file side effect carries no file; a conforming emit_file side effect carries a file with its path and content
A pipeline step’s file emission carries no file(管線步驟的檔案發出不帶任何檔案)
E0272
side effect declares a kind the plugin contract does not define; a conforming side effect declares emit_file or emit_crd
A pipeline step declares an emission kind the contract does not define(管線步驟宣告了契約未定義的發出種類)
E0273
template 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
A template reads a rendered name the node’s provider does not report(範本讀取了節點的提供者未回報的渲染後名稱)
E0274
the plugin identity recorded as trusted no longer matches what this resolution reports
A gate recorded as trusted resolves to a different identity(記錄為受信任的閘門解析為不同的身分)
E0275
the edit was refused because the resulting document would not be valid, and nothing was written
An edit would produce a document its schema refuses(編輯會產生其結構描述拒絕的文件)
E0276
the version being published changes the published predecessor in a way the documented evolution rubric objects to
The change being published breaks what the evolution rubric allows(所發布的變更超出演進評量標準所允許的範圍)
E0277
an annotation key on the entity uses a prefix the platform reserves
An annotation key uses a prefix the platform reserves(註記鍵使用了平台保留的前綴)
E0278
the entity's name does not follow the documented name shape for its kind
An entity’s name does not follow the shape its kind expects(實體名稱不符合其種類預期的形狀)
E0279
a schema in the entity uses a dynamic reference construct that cross-document reference resolution cannot follow
A schema uses a dynamic reference that cannot be resolved ahead of time(結構描述使用了無法預先解析的動態參照)
E0280
a schema in the entity declares an identifier of its own, where the platform owns that schema's identity
A schema declares an identifier the platform owns(結構描述宣告了平台所擁有的識別碼)
E0281
the entity's category label does not match the category directory the entity is filed under
A Component’s category label and its directory name different categories(Component 的類別標籤與其目錄指稱不同的類別)
E0282
the entity writes an Aggrega schema extension directly into schema content instead of declaring it under usesSchema or featuresSchema
A schema extension is written directly into schema content(結構描述擴充被直接寫入結構描述內容)
E0283
the Plugin entity declares no runtime resource cap of its own, so the platform defaults apply
A Plugin pins neither runtime cap, so the platform’s own apply(Plugin 兩項執行階段上限都未固定,因此套用平台本身的上限)
E0284
an attachment slot admits only secret material and does not declare that it handles it
An attachment slot admits only secret material without saying it handles it(附加槽位只接受機密資料卻未說明其會處理機密)
E0285
the Recipe publishes a provides key the Component it implements does not declare, so a consumer wiring that key is refused
A Recipe publishes a provides key its Component does not declare, checked at publication(發布時檢查:Recipe 發布了其 Component 未宣告的鍵)
E0286
the version bump being published is smaller than the evolution check's classification of the change requires
The version offered is a smaller bump than the change requires(所提供的版本升幅小於變更所需)
E0287
the importer reported a diagnostic that stops the import, so the source was not fully turned into draft authoring files
An import stopped partway through translating a source(匯入在轉換來源的途中停止)
E0288
a plugin has no expression for a construct this build declares
A workload declares a form compose cannot express(工作負載宣告了 compose 無法表達的形式); A container declares a field compose has no primitive for(容器宣告了 compose 沒有基本元素可對應的欄位); An omits entry names a kind or a namespace a compose file does not have(omits 項目指名了 compose 檔案所沒有的種類或命名空間); An omits entry names a namespace a CloudFormation template does not have(omits 項目指名了 CloudFormation 範本所沒有的命名空間); A rule reads a bound CloudFormation parameter by name(規則以名稱讀取已繫結的 CloudFormation 參數); The assembled CloudFormation stack cannot carry a transform(組裝後的 CloudFormation 堆疊無法帶有轉換)
E0289
a plugin could not resolve something it requires to exactly one value
A health probe cannot be turned into a compose healthcheck(健康探測無法轉換為 compose healthcheck); A configmap volume has no file behind it(configmap 磁碟區背後沒有檔案); What an omits entry left out is still named by the compose file(omits 項目所省略的內容仍被 compose 檔案指名); What an omits entry left out is still named by a CloudFormation template(omits 項目所省略的內容仍被 CloudFormation 範本指名); A valuesMapping key names no parameter of a sourced CloudFormation template(valuesMapping 的鍵未指名來源式 CloudFormation 範本的任何參數); Another component references a CloudFormation parameter a sourced template’s binding filled(另一個元件參照了來源式範本的繫結所填入的 CloudFormation 參數); Two components order one pair of transforms oppositely(兩個元件以相反順序排列同一對轉換); An ARM reference names nothing in its template level(ARM 參照在其範本層級中指不到任何東西); A sourced ARM template’s required parameter is left unbound(來源式 ARM 範本的必要參數未繫結); A cross-boundary reference has no consuming stack to be written into(跨邊界參照沒有可寫入的使用端堆疊); A synthesized StatefulSet has no single service to govern it(合成式 StatefulSet 沒有單一的管理服務)
E0290
two things a plugin produced occupy one name in its output
An authored export name is one the build derives for a cross-stack reference(撰寫的匯出名稱與建置為跨堆疊參照衍生的名稱相同); The output a cross-stack reference publishes on already carries an Export(跨堆疊參照所發布的輸出已帶有 Export); Two entries reach one stack output name(兩個項目抵達同一個堆疊輸出名稱); A CloudFormation fragment writes one key twice(CloudFormation 片段將同一個鍵寫了兩次); Two rendered resources land at one output file(兩個渲染出的資源落在同一個輸出檔案)
E0291
a plugin has no representation for a value it was given
A published port declares a transport compose cannot spell(發布的連接埠宣告了 compose 無法拼寫的傳輸); A resources quantity cannot be converted to a compose value(resources 數量無法轉換為 compose 值); A resource quantity the helm provider emits is not a quantity(helm 提供者發出的資源數量不是數量); A service type the helm provider cannot render(helm 提供者無法渲染的服務型別); A Kubernetes version the helm provider cannot render a chart for(helm 提供者無法為其渲染 chart 的 Kubernetes 版本); A value bound to a CloudFormation parameter cannot take the parameter’s type(繫結到 CloudFormation 參數的值無法採用該參數的型別); A value bound to a CloudFormation parameter is one its constraints refuse(繫結到 CloudFormation 參數的值被其限制條件拒絕); A secret bound to a CloudFormation parameter would be written into the template(繫結到 CloudFormation 參數的機密會被寫入範本); A dynamic reference is bound where CloudFormation does not resolve it(動態參照被繫結在 CloudFormation 不解析它的位置); An ARM expression does not parse(ARM 運算式無法剖析); A value is written inside an ARM expression(值被寫在 ARM 運算式之內); A secret is read across deployments(機密被跨部署讀取); A value read from another deployment is written where ARM does not evaluate it(讀取自另一個部署的值被寫在 ARM 不會求值的位置); A provided value splices a call into literal text across deployments(提供的值在跨部署時將呼叫拼接進字面文字); A cross-boundary reference was spliced into a longer string(跨邊界參照被拼接進較長的字串)
E0292
a plugin reported a failure that none of the declared kinds names
A plugin reported a failure it did not classify(外掛程式回報了它未分類的失敗)
E0293
wasm: guest plugin named a condition the socket does not declare
A plugin named a condition the socket does not declare(外掛程式指名了插槽未宣告的條件)
E0294
components in different subsystems take the same identity: rename one of them, since a subsystem contributes nothing to a component's identity
Two subsystems declare a component under one name(兩個子系統以同一個名稱宣告元件)
E0295
library reference: a reference to a library entry carries no whitespace or line break
A reference to a library entry carries whitespace(程式庫項目的參照帶有空白字元)
E0296
release extends chain composes both named boundaries and top-level components: declare one routing shape across the chain, never both
A Release chain’s links disagree about the routing shape(Release 鏈的各環節對路由形狀的看法不一致)
E0297
inherited boundary directory carries no template variable, so it resolves to the path the extended Release writes to
A child Release inherits a boundary directory that resolves where its parent writes(子 Release 繼承的邊界目錄解析到其父項寫入之處)
E0298
oci: published bundle carries no entity document
A published bundle holds no entity, or holds two(已發布的組合包不含實體,或含有兩個)
E0299
oci: published bundle carries more than one entity document
A published bundle holds no entity, or holds two(已發布的組合包不含實體,或含有兩個)
E0300
oci: published bundle cannot be unpacked
A published artifact cannot be read as an entity(已發布的成品無法讀作實體)
E0301
oci: published artifact is not an entity document
A published artifact cannot be read as an entity(已發布的成品無法讀作實體)
E0302
an input the entity reads has no pin recorded for it in the entity.lock beside it
An entity reads an input the lock beside it records no pin for(實體讀取了其旁的鎖定檔沒有記錄固定項目的輸入)
E0303
the entity shares its directory with another entity, and an entity of its kind has a directory of its own
An entity shares its directory with another entity(實體與另一個實體共用目錄)
E0304
a path names content outside the entity's own directory
A path names content outside the entity’s own directory(路徑指名了實體自己目錄之外的內容)
E0305
the files of the entity's local source do not match the pins recorded for them in entity.lock
A local source no longer matches the pins recorded beside its Recipe(本機來源不再與記錄在其 Recipe 旁的固定項目相符)
E0306
plugin artifact not found on this machine
A plugin’s .wasm is not on this machine(外掛程式的模組檔不在本機上)
E0307
a value a cache location is built from would place cached files outside the place it names in the cache
A value would place a cached file outside the cache(某個值會把快取檔案放到快取之外)
E0308
a Feature reaches a component alongside a Feature it declares a conflict with
Two Features declared to conflict reach one component(宣告互相衝突的兩個 Features 抵達同一個元件)
E0309
a symbolic link sits among the files an entity carries
A symbolic link sits among the files an entity carries(實體所攜帶的檔案中有符號連結)
E0310
a 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>`
A registry is added offline with no trust policy to pin(離線新增登錄庫而沒有可固定的信任原則)
E0311
reference carries a malformed version pin
A version pin is none of the forms a pin takes(版本固定不屬於固定所採用的任何形式)
E0312
a provider socket binding names a capability containing a colon, which no Recipe can select
A provider binding names a capability containing a colon(提供者繫結指名了含有冒號的能力)
E0313
plugins.providers entry names a capability no provider-rendering plugin the build reads serves
A provider binding names a capability no plugin the build reads serves(提供者繫結指名了建置所讀取的外掛程式都不服務的能力)
E0314
plugin was built from a working tree with uncommitted changes, so no commit reproduces the version it reports
A plugin was built from a working tree with uncommitted changes(外掛程式是從含有未提交變更的工作樹建置的)
E0315
a connection carries an attachment under a name its socket declares no slot for
A connection carries an attachment under a name its socket declares no slot for(連線帶有的附加項目,其名稱在插槽中沒有對應的槽位)
E0316
a Release attachment takes the name of an attachment one of a component's connections carries
A Release attachment takes the name of a connection’s attachment(Release 附加項目採用了連線之附加項目的名稱)
E0317
a Release connection attachment names no Feature type, and the type is required for an attachment only the Release makes
A Release connection attachment names no Feature type(Release 連線附加項目未指名 Feature 型別)
E0318
duplicate delivery key across two attachments: an attachment's FeatureRecipe writes a delivery key another attachment already delivered
Two attached Features deliver one key, the later through its FeatureRecipe’s injectMapping(兩個已附加的 Features 傳遞同一個鍵,後者透過其 FeatureRecipe 的 injectMapping)
E0319
connection alias is already used by another connection of the same component
Two connections of one component under one alias(單一元件在同一別名下的兩條連線)
E0320
a path this operation writes or deletes leads through a link out of the directory it must stay inside
A path the operation writes leads through a link out of the directory it must stay inside(作業寫入的路徑經由連結通往它必須留在其中的目錄之外)
E0321
a file this operation reads leads through a link out of the directory it must stay inside
A file the operation reads leads through a link out of the directory it must stay inside(作業所讀取的檔案經由連結通往其必須留在內部的目錄之外)
E0323
template reads its callers' render facts, but the FeatureRecipe does not set readsCallerRenderFacts
A template reads its callers’ render facts without declaring it(範本未宣告就讀取其呼叫端的渲染事實)
E0324
a reference a document makes to another file leads out of the directory it must stay inside
A reference to another file leads out of the directory it must stay inside(對另一個檔案的參照通往其必須留在內部的目錄之外)
E0325
provider 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
A provider reported a render fact whose value is not a list(提供者回報的渲染事實,其值不是清單)
E0326
pipeline 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
A pipeline step reads its callers’ render facts(管線步驟讀取其呼叫端的渲染事實)
E0327
template indexes a map with a key the map does not hold
A template indexes a map with a key the map does not hold(範本以對應表未包含的鍵索引該對應表)
E0328
attachment written under a name no slot declares fits a slot its component leaves empty
An attachment written under another name fits a slot its component leaves empty(以其他名稱撰寫的附加項目符合其元件留空的槽位)
E0329
a connection and the target it reaches do not name one key: they write different locators for it, or only one of them names one
A connection and the target it reaches do not name one key(連線與其所連到的目標並未指稱同一把金鑰)
E0330
signing: the references named together need different signing credentials, so nothing was signed
References signed together need different signing credentials(一併簽章的參照需要不同的簽署認證)
E0331
signing: no verified signature is recorded for an artifact that requires one
No verified signature is recorded for an artifact that requires one(需要簽章的成品沒有記錄任何已驗證的簽章)
E0332
signing: the recorded signature was made for a different artifact
A recorded signature was made for a different artifact(所記錄的簽章是為不同的成品製作的)
E0333
signing: a recorded signature is not the one a pull would record
A recorded signature is not the one a pull would record(所記錄的簽章不是 pull 會記錄的簽章)
E0334
an omits entry left out nothing the source rendered
An omits entry left out nothing the source rendered(omits 項目沒有排除來源所渲染的任何東西)
E0335
provider does not support omits
The provider does not support omits(提供者不支援 omits)
E0336
a provider's omitted counts do not match the omits entries it was handed
A provider’s omitted counts do not match the omits entries it was handed(提供者回報的省略計數與其收到的 omits 項目不符)
E0337
no importer plugin version satisfies the plugins.importer entry's version pin
A plugins.importer entry pins a version of its importer the catalog does not hold(plugins.importer 項目固定了目錄中不存在的匯入器版本)
E0338
importer is attached by more than one plugins.importer entry
An importer is attached by more than one plugins.importer entry(一個匯入器被多個項目附加)
E0339
more than one importer recognises the source
More than one importer recognises the source(有多個匯入器辨識出該來源)
E0340
a name this operation writes holds a path segment Windows cannot hold as written
A name the operation writes holds a part Windows cannot hold(作業所寫入的名稱含有 Windows 無法容納的部分)
E0341
the importer serving the source's format declares no file patterns, so it reads one file and cannot read a directory
An importer that declares no file patterns is handed a directory(未宣告檔案模式的匯入器被交付了一個目錄)
E0342
no file in the directory matches the file patterns the importer serving the source's format declares
No file in the directory matches the importer’s file patterns(目錄中沒有檔案符合匯入器的檔案模式)
E0343
a file read from the directory and a file named in the importer's `with.sources` have the same name
A file read from the directory and a file named in the importer’s with.sources have the same name(從目錄讀取的檔案與匯入器所指名的來源檔案同名)
E0344
an entry this publication carries cannot be used on Windows
A published archive carries an entry Windows cannot use(已發布的封存檔含有 Windows 無法使用的項目)
E0345
a container declares one environment variable twice
A container gives one environment variable two values(容器為同一個環境變數給了兩個值)
E0346
a Component's annotation stating how its metrics authenticate disagrees with whether it declares the provides key saying an instance's metrics need a credential
A Component’s metrics annotation and its provides key disagree(Component 的指標註記與其 provides 鍵不一致)
E0347
template reads the render facts of a component its host is wired to, but the FeatureRecipe does not set readsTargetRenderFacts
A template reads its targets’ render facts without declaring it(範本未宣告就讀取其目標的渲染事實)
E0348
pipeline 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
A pipeline step reads its targets’ render facts(管線步驟讀取其目標的渲染事實)
E0349
no Recipe in the workspace's catalog binds to the capability the import's target names
An import’s target names a capability no Recipe in the catalog binds to(匯入的目標指稱了目錄中沒有任何 Recipe 繫結的能力)
E0350
no importer recognises the source
No importer recognises the source(沒有匯入器辨識出該來源)
E0351
provider does not support boundary artifacts
The provider does not support boundary artifacts(提供者不支援邊界成品)
E0352
boundary output directory does not name a directory beneath the output root
A boundary’s output directory is not a directory beneath the output root(邊界的輸出目錄不是輸出根目錄之下的目錄)
E0353
boundary-level Feature instance name is not a directory name
A boundary-level Feature is named . or ..(邊界層級 Feature 的名稱是單點或雙點)
E0354
a template does more than copy a value it reads off a cross-boundary link
A template did more than copy a value it read off a cross-boundary link(範本做的不只是複製它從跨邊界連結讀到的值)
E0355
inject delivery: shape must be a list of entries, each `in:` with exactly one of `from:` or `value:`
An inject: delivery is not a list of entries(傳遞不是項目清單)
E0356
suspend requires form: scheduled
A workload suspend: is set on a form other than scheduled(工作負載的暫停設定用在 scheduled 以外的形式上)
E0357
a Manifest name mapping's key names no component instance or attachment in this build, so the entry binds nothing
A Manifest name mapping names nothing in the build(名稱層級的對應在建置中未指名任何東西)
E0358
uses edge target names a component its module does not export
A uses target names a module’s component the module does not export(目標指名了模組未匯出的模組元件)
E0359
no source adapter is registered in this program for the source kind
No source adapter is registered in this program for a source kind(此程式中沒有為來源種類註冊來源配接器)
E0360
the netrc file could not be read
The netrc file cannot be read(無法讀取 netrc 檔案)
E0361
the source URL carries a credential
A source URL carries a credential(來源 URL 帶有認證)
E0362
inject entry on a connection carries `value:`; a connection delivers the target's published keys, each named with `from:`
An inject: entry on a connection carries a literal(連線上的項目帶有字面值)
E0363
annotation subkey is not routed by the annotation's binding
An annotation subkey is not routed by its binding(註記子鍵未被其繫結路由)
E0364
a value template failed while it ran
A value template failed while it ran(值範本在執行時失敗)
E0365
boundary-level Feature's output is routed to a dispatch path nothing assembles
A boundary-level Feature’s output reaches no assembled file(邊界層級 Feature 的輸出到不了任何組裝後的檔案)
E0366
FeatureRecipe injectMapping output could not be read as a dictionary of deliveries
An attached Feature’s injectMapping output cannot be read(已附加 Feature 的 injectMapping 輸出無法讀取)
E0367
a scalar annotation value does not route to exactly one path of its binding
A bare annotation value does not route to exactly one path of its binding(裸註記值未恰好路由到其繫結的一個路徑)
E0368
FeatureRecipe injectMapping output writes a key no delivery mechanism of the host reads
An attached Feature’s injectMapping output writes deliveries under a key nothing delivers(已附加 Feature 的 injectMapping 輸出在沒有任何東西傳遞的鍵之下寫入傳遞)
E0369
template reads a path as a value and iterates it, and the data holds nothing at that path
A template reads and iterates a path that holds nothing(範本讀取並迭代一個空無內容的路徑)
E0370
a pipeline declares one step id twice
A pipeline declares one step id twice(管線兩次宣告同一個步驟 id)
E0371
catalog document declares a kind a catalog does not hold
A catalog document declares a kind a catalog does not hold(目錄文件宣告了目錄未收錄的實體種類)
E0372
inject 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
An inject: entry on an attached Feature carries a literal(所附加 Feature 上的項目帶有字面值)
E0373
a document declares an API version this compiler no longer reads
A document declares an API version this compiler no longer reads(文件宣告了此編譯器不再讀取的 API 版本)
E0374
a plugin declares a plugin ABI version this compiler no longer speaks
A plugin declares a plugin ABI version this compiler no longer speaks(外掛程式宣告了此編譯器不再使用的外掛程式 ABI 版本)
E0375
oci: artifact carries a media type this compiler no longer reads
An artifact carries a media type this compiler no longer reads(成品帶有此編譯器不再讀取的媒體類型)
E0376
egress: the server did not answer in time
A server did not answer in time(伺服器未在時限內回應)
E0377
registry: the repository listing did not end in time
A registry’s repository listing did not end in time(登錄庫的存放庫清單未在時限內結束)
E0378
oci: the registry kept asking to slow down
A registry kept asking to slow down(登錄庫持續要求放慢速度)
E0379
the source does not name one artifact of its OCI module kind
The source does not name one artifact of its OCI module kind(來源未指名其 OCI 模組種類的單一成品)
E0380
oci: the registry answered with a server error
A registry answered with a server error(登錄庫以伺服器錯誤回應)
E0381
oci: the transfer from the registry broke off
A transfer from a registry broke off(來自登錄庫的傳輸中斷)
E0382
no version of a component or feature type satisfies every constraint declared on the instance
No version of a component or feature type satisfies every constraint on an instance(沒有任何元件或功能型別的版本能滿足實例上的每個限制)
linter 領域(非致命)
編譯器對於執行嚴格地不預設立場。它絕不會因為僅僅可疑的模式而中止建置——未使用的值、孤立的機密、斷開連接的目標。這類模式至多引發一個提示——建置自己的,用於上方「Conditions that do not halt a build(不會中止建置的條件)」之下所編目的少數,例如沒有東西讀取的已宣告參數——其餘則屬於 linter 領域,企業在其中選擇採用 Wasm 外掛程式來強制執行自己的慣例。