azldev-update-component
Was er macht
Dieser Skill erklärt, wann und wie man Komponenten-Lock-Dateien in azldev aktualisiert. Er ist für Entwickler gedacht, die eine Änderung an einem Paket abschließen oder ein neues Paket in eine azldev-Distribution aufnehmen.
Wann du ihn nutzt
- ✓Wenn du eine neue Komponente hinzufügst und ihr Lock vor dem Bauen erstellt werden muss.
- ✓Wenn du eine Änderung an einem Paket abschließt und das Lock für einen Pull-Request aktualisiert werden muss.
- ✓Wenn du ändern willst, welchen Upstream-Commit oder welche Version ein Paket nutzt.
Link zum Skill
https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-update-component/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Ich habe meine Overlay-Änderungen für das curl-Paket fertig. Kannst du seine Lock-Datei aktualisieren und die Spezifikation neu rendern?”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent führt den Aktualisierungsbefehl für die Komponente aus, committet das Lock und rendert dann neu, wie der Workflow es beschreibt. Für die tägliche Arbeit nutzt er die Aktualisierung einer einzelnen Komponente.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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.
Häufige Fragen
Was ist eine Lock-Datei?
Sie fixiert den Upstream-Commit und einen Fingerabdruck der Eingaben, damit Builds reproduzierbar bleiben.
Wann ist kein Lock-Update nötig?
Der Skill sagt, während man Overlays oder Build-Flags iteriert, reicht das Rendern, sobald das Lock existiert.
Sollte man alle Komponenten aktualisieren?
Meist nicht. Der Skill sagt, die vollständige Aktualisierung ist langsam und für koordinierte Massenaktualisierungen gedacht.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 5.4k
- Platz im Ranking
- #14968
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
azldev-add-component
5.4kHilft deinem Agenten, eine neue Softwarekomponente zu einem azldev-Linux-Distributionsbuild hinzuzufügen, vom Prüfen der Upstream-Spezifikation bis zur Validierung.
azldev-build-component
5.4kHilft deinem Agenten, ein azldev-Paket zu bauen und zu debuggen, einschließlich der Schleife aus Render, Build und Test und der Behebung fehlschlagender Build-Prüfungen.
azldev-comp-toml
5.4kHilft deinem Agenten, die Komponentendefinitionsdateien von azldev zu schreiben, zu bearbeiten und zu prüfen, die beschreiben, wie jedes Paket gebaut wird.
azldev-image
5.4kHilft deinem Agenten, ein Linux-Image wie ein Container- oder virtuelles Maschinen-Image mit den azldev-Image-Befehlen zu bauen, zu starten und zu testen.
Ähnliche Skills
openclaw-update
394kHilft deinem Agenten, ein bestehendes OpenClaw-Gateway zu aktualisieren, mit der Methode, die zu deiner Installation passt, während deine Sitzung weiterläuft.
diagnose-gateway
394kHilft deinem Agenten herauszufinden, warum dein OpenClaw-Gateway fehlschlägt, indem er Einstellungen, Kanäle und Ports prüft, ohne etwas zu ändern.
crabbox-apps
394kHilft deinem Agenten, eine App auf einer temporären Cloud-Maschine zu öffnen und auszuführen und ihre Ansicht in deinem Chat-Seitenpanel zu zeigen.