본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)5.4k · #14968

azldev-update-component

하는 일

이 스킬은 azldev에서 구성 요소 잠금 파일을 언제, 어떻게 업데이트하는지 설명합니다. 패키지 변경을 마무리하거나 azldev 배포판에 새 패키지를 추가하는 개발자를 위한 것입니다.

사용하는 경우

  • ✓새 구성 요소를 추가했고 빌드 전에 잠금을 만들어야 할 때.
  • ✓패키지 변경을 마치고 풀 리퀘스트를 위해 잠금을 새로 고쳐야 할 때.
  • ✓패키지가 쓰는 상위 커밋이나 버전을 바꾸는 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/microsoft/azurelinux/blob/4.0/.agents/skills/azldev-update-component/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“curl 패키지의 오버레이 변경을 마쳤습니다. 잠금 파일을 새로 고치고 스펙을 다시 렌더링해 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 구성 요소의 업데이트 명령을 실행하고 잠금을 커밋한 뒤, 작업 흐름이 설명하는 대로 다시 렌더링하고 수정합니다. 일상 작업에는 단일 구성 요소 새로 고침을 사용합니다.

기술 내용 (원본 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.

자주 묻는 질문

잠금 파일이란 무엇인가요?

상위 커밋과 입력의 지문을 고정해서, 빌드가 반복 가능하도록 유지합니다.

잠금 업데이트가 필요 없는 경우는 언제인가요?

스킬은 오버레이나 빌드 플래그를 반복 수정하는 동안에는 잠금이 있으면 렌더링만으로 충분하다고 설명합니다.

모든 구성 요소를 새로 고쳐야 하나요?

보통은 아닙니다. 스킬은 전체 새로 고침은 느리며, 조율된 대량 업데이트를 위한 것이라고 설명합니다.

상세 정보

작성자의 원본 설명

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
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬