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

aggrega config

ตรวจสอบและจัดการการกำหนดค่าของพื้นที่ทำงาน

รูปแบบคำสั่ง

aggrega config

คำอธิบาย

Inspect and manage the configuration Aggrega reads.
Most projects need two files.
One .aggrega-config.yaml at your project root, carrying a "workspace:" block —
that block is what marks the root — holds how this project builds: its catalog
directories, its provider bindings, which lint rules it relaxes. It is
committed, so a teammate who clones the project builds it the same way.
One global file is shared across every workspace on this machine:
~/.config/aggrega/config.yaml, or on Windows aggrega\config.yaml inside the
directory the APPDATA environment variable names. It holds what belongs to the
machine rather than to any one project: the registries you pull from and the
signature trust policy for each, how large the compiled-module store may grow,
any command extension you have installed. It loads automatically when it is
there, and nothing breaks when it is not.
Your project's file wins over the global one, an environment variable wins
over both, and a flag wins over everything.
Secrets are not configuration. A registry password or a signing identity token
is never a field in either file; it is supplied by environment variable or flag
at the moment it is needed.
Because the effective configuration is assembled rather than written anywhere,
"aggrega config show" is how you see what actually applies, and --origin is how
you find out which layer each setting came from. "aggrega config init" seeds a
working configuration, and "aggrega config capture" freezes the effective
build-critical settings into this workspace so a build does not depend on a
global file that is not committed.
Larger projects have more to work with. None of it is needed to start, and each
piece exists for the shape it solves:
More than one file inside a project. Every .aggrega-config.yaml from the
project root down to the directory you run in contributes, a nearer file
overriding a farther one. Only a file carrying "workspace:" marks the root;
one without it contributes settings without anchoring anything.
Extending a list instead of replacing it. A nearer file's list replaces the
farther one's. The companions catalog_dirs_append, governance_append,
linter_append, importer_append and providers_append concatenate onto the
resolved list at each layer instead of shadowing it.
A file your pipeline owns. .aggrega-config-append-ci.yaml may sit beside the
hand-authored file in any of those directories, so automation can overwrite
it wholesale without touching what a person wrote. It is additive only: it
removes nothing and overrides no scalar, and a scalar key written in it is
ignored and named in a warning. It never marks a root.
A relative path anchors to the file that declared it. A catalog directory, a
local plugin path, or an entry under a plugin's with.sources resolves against
the directory of the config file it was written in — not the project root,
and not the directory you ran the command from. So the same "./catalog" names
a different directory depending on which file carries it. Two settings sit
outside this rule: artifact_cache_dir is interpreted relative to the project
root wherever you run from, and AGGREGA_CATALOG_DIRS has no declaring file at
all, so supply absolute paths in it.
The other root markers. A "workspace:" block wins outright at whatever depth
it sits. Failing one, the nearest .aggrega/ directory or aggregate*.yaml,
release*.yaml or manifest*.yaml file anchors the root, in that order within a
directory; failing everything, your working directory is used.
--workspace-root skips discovery entirely.
Naming the global file. --config <path> wins over the AGGREGA_CONFIG
environment variable, which wins over the default location. Both name a file
deliberately, so a path either gives that does not exist is a loud error
rather than a silent fallback. Whichever file resolves is also the one a
config-writing command writes when it writes globally.

คำสั่งย่อย

คำสั่งคำอธิบาย
aggrega config captureตรึงการกำหนดค่าที่มีผลซึ่งสำคัญต่อการบิลด์ลงในพื้นที่ทำงานนี้
aggrega config initเริ่มต้นการกำหนดค่าที่ใช้งานได้ด้วยรีจิสทรีและนโยบายความเชื่อถือของรีจิสทรีนั้น
aggrega config showแสดงการกำหนดค่าที่มีผลและที่มาของการตั้งค่าแต่ละรายการ

คำอธิบายของ aggrega config capture

Write the effective build-critical configuration into this project's workspace
config file, so the workspace builds identically without relying on the
machine's global configuration.
The build-critical subset is the configuration a build participates in: a set of
plugin socket attachments and the catalog directories. By default the captured
sockets are only those that determine the
rendered output — the provider bindings and the transform-role governance attachments — since only those must
travel with the project for byte-identical output. Pass --all-plugins to also
freeze the verdict-role governance, linter, and importer sockets, which otherwise stay free to
vary by environment. Each field is written at its effective value — the value
that resolves right now with the global configuration and the workspace tree
merged together — so a binding that today comes only from the global config is
materialized into the workspace and travels with the project.
Machine-wide tooling settings, such as a registry's trust policy, are not
captured: they stay in the global config by their nature. Capture always writes
this project's workspace config file. Running it again on an unchanged
configuration rewrites the same file byte-for-byte. Run in a folder that is not
inside a workspace, with no --workspace-root naming one, it writes nothing and
exits with an error saying so.

แฟล็กของ aggrega config capture

แฟล็กค่าเริ่มต้นคำอธิบาย
--all-pluginsfalseตรึงซ็อกเก็ตปลั๊กอินทั้งหมด รวมถึงด่านตรวจของการกำกับดูแลในบทบาทคำตัดสิน ของ linter และของตัวนำเข้า หากไม่ใช้แฟล็กนี้ จะตรึงเฉพาะซ็อกเก็ตที่กำหนดเอาต์พุตที่เรนเดอร์ (การผูกผู้ให้บริการและการแนบการกำกับดูแลในบทบาทการแปลง)

คำอธิบายของ aggrega config init

Seed a working configuration by registering a registry and its signature trust
policy, so a fresh machine can pull and verify signed artifacts without editing
YAML by hand.
By default it registers the official hub (hub.aggrega.ai) with signatures
required and the official trusted identities. The registry's advertised trust
policy is fetched once from its own origin and pinned locally — trust-on-first-
use; when the hub is unreachable, advertises nothing, or the workspace is
offline, its built-in official baseline is written instead, so init still
produces a usable config offline. Pass --registry to seed a different registry
(for an air-gapped or private hub). Such a registry has no built-in baseline,
so seeding it while the workspace is offline is refused: init takes no
identities or key to pin by hand, so register it once while online, or add it
with "aggrega registry add --identity" or "--key".
The entry is written to the global config shared across every workspace by
default; pass --workspace to write it to this project's workspace config
instead. If the target config file already exists, init refuses rather than
overwrite it — pass --force to write anyway (the registry entry is merged into
the existing file, other settings preserved).
Before anything else, init says where things are: the configuration file it
created — or, under --force, the one already there that it wrote into — and
the directory the machine-wide caches are kept in. On Windows that directory is
aggrega\cache inside the directory the LOCALAPPDATA environment variable names;
elsewhere it is a directory named aggrega under the per-user cache directory:
~/.cache/aggrega on Linux unless XDG_CACHE_HOME names another, and
~/Library/Caches/aggrega on macOS.
A seeded configuration is a document you own and go on editing, so --dry-run does
everything init does except write: it hands the content back, creating and
modifying nothing. The answer names the file the content is for — which matters
here, because the target is the global config unless --workspace selects this
project's own. A caller that keeps its own document model puts the content there,
where it is visible before it is saved and can be amended or undone. The registry
is still contacted for its advertised trust policy, because the policy in that
content is the policy a write would have pinned.
Because a dry run does everything else init does, it refuses an existing config
file exactly as a write refuses it, and for the same reason. So its exit code
predicts the write's: if the dry run refuses, init would have refused. Pass
--force alongside it to see the merge an overwriting write would produce.
Under --dry-run standard output carries that content and nothing else, so it stays
parseable. A registry seeded with no trust policy, because it advertises none,
still produces its notice, on standard error: read that stream too, or that
configuration arrives without the advice to pin identities by hand. A pinned
policy, whether advertised or the hub's built-in baseline, is in the content
itself and produces no notice.

แฟล็กของ aggrega config init

แฟล็กค่าเริ่มต้นคำอธิบาย
--dry-runfalseทำทุกอย่างยกเว้นการเขียน ส่งการกำหนดค่าที่เริ่มต้นไว้กลับมาเป็นเนื้อหาพร้อมระบุไฟล์ที่เนื้อหานั้นมีไว้สำหรับ และไม่สร้างหรือแก้ไขสิ่งใด พฤติกรรมอื่นทุกอย่างเหมือนการเขียน ไฟล์การกำหนดค่าที่มีอยู่แล้วจึงถูกปฏิเสธเหมือนที่การเขียนปฏิเสธทุกประการ — ใส่ —force ร่วมด้วยเพื่อดูผลการผสานที่การเขียนแบบเขียนทับจะสร้างขึ้น
--forcefalseเขียนทับไฟล์การกำหนดค่าที่มีอยู่ หากไม่ใช้แฟล็กนี้ init จะปฏิเสธเมื่อไฟล์เป้าหมายมีอยู่แล้ว
--globalfalseเขียนรายการลงในการกำหนดค่าส่วนกลางที่ใช้ร่วมกันทุกพื้นที่ทำงาน นี่คือค่าเริ่มต้น
--registryhub.aggrega.aiโฮสต์ของรีจิสทรีที่จะเริ่มต้นพร้อมนโยบายความเชื่อถือ ค่าเริ่มต้นคือ hub อย่างเป็นทางการ
--workspacefalseเขียนรายการลงในการกำหนดค่าพื้นที่ทำงานของโปรเจกต์นี้แทนการกำหนดค่าส่วนกลาง

คำอธิบายของ aggrega config show

Show the configuration that applies right now.
By default it leads with the cascade of config files and environment overrides
that contributed, lowest precedence first, then prints the effective merged
configuration — the global config, the workspace-tree cascade, and any
environment override combined into what applies right now.
Pass --global or --workspace to print a single layer's own file bytes verbatim,
preserving its comments and formatting; when that layer's file does not exist it
says so rather than failing. The two are mutually exclusive.
Pass --origin to annotate each effective setting with the layer it came from —
a command-line flag, an environment variable, a config file, or the built-in
defaults, highest precedence first. A flag is named as the reader typed it, so
a setting a flag decided reports that flag as its source. A setting is
attributed to the highest-precedence layer that sets it, whatever value that
layer writes: a file restating the default is the file named, not the built-in
defaults. List and map settings are attributed as a whole. The signing
requirement is the one exception: any layer may turn it on and none can turn it
off, so it names the first layer that turns it on.

แฟล็กของ aggrega config show

แฟล็กค่าเริ่มต้นคำอธิบาย
--globalfalseพิมพ์ไบต์ของไฟล์การกำหนดค่าส่วนกลางตามต้นฉบับ โดยคงความคิดเห็นและการจัดรูปแบบไว้
--originfalseระบุที่มาของการตั้งค่าที่มีผลแต่ละรายการว่ามาจากชั้นใด (แฟล็กบรรทัดคำสั่ง ตัวแปรสภาพแวดล้อม ไฟล์การกำหนดค่า หรือค่าเริ่มต้นในตัว)
--workspacefalseพิมพ์ไบต์ของไฟล์การกำหนดค่าพื้นที่ทำงานของโปรเจกต์นี้ตามต้นฉบับ โดยคงความคิดเห็นและการจัดรูปแบบไว้

สิ่งที่คำสั่งนี้ทำ

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

config init — เริ่มต้นการกำหนดค่าที่ใช้งานได้

aggrega config init เริ่มต้นการกำหนดค่าบนเครื่องใหม่ด้วยการลงทะเบียนรีจิสทรีและนโยบายความเชื่อถือลายเซ็นของรีจิสทรีนั้น เพื่อให้ pull และยืนยันอาร์ติแฟกต์ที่ลงนามแล้วได้โดยไม่ต้องแก้ YAML ด้วยมือ ตามค่าเริ่มต้นจะลงทะเบียน hub อย่างเป็นทางการ (hub.aggrega.ai) โดยกำหนดให้ต้องมีลายเซ็นและใช้ตัวตนที่เชื่อถือได้อย่างเป็นทางการของ hub นโยบายความเชื่อถือที่รีจิสทรีแจ้งไว้จะถูกดึงหนึ่งครั้งจากต้นทางของรีจิสทรีเองและปักหมุดไว้ภายในเครื่อง (trust-on-first-use) เมื่อ hub เข้าถึงไม่ได้ ไม่แจ้งสิ่งใด หรือพื้นที่ทำงานออฟไลน์ จะเขียนเกณฑ์พื้นฐานอย่างเป็นทางการที่มีมาในตัวแทน ดังนั้น init ยังสร้างการกำหนดค่าที่ใช้งานได้แม้ออฟไลน์

ก่อนทำอย่างอื่น init จะบอกว่าสิ่งต่างๆ อยู่ที่ใด การเริ่มต้นบนเครื่อง Linux ใหม่จะเปิดด้วย:

Created the global configuration file at /home/you/.config/aggrega/config.yaml
Machine-wide caches are kept in /home/you/.cache/aggrega

และบนเครื่อง Windows ใหม่ด้วย:

Created the global configuration file at C:\Users\you\AppData\Roaming\aggrega\config.yaml
Machine-wide caches are kept in C:\Users\you\AppData\Local\aggrega\cache

บรรทัดแรกระบุไฟล์การกำหนดค่าที่ init เขียน: Created เมื่อยังไม่มีไฟล์ และ Using เมื่อมีไฟล์อยู่แล้วและ --force ให้ init เขียนลงในไฟล์นั้นได้ เมื่อใช้ --workspace จะระบุไฟล์การกำหนดค่าพื้นที่ทำงานแทนไฟล์ส่วนกลาง บรรทัดที่สองระบุไดเรกทอรีที่เก็บแคชระดับเครื่อง — ปลั๊กอินที่คอมไพล์แล้วและคำอธิบายของปลั๊กอิน — ซึ่งเป็นที่ที่แต่ละแพลตฟอร์มเก็บแคชของผู้ใช้ แคชที่เป็นของโปรเจกต์นี้และแคชที่เป็นของเครื่อง ระบุกฎของแต่ละแพลตฟอร์ม แต่ละบรรทัดลงท้ายด้วยเส้นทางและไม่มีสิ่งใดต่อท้าย จึงคัดลอกเส้นทางไปใช้ได้ทันที บรรทัดที่ตามมาเป็นของการลงทะเบียนเอง ได้แก่สิ่งที่การดึงนโยบายความเชื่อถือพบ และไฟล์ที่รีจิสทรีถูกลงทะเบียนไว้ การเริ่มต้นที่ถูกปฏิเสธจะไม่พิมพ์บรรทัดทั้งสอง เพราะไม่ได้สร้างสิ่งใด และ --dry-run ก็ไม่พิมพ์เช่นกัน เพราะเอาต์พุตมาตรฐานของการทดลองรันมีเฉพาะเนื้อหาที่ส่งกลับ

  • --registry <host> เริ่มต้นรีจิสทรีอื่น — hub ที่แยกจากเครือข่ายหรือเป็นส่วนตัว — แทนรีจิสทรีอย่างเป็นทางการ รีจิสทรีเช่นนี้ไม่มีเกณฑ์พื้นฐานในตัว หากไม่แจ้งสิ่งใด รายการจะถูกเขียนโดยไม่มีนโยบาย และ ในพื้นที่ทำงานออฟไลน์ การเริ่มต้นรีจิสทรีนี้จะถูกปฏิเสธ (รหัสย่อ E0310) เพราะดึงนโยบายไม่ได้ และ init ไม่มี --identity หรือ --key ให้ปักหมุดนโยบายด้วยมือ เริ่มต้นรีจิสทรีนี้ครั้งเดียวขณะออนไลน์ หรือเพิ่มด้วย aggrega registry add พร้อมนโยบายที่คุณจัดเตรียมเอง
  • หากไฟล์เป้าหมายมีอยู่แล้ว init จะปฏิเสธแทนการเขียนทับ --force จะเขียนต่อไปแม้มีไฟล์ โดยผสานรายการรีจิสทรีเข้ากับไฟล์ที่มีอยู่และคงการตั้งค่าอื่นไว้
  • --dry-run ทำทุกอย่างที่ init ทำ ยกเว้นการเขียน โดยส่งการกำหนดค่าที่เริ่มต้นไว้กลับมาเป็นเนื้อหา ไม่สร้างและไม่แก้ไขสิ่งใด และคำตอบระบุไฟล์ที่เนื้อหานั้นมีไว้สำหรับ — ซึ่งสำคัญในกรณีนี้ เพราะเป้าหมายคือการกำหนดค่าส่วนกลาง เว้นแต่ --workspace เลือกการกำหนดค่าของโปรเจกต์นี้เอง ผู้เรียกที่เก็บโมเดลเอกสารของตัวเอง เช่น ตัวแก้ไข จะนำเนื้อหาไปไว้ในนั้น ซึ่งมองเห็นได้ก่อนบันทึก และแก้ไขหรือเลิกทำได้
  • เนื่องจากการทดลองรันทำทุกอย่างอื่นที่ init ทำ รหัสการออกของการทดลองรันจึงทำนายรหัสของการเขียนได้ การทดลองรันปฏิเสธไฟล์การกำหนดค่าที่มีอยู่เหมือนที่การเขียนปฏิเสธ และด้วยเหตุผลเดียวกัน คุณจึงใช้ถามได้ว่า init จะสำเร็จหรือไม่ก่อนลงมือเปลี่ยนจริง หากต้องการดูเอกสารที่การเขียนแบบเขียนทับจะสร้างขึ้น ใส่ --force ร่วมด้วย: --force --dry-run รายงานผลการผสานและยังไม่เขียนสิ่งใด
  • รีจิสทรียังถูกติดต่อเพื่อขอนโยบายความเชื่อถือที่รีจิสทรีแจ้งไว้ เพราะนโยบายในเนื้อหาที่รายงานคือนโยบายที่การเขียนจะปักหมุด การทดลองรันส่งคำขอเดียวที่ไม่ยืนยันตัวตนไปยังต้นทางของรีจิสทรีนั้นเหมือนที่การเขียนส่ง
  • เมื่อใช้ --dry-run เอาต์พุตมาตรฐานมีเนื้อหานั้นและไม่มีสิ่งอื่น จึงแยกวิเคราะห์ได้ สิ่งเดียวที่เนื้อหาแสดงไม่ได้คือความไม่มี เมื่อรีจิสทรีไม่แจ้งนโยบายความเชื่อถือและถูกเริ่มต้นโดยไม่มีนโยบาย ข้อความแจ้งที่บอกเรื่องนี้ — และบอกให้คุณปักหมุดตัวตนด้วย --identity หรือ --key — จะไปที่ข้อผิดพลาดมาตรฐาน เอกสารการกำหนดค่าที่ไม่มีตัวตนที่เชื่อถือได้ดูเหมือนกัน ไม่ว่าจะปักหมุดนโยบายที่บังเอิญว่างเปล่า หรือไม่มีการแจ้งนโยบายเลย ดังนั้นต้องอ่านทั้งสองสตรีม โปรแกรมที่ทิ้งข้อผิดพลาดมาตรฐานจะไม่ได้รับรู้เรื่องนี้ เมื่อรีจิสทรีแจ้งนโยบาย หรือปักหมุดเกณฑ์พื้นฐานในตัวของ hub อย่างเป็นทางการแทน นโยบายที่ปักหมุดอยู่ในเนื้อหาที่รายงานเอง และไม่มีข้อความแจ้งแยกต่างหาก

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

config show — ตรวจดูสิ่งที่ใช้อยู่ในตอนนี้

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

มุมมองเฉพาะสองแบบจำกัดเอาต์พุตให้แคบลง:

  • --global หรือ --workspace พิมพ์ไบต์ของไฟล์ในชั้นเดียวตามต้นฉบับ โดยคงความคิดเห็นและการจัดรูปแบบไว้ เมื่อไม่มีไฟล์ของชั้นนั้นจะแจ้งเรื่องนี้แทนที่จะล้มเหลว ทั้งสองใช้ร่วมกันไม่ได้
  • --origin ระบุที่มาของการตั้งค่าที่มีผลแต่ละรายการว่ามาจากชั้นใด — แฟล็กบรรทัดคำสั่ง ตัวแปรสภาพแวดล้อม ไฟล์การกำหนดค่า หรือค่าเริ่มต้นในตัว เรียงจากลำดับความสำคัญสูงสุดก่อน แฟล็กจะถูกระบุตามที่คุณพิมพ์ ดังนั้นการตั้งค่าที่ --offline ตัดสินในการรันนี้จะรายงาน --offline เป็นที่มา ตัวแปรสภาพแวดล้อมจะระบุโดยมีคำนำหน้า env: และไฟล์การกำหนดค่าจะระบุด้วยเส้นทางสัมบูรณ์

เมื่อใช้ --origin การตั้งค่าจะถูกระบุที่มาเป็นชั้นที่มีลำดับความสำคัญสูงสุดที่กำหนดค่านั้น ไม่ว่าชั้นนั้นจะเขียนค่าใด ดังนั้นไฟล์โปรเจกต์ที่เขียน default_registry: hub.aggrega.ai จะถูกระบุชื่อสำหรับการตั้งค่านั้น แม้ค่าเริ่มต้นในตัวจะเป็นรีจิสทรีเดียวกัน และไฟล์โปรเจกต์ที่เขียนซ้ำค่าที่ไฟล์ส่วนกลางตั้งไว้แล้วจะถูกระบุชื่อแทนไฟล์ส่วนกลาง ทั้งสองกรณีคือไฟล์ที่ถือค่านั้นอยู่จริง และเป็นไฟล์ที่การลบออกจะเปลี่ยนคำตอบในวันที่ค่าเริ่มต้นหรือไฟล์ที่อยู่ใต้ไฟล์นั้นเปลี่ยนไป การตั้งค่าที่ไม่มีชั้นใดตั้งจะรายงานค่าเริ่มต้นในตัว

  • อะไรนับว่าตั้งค่า ไฟล์การกำหนดค่าตั้งค่าได้เมื่อมีคีย์ของการตั้งค่านั้น และการตั้งค่าแบบรายการยังตั้งได้เมื่อมีคีย์คู่ _append ของรายการนั้นด้วย ตัวแปรสภาพแวดล้อมตั้งค่าเมื่อถูกกำหนดไว้ด้วยค่าที่ไม่ว่าง และแฟล็กตั้งค่าเมื่อคุณพิมพ์ — --offline=false ตั้งท่าทีได้แน่นอนเท่ากับ --offline
  • ไฟล์การกำหนดค่าที่ไปป์ไลน์ของคุณเป็นเจ้าของ จะถูกระบุชื่อเฉพาะสำหรับคีย์ที่อ่านจากไฟล์นั้น ได้แก่ส่วนที่เพิ่มของรายการและนโยบายการลงลายเซ็น คีย์ที่ไฟล์เพิกเฉยและเตือนไว้จะไม่ถูกรายงานเป็นที่มาของค่าเลย
  • การตั้งค่าแบบรายการและแบบแมปจะระบุที่มาทั้งหมดเป็นหน่วยเดียว คือชั้นที่มีลำดับความสำคัญสูงสุดที่ตั้งค่านั้น และไม่รายงานว่าชั้นใดมีส่วนกับรายการใดของรายการนั้น
  • ข้อกำหนดการลงนามเป็นข้อยกเว้นเดียว ชั้นใดก็เปิดได้ แต่ไม่มีชั้นใดปิดได้ จึงระบุชั้นแรกที่เปิด ชั้นที่เขียน required: false ไม่ได้เปิดสิ่งใด ดังนั้นเมื่อไม่มีชั้นใดเปิด การตั้งค่านี้จะรายงานค่าเริ่มต้นในตัว

config capture — ตรึงการตั้งค่าที่สำคัญต่อการบิลด์

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

ส่วนย่อยที่ถูกตรึงคือชุดของการแนบซ็อกเก็ตปลั๊กอินและไดเรกทอรีแค็ตตาล็อก:

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

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

การตรึงเขียนเฉพาะในพื้นที่ทำงาน เมื่อรันในโฟลเดอร์ที่ไม่อยู่ในพื้นที่ทำงาน และไม่มี --workspace-root หรือ AGGREGA_WORKSPACE_ROOT ระบุพื้นที่ทำงาน จะไม่เขียนสิ่งใด — ไฟล์การกำหนดค่าที่เขียนที่นั่นจะทำให้โฟลเดอร์กลายเป็นพื้นที่ทำงาน — และออกด้วยข้อผิดพลาดที่บอกเรื่องนี้ aggrega config init --workspace ทำให้โฟลเดอร์เป็นพื้นที่ทำงานก่อน

ดูเพิ่มเติม

  • configuration.md — ไฟล์ที่การตั้งค่าหนึ่งควรอยู่ บันไดลำดับความสำคัญ และกลไกที่โปรเจกต์ขนาดใหญ่ใช้
  • global-flags.md — แฟล็ก --config และ --workspace-root
  • environment-variables.md — ตัวแปร AGGREGA_* ที่แทนที่การกำหนดค่าขณะรัน
  • aggrega-registry.md — จัดการรีจิสทรีและนโยบายความเชื่อถือโดยตรง
  • aggrega-cache.md — สิ่งที่ไดเรกทอรีซึ่ง artifact_cache_dir ระบุเก็บไว้จริง และเหตุที่เอนทิตีซึ่งอยู่ที่นั่นแต่ไม่มีไฟล์ล็อกใดปักหมุดจะไม่ถูกการบิลด์พบ