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 catalogdirectories, its provider bindings, which lint rules it relaxes. It iscommitted, 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 thedirectory the APPDATA environment variable names. It holds what belongs to themachine rather than to any one project: the registries you pull from and thesignature trust policy for each, how large the compiled-module store may grow,any command extension you have installed. It loads automatically when it isthere, and nothing breaks when it is not.
Your project's file wins over the global one, an environment variable winsover both, and a flag wins over everything.
Secrets are not configuration. A registry password or a signing identity tokenis never a field in either file; it is supplied by environment variable or flagat 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 howyou find out which layer each setting came from. "aggrega config init" seeds aworking configuration, and "aggrega config capture" freezes the effectivebuild-critical settings into this workspace so a build does not depend on aglobal file that is not committed.
Larger projects have more to work with. None of it is needed to start, and eachpiece 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 workspaceconfig file, so the workspace builds identically without relying on themachine's global configuration.
The build-critical subset is the configuration a build participates in: a set ofplugin socket attachments and the catalog directories. By default the capturedsockets are only those that determine therendered output — the provider bindings and the transform-role governance attachments — since only those musttravel with the project for byte-identical output. Pass --all-plugins to alsofreeze the verdict-role governance, linter, and importer sockets, which otherwise stay free tovary by environment. Each field is written at its effective value — the valuethat resolves right now with the global configuration and the workspace treemerged together — so a binding that today comes only from the global config ismaterialized into the workspace and travels with the project.
Machine-wide tooling settings, such as a registry's trust policy, are notcaptured: they stay in the global config by their nature. Capture always writesthis project's workspace config file. Running it again on an unchangedconfiguration rewrites the same file byte-for-byte. Run in a folder that is notinside a workspace, with no --workspace-root naming one, it writes nothing andexits with an error saying so.aggrega config capture के फ़्लैग
| फ़्लैग | डिफ़ॉल्ट | विवरण |
|---|---|---|
--all-plugins | false | सभी प्लगइन सॉकेट कैप्चर करें, जिनमें वर्डिक्ट-भूमिका वाले गवर्नेंस, लिंटर और इम्पोर्टर गेट शामिल हैं। इसके बिना, capture केवल उन सॉकेट को स्थिर करता है जो रेंडर किए गए आउटपुट को तय करते हैं (प्रोवाइडर बाइंडिंग और ट्रांसफ़ॉर्म-भूमिका वाले गवर्नेंस अटैचमेंट)। |
aggrega config init का विवरण
Seed a working configuration by registering a registry and its signature trustpolicy, so a fresh machine can pull and verify signed artifacts without editingYAML by hand.
By default it registers the official hub (hub.aggrega.ai) with signaturesrequired and the official trusted identities. The registry's advertised trustpolicy is fetched once from its own origin and pinned locally — trust-on-first-use; when the hub is unreachable, advertises nothing, or the workspace isoffline, its built-in official baseline is written instead, so init stillproduces 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 noidentities or key to pin by hand, so register it once while online, or add itwith "aggrega registry add --identity" or "--key".
The entry is written to the global config shared across every workspace bydefault; pass --workspace to write it to this project's workspace configinstead. If the target config file already exists, init refuses rather thanoverwrite it — pass --force to write anyway (the registry entry is merged intothe existing file, other settings preserved).
Before anything else, init says where things are: the configuration file itcreated — or, under --force, the one already there that it wrote into — andthe directory the machine-wide caches are kept in. On Windows that directory isaggrega\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 doeseverything init does except write: it hands the content back, creating andmodifying nothing. The answer names the file the content is for — which mattershere, because the target is the global config unless --workspace selects thisproject'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 registryis still contacted for its advertised trust policy, because the policy in thatcontent is the policy a write would have pinned.
Because a dry run does everything else init does, it refuses an existing configfile exactly as a write refuses it, and for the same reason. So its exit codepredicts 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 staysparseable. A registry seeded with no trust policy, because it advertises none,still produces its notice, on standard error: read that stream too, or thatconfiguration arrives without the advice to pin identities by hand. A pinnedpolicy, whether advertised or the hub's built-in baseline, is in the contentitself and produces no notice.aggrega config init के फ़्लैग
| फ़्लैग | डिफ़ॉल्ट | विवरण |
|---|---|---|
--dry-run | false | लिखने के अलावा सब कुछ करें: सीड किया गया कॉन्फ़िगरेशन सामग्री के रूप में वापस सौंपें, उस फ़ाइल का नाम देते हुए जिसके लिए वह है, और कुछ भी न बनाएं न बदलें। बाकी हर व्यवहार लिखने वाला ही है, इसलिए मौजूदा कॉन्फ़िग फ़ाइल ठीक वैसे ही अस्वीकार की जाती है जैसे लिखना उसे अस्वीकार करता है — अधिलेखित करने वाला लेखन जो मर्ज बनाता, उसके लिए इसके साथ —force पास करें। |
--force | false | मौजूदा कॉन्फ़िग फ़ाइल को अधिलेखित करें। इसके बिना, लक्ष्य फ़ाइल पहले से मौजूद होने पर init अस्वीकार कर देता है। |
--global | false | प्रविष्टि को हर वर्कस्पेस में साझा ग्लोबल कॉन्फ़िग में लिखें। यही डिफ़ॉल्ट है। |
--registry | hub.aggrega.ai | उसकी ट्रस्ट पॉलिसी के साथ सीड किया जाने वाला रजिस्ट्री होस्ट। डिफ़ॉल्ट रूप से आधिकारिक हब। |
--workspace | false | प्रविष्टि को ग्लोबल कॉन्फ़िग के बजाय इस प्रोजेक्ट के वर्कस्पेस कॉन्फ़िग में लिखें। |
aggrega config show का विवरण
Show the configuration that applies right now.
By default it leads with the cascade of config files and environment overridesthat contributed, lowest precedence first, then prints the effective mergedconfiguration — the global config, the workspace-tree cascade, and anyenvironment 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 itsays 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-indefaults, highest precedence first. A flag is named as the reader typed it, soa setting a flag decided reports that flag as its source. A setting isattributed to the highest-precedence layer that sets it, whatever value thatlayer writes: a file restating the default is the file named, not the built-indefaults. List and map settings are attributed as a whole. The signingrequirement is the one exception: any layer may turn it on and none can turn itoff, so it names the first layer that turns it on.aggrega config show के फ़्लैग
| फ़्लैग | डिफ़ॉल्ट | विवरण |
|---|---|---|
--global | false | ग्लोबल कॉन्फ़िग फ़ाइल की अपनी बाइट्स ज्यों-की-त्यों प्रिंट करें, उसकी टिप्पणियाँ और फ़ॉर्मेटिंग बनाए रखते हुए। |
--origin | false | हर प्रभावी सेटिंग के साथ वह परत अंकित करें जिससे वह आई (कमांड-लाइन फ़्लैग, एनवायरनमेंट वेरिएबल, कॉन्फ़िग फ़ाइल, या अंतर्निहित डिफ़ॉल्ट)। |
--workspace | false | इस प्रोजेक्ट की वर्कस्पेस कॉन्फ़िग फ़ाइल की अपनी बाइट्स ज्यों-की-त्यों प्रिंट करें, उसकी टिप्पणियाँ और फ़ॉर्मेटिंग बनाए रखते हुए। |
यह क्या करता है
config सबकमांड बिल्ड को नियंत्रित करने वाले कॉन्फ़िगरेशन को सीड करती हैं, उसकी जाँच करती हैं, और उसे स्थिर करती हैं। कोई सेटिंग किस फ़ाइल में होनी चाहिए और परतें कैसे मिलती हैं, इसके लिए कॉन्फ़िगरेशन देखें — यह उन दो फ़ाइलों से शुरू होता है जिनकी अधिकांश प्रोजेक्ट को ज़रूरत होती है और बाकी को उनके पीछे रखता है।
config init — एक काम करने वाला कॉन्फ़िगरेशन सीड करें
aggrega config init एक नई मशीन पर एक रजिस्ट्री और उसकी हस्ताक्षर ट्रस्ट पॉलिसी पंजीकृत करके कॉन्फ़िग सीड करता है, ताकि हस्ताक्षरित आर्टिफ़ैक्ट YAML को हाथ से संपादित किए बिना पुल और सत्यापित हों। डिफ़ॉल्ट रूप से यह आधिकारिक हब (hub.aggrega.ai) को अनिवार्य हस्ताक्षरों और उसकी आधिकारिक विश्वसनीय आइडेंटिटी के साथ पंजीकृत करता है। रजिस्ट्री की घोषित ट्रस्ट पॉलिसी उसके अपने ओरिजिन से एक बार फ़ेच की जाती है और लोकल रूप से पिन की जाती है (trust-on-first-use); जब हब पहुँच से बाहर हो, कुछ भी घोषित न करता हो, या वर्कस्पेस ऑफ़लाइन हो, तो इसके बजाय उसकी अंतर्निहित आधिकारिक आधार-रेखा लिखी जाती है, ताकि init ऑफ़लाइन भी उपयोग योग्य कॉन्फ़िग बनाए।
सबसे पहले, init बताता है कि चीज़ें कहाँ हैं। एक नई Linux मशीन को सीड करना इससे शुरू होता है:
Created the global configuration file at /home/you/.config/aggrega/config.yamlMachine-wide caches are kept in /home/you/.cache/aggregaऔर एक नई Windows मशीन को इससे:
Created the global configuration file at C:\Users\you\AppData\Roaming\aggrega\config.yamlMachine-wide caches are kept in C:\Users\you\AppData\Local\aggrega\cacheपहली पंक्ति उस कॉन्फ़िगरेशन फ़ाइल का नाम देती है जिसे init ने लिखा: Created जब फ़ाइल मौजूद नहीं थी, और Using जब वह मौजूद थी और --force ने init को उसमें लिखने दिया; --workspace के साथ यह ग्लोबल फ़ाइल के बजाय वर्कस्पेस कॉन्फ़िगरेशन फ़ाइल का नाम देती है। दूसरी पंक्ति उस डायरेक्टरी का नाम देती है जिसमें मशीन-व्यापी कैश — कंपाइल किए गए प्लगइन और उनके विवरण — रखे जाते हैं, जो वह जगह है जहाँ हर प्लेटफ़ॉर्म किसी उपयोगकर्ता के कैश रखता है; कौन-से कैश इस प्रोजेक्ट के हैं, और कौन-से मशीन के प्रति प्लेटफ़ॉर्म नियम बताता है। हर पंक्ति अपने पाथ पर समाप्त होती है और उसके बाद कुछ नहीं होता, ताकि पाथ को जैसा है वैसा ही कॉपी किया जा सके। इसके बाद की पंक्तियाँ पंजीकरण की अपनी हैं: ट्रस्ट-पॉलिसी फ़ेच को क्या मिला, और रजिस्ट्री किस फ़ाइल में पंजीकृत हुई। जो सीडिंग अस्वीकार कर दी जाती है वह दोनों में से कोई पंक्ति प्रिंट नहीं करती, क्योंकि उसने कुछ नहीं बनाया, और न ही --dry-run करता है, जिसके स्टैंडर्ड आउटपुट में केवल वह सामग्री होती है जिसे वह वापस सौंपता है।
--registry <host>आधिकारिक रजिस्ट्री के बजाय एक अलग रजिस्ट्री सीड करता है — एक एयर-गैप्ड या निजी हब। ऐसी रजिस्ट्री कोई अंतर्निहित आधार-रेखा वहन नहीं करती, इसलिए जहाँ वह कुछ भी घोषित नहीं करती वहाँ प्रविष्टि बिना पॉलिसी के लिखी जाती है, और ऑफ़लाइन वर्कस्पेस में उसे सीड करना अस्वीकार कर दिया जाता है (शॉर्ट कोडE0310): पॉलिसी फ़ेच नहीं की जा सकती, औरinitहाथ से पॉलिसी पिन करने के लिए कोई--identityया--keyनहीं लेता। उसे ऑनलाइन रहते हुए एक बार सीड करें, याaggrega registry addऔर आपके द्वारा दी गई पॉलिसी के साथ उसे जोड़ें।- यदि लक्ष्य फ़ाइल पहले से मौजूद है, तो
initउसे अधिलेखित करने के बजाय अस्वीकार कर देता है;--forceफिर भी लिखता है, रजिस्ट्री प्रविष्टि को मौजूदा फ़ाइल में मर्ज करते हुए और अन्य सेटिंग्स बनाए रखते हुए। --dry-runलिखने के अलावा वह सब करता है जोinitकरता है। यह सीड किया गया कॉन्फ़िगरेशन सामग्री के रूप में वापस सौंपता है, कुछ भी न बनाते हुए और न बदलते हुए, और उत्तर उस फ़ाइल का नाम देता है जिसके लिए सामग्री है — जो यहाँ मायने रखता है, क्योंकि लक्ष्य ग्लोबल कॉन्फ़िग है जब तक कि--workspaceइस प्रोजेक्ट का अपना कॉन्फ़िग न चुने। जो कॉलर अपना दस्तावेज़ मॉडल रखता है, जैसे कोई एडिटर, वह सामग्री वहाँ रखता है, जहाँ वह सहेजे जाने से पहले दिखाई देती है और संशोधित या पूर्ववत की जा सकती है।- क्योंकि ड्राई रन
initद्वारा की जाने वाली बाकी हर चीज़ करता है, उसका एग्ज़िट कोड लेखन के एग्ज़िट कोड का पूर्वानुमान देता है। यह मौजूदा कॉन्फ़िग फ़ाइल को ठीक वैसे ही, और उसी कारण से, अस्वीकार करता है जैसे लेखन करता है, इसलिए बदलाव के लिए प्रतिबद्ध होने से पहले आप इसका उपयोग यह पूछने के लिए कर सकते हैं किinitसफल होगा या नहीं। अधिलेखित करने वाला लेखन जो दस्तावेज़ बनाता, उसे देखने के लिए इसके साथ--forceपास करें:--force --dry-runमर्ज रिपोर्ट करता है और फिर भी कुछ नहीं लिखता। - रजिस्ट्री से उसकी घोषित ट्रस्ट पॉलिसी के लिए फिर भी संपर्क किया जाता है, क्योंकि रिपोर्ट की गई सामग्री की पॉलिसी वही पॉलिसी है जिसे लेखन पिन करता। ड्राई रन उस रजिस्ट्री के अपने ओरिजिन को वही एक बिना-प्रमाणीकरण वाला अनुरोध भेजता है जो लेखन भेजता है।
--dry-runके साथ, स्टैंडर्ड आउटपुट वह सामग्री वहन करता है और कुछ नहीं, ताकि वह पार्स करने योग्य रहे। एक चीज़ जिसे सामग्री व्यक्त नहीं कर सकती, वह है अनुपस्थिति: जब कोई रजिस्ट्री कोई ट्रस्ट पॉलिसी घोषित नहीं करती और बिना पॉलिसी के सीड की जाती है, तो यह बताने वाली सूचना — और आपसे--identityया--keyसे आइडेंटिटी पिन करने को कहने वाली — स्टैंडर्ड एरर पर जाती है। बिना विश्वसनीय आइडेंटिटी वाला कॉन्फ़िगरेशन दस्तावेज़ एक जैसा दिखता है, चाहे कोई पॉलिसी पिन हुई हो और संयोग से खाली रही हो या कोई पॉलिसी घोषित ही न हुई हो, इसलिए दोनों स्ट्रीम पढ़ें; जो प्रोग्राम स्टैंडर्ड एरर को हटा देता है, उसे इसके बारे में कुछ नहीं बताया जाता। जब रजिस्ट्री कोई पॉलिसी घोषित करती है, या उसकी जगह आधिकारिक हब की अंतर्निहित आधार-रेखा पिन होती है, तो पिन की गई पॉलिसी रिपोर्ट की गई सामग्री में ही होती है और कोई अलग सूचना नहीं बनती।
सीड किया गया कॉन्फ़िगरेशन ऐसा दस्तावेज़ है जिसके आप मालिक हैं और जिसे आप आगे भी संपादित करते रहते हैं, इसीलिए उसे लिखने के बजाय वापस सौंपा जा सकता है। प्रभावी कॉन्फ़िगरेशन को स्थिर करना, जो नीचे है, इस बात का रिकॉर्ड बनाता है कि कॉन्फ़िगरेशन किस चीज़ तक रिज़ॉल्व हुआ — वह अवस्था जिसे कंपाइलर अपने बारे में रखता है, न कि ऐसी सामग्री जिसे कोई रचता है — इसलिए वह हमेशा लिखता है और कोई --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कैप्चर किए जाने वाले सॉकेट का दायरा बढ़ाकर उनमें वर्डिक्ट-भूमिका वाले गवर्नेंस, लिंटर और इम्पोर्टर सॉकेट भी शामिल कर देता है। इसके बिना वे तीनों एनवायरनमेंट के अनुसार बदलने के लिए स्वतंत्र रहते हैं।
कैप्चर हमेशा लिखता है, और इसके बजाय सामग्री वापस सौंपे जाने का कोई तरीका नहीं देता। यह जो बनाता है वह इस बात का रिकॉर्ड है कि कॉन्फ़िगरेशन किस परिणाम पर पहुँचा, न कि कोई दस्तावेज़ जिसे कोई रचता है, इसलिए किसी लेखक के लिए समीक्षा और संशोधन करने को कुछ नहीं है — उसे रिपोर्ट करना एक रिज़ॉल्यूशन के स्नैपशॉट को संपादित करने का न्योता देना होगा।
कैप्चर केवल किसी वर्कस्पेस में लिखता है। ऐसे फ़ोल्डर में चलाने पर जो किसी वर्कस्पेस के भीतर नहीं है, और जब कोई --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जिस डायरेक्टरी का नाम देता है उसमें वास्तव में क्या रहता है, और वहाँ पड़ी कोई एंटिटी जिसे कोई लॉकफ़ाइल पिन नहीं करती, किसी बिल्ड को क्यों नहीं मिलती।