azldev-update-component
Fungsinya
Skill ini menjelaskan kapan dan bagaimana memperbarui file lock komponen di azldev. Skill ini untuk pengembang yang menyelesaikan perubahan pada paket atau menambahkan paket baru ke distribusi azldev.
Kapan dipakai
- โSaat Anda menambahkan komponen baru dan lock-nya perlu dibuat sebelum build.
- โSaat Anda menyelesaikan perubahan pada paket dan lock perlu disegarkan untuk pull request.
- โSaat Anda mengubah commit atau versi hulu yang dipakai paket.
Link skill
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-update-component/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โSaya sudah menyelesaikan perubahan overlay untuk paket curl. Bisakah Anda menyegarkan file lock-nya dan merender ulang spec-nya?โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent menjalankan perintah pembaruan untuk komponen, melakukan commit pada lock, lalu merender ulang dan menyesuaikan sesuai alur kerja yang dijelaskan. Untuk pekerjaan harian, agent memakai penyegaran satu komponen.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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:
Change the commit pin, upstream distro/version, or snapshot, then
azldev comp update -p <name>; sanity-checklocks/<name>.lock.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.Iterate on overlays / patches / build config as the new source requires, re-rendering after each change. Re-run
updateonly if you change a source-resolution input again.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>): ..."azldev comp render -p <name>โ%changelog/Release:now reflect the new lock.git add specs/<first-char>/<name>/, thengit commit --amend --no-editso the source change and rendered output land together.
Generated by azldev docs agent; do not hand-edit.
Pertanyaan umum
Apa itu file lock?
Itu mengunci commit hulu dan sidik jari dari input, sehingga build tetap bisa diulang.
Kapan pembaruan lock tidak diperlukan?
Menurut skill ini, saat mengulangi perubahan overlay atau flag build, render saja sudah cukup setelah lock ada.
Apakah semua komponen perlu disegarkan?
Biasanya tidak. Menurut skill ini, penyegaran penuh lambat dan ditujukan untuk pembaruan massal yang terkoordinasi.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 5.4k
- Peringkat
- #14968
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- โฆ
Skill lain dari repositori ini
azldev-add-component
5.4kMembantu agent Anda menambahkan komponen perangkat lunak baru ke build distribusi Linux azldev, mulai dari memeriksa spec hulu hingga memvalidasi hasilnya.
azldev-build-component
5.4kMembantu agent Anda membangun dan men-debug paket azldev, termasuk siklus render, build, dan tes, serta perbaikan untuk pemeriksaan build yang gagal.
azldev-comp-toml
5.4kMembantu agent Anda menulis, mengedit, dan meninjau file definisi komponen yang dipakai azldev untuk menjelaskan cara setiap paket dibangun.
azldev-image
5.4kMembantu agent Anda membangun, menjalankan, dan menguji image Linux, seperti image container atau mesin virtual, dengan perintah image azldev.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.