मुख्य सामग्री पर जाएँ
Skillpedia
डिप्लॉय और क्लाउड (DevOps)5.4k · #14968

azldev-update-component

यह क्या करती है

यह स्किल बताती है कि azldev में घटक की lock फ़ाइलें कब और कैसे अपडेट करें। यह उन डेवलपर्स के लिए है जो पैकेज में बदलाव पूरे कर रहे हैं या azldev डिस्ट्रीब्यूशन में नया पैकेज जोड़ रहे हैं।

कब इस्तेमाल करें

  • ✓जब आप नया घटक जोड़ते हैं और बिल्ड से पहले उसकी lock बनानी है।
  • ✓जब आप किसी पैकेज का बदलाव पूरा करते हैं और pull request के लिए lock ताज़ा करनी है।
  • ✓जब आप पैकेज किस upstream commit या वर्ज़न से बने, यह बदलते हैं।

Skill का लिंक

https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-update-component/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-update-component/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मैंने curl पैकेज के overlay बदलाव पूरे कर लिए हैं। क्या आप उसकी lock फ़ाइल ताज़ा करके spec दोबारा render कर सकते हैं?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट घटक के लिए update कमांड चलाता है, lock को commit करता है, फिर वर्कफ़्लो के अनुसार दोबारा render और amend करता है। रोज़ के काम में वह एक घटक की ताज़गी वाला तरीका इस्तेमाल करता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Update component lock files

azldev comp update (comp is an alias for component) refreshes one or more component lock files under locks/. A lock pins the resolved upstream commit plus an input fingerprint computed from the component's render inputs — its TOML config, overlays, the pinned upstream commit, and the distro release version. If any of those change, the lock is stale.

When to run update

Situation Run update?
Adding a new upstream component (no lock yet) Yes — first, to create the lock before render/build can resolve it
Finalizing a component change for a PR Yes — once at the end
Changing source resolution (commit pin, upstream distro/version, or snapshot) Yes — also mid-workflow (see below)
Iterating on overlays / build config / metadata No — once the lock exists, render alone is enough while iterating
Just reading or building existing components No

Refresh a single component with -p <name>. Use -a (all components) only for coordinated mass refreshes (e.g. a new distro snapshot) or when investigating lock drift across many components — it is slow. For day-to-day work use -p. Add -O json for machine-readable lock output when debugging.

End-of-work refresh (the common case)

For most edits — overlays, build flags, metadata — run update once at the end, then re-render after committing so the generated changelog and release reflect your new commit:

azldev comp update -p <name>
azldev comp render -p <name>
git add <changed-component-config-and-source-paths> \
	locks/<name>.lock \
	specs/<first-char>/<name>/
git commit -m "fix(<name>): ..."

# Re-render and amend so the changelog / Release: track the new commit.
azldev comp render -p <name>
git add specs/<first-char>/<name>/
git commit --amend --no-edit

Why the second render-and-amend?

Changelog generation and release calculation are separate. When a spec uses %autochangelog, rpmautospec derives it from the component's git history for every release mode. For non-manual release modes, azldev also derives or bumps Release: from that history. The first render happens before your commit exists, so a fresh render after committing incorporates the new changelog entry and any automatic release bump. Amending folds that output into a single clean commit and keeps rendered-spec / lock CI gates (which run against committed state) green.

For a component with release.calculation = "manual", increment the release counter yourself in the same change. Manual mode is not an exemption from the post-commit render-stage-amend cycle: when the spec uses %autochangelog, that render incorporates the new commit.

Changing source resolution

A source-resolution change follows the same rule, using one commit followed by a post-render amend:

  1. Change the commit pin, upstream distro/version, or snapshot, then azldev comp update -p <name>; sanity-check locks/<name>.lock.

  2. azldev comp render -p <name> — the spec body now tracks the newly resolved source. %changelog / Release: still reflect the previous source; that is expected until you commit.

  3. Iterate on overlays / patches / build config as the new source requires, re-rendering after each change. Re-run update only if you change a source-resolution input again.

  4. azldev comp update -p <name>, then stage and commit all component inputs changed above with the refreshed lock and rendered output:

    git add <changed-component-config-and-source-paths> \
        locks/<name>.lock \
        specs/<first-char>/<name>/
    git commit -m "update(<name>): ..."
    
  5. azldev comp render -p <name> — %changelog / Release: now reflect the new lock.

  6. git add specs/<first-char>/<name>/, then git commit --amend --no-edit so the source change and rendered output land together.

Generated by azldev docs agent; do not hand-edit.

अक्सर पूछे जाने वाले सवाल

lock फ़ाइल क्या है?

यह upstream commit और इनपुट के फ़िंगरप्रिंट को पिन करती है, ताकि बिल्ड दोहराए जा सकें।

lock अपडेट कब ज़रूरी नहीं?

स्किल कहती है कि overlays या बिल्ड flags पर काम करते समय lock बनने के बाद केवल render काफ़ी है।

क्या सभी घटक ताज़ा करने चाहिए?

आम तौर पर नहीं। स्किल कहती है कि पूरी ताज़गी धीमी है और समन्वित बड़े अपडेट के लिए है।

जानकारी

लेखक का मूल विवरण

Read this before finalizing a component change, changing source resolution, or touching a lock file; lock edits are easy to get wrong. Explains how to refresh azldev component lock files with 'azldev comp update', covering when to run update versus render, the update/render/commit/re-render/amend workflow, and per-component versus -a refresh. Triggers include comp update, refresh lock, bump pin, change snapshot, upstream distro, lock drift, version bump, finalize component.

repo: microsoft/azurelinux

लोकप्रियता

GitHub स्टार
5.4k
रैंकिंग में स्थान
#14968
लाइसेंस
MIT
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

azldev-add-component

5.4k

यह आपके एजेंट को azldev Linux डिस्ट्रीब्यूशन बिल्ड में नया सॉफ़्टवेयर घटक जोड़ने में मदद करती है, upstream spec देखने से लेकर नतीजे की जाँच तक।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

azldev-build-component

5.4k

यह आपके एजेंट को azldev पैकेज बनाने और उसकी बिल्ड गड़बड़ियाँ ठीक करने में मदद करती है, जिसमें render, build और test का चक्र शामिल है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

azldev-comp-toml

5.4k

यह आपके एजेंट को azldev घटक फ़ाइलें लिखने, बदलने और समीक्षा करने में मदद करती है, जो बताती हैं कि हर पैकेज कैसे बनता है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

azldev-image

5.4k

यह आपके एजेंट को azldev image कमांड से Linux image, जैसे container या virtual machine image, बनाने, boot करने और परखने में मदद करती है।

कोडिंगडिप्लॉय और क्लाउड (DevOps)

मिलती-जुलती skills