Skip to content

Allow lock update to remove stale skill lock entries#102

Merged
gjkim42 merged 1 commit into
mainfrom
lock-cleanup
Jul 2, 2026
Merged

Allow lock update to remove stale skill lock entries#102
gjkim42 merged 1 commit into
mainfrom
lock-cleanup

Conversation

@gjkim42

@gjkim42 gjkim42 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

What type of PR is this?

/kind bug

What this PR does / why we need it:

kanon lock update <provider-name> previously only accepted enabled git skill providers. After a provider was removed from kanon.yaml, its stale kanon.lock entry could not be named and removed with the intended command.

This updates named lock updates to accept provider names found only in kanon.lock as stale, remove those stale entries, and keep remaining provider lock entries complete. It also handles legacy lock-owner forms where a removed provider name can be ambiguous, such as provider git.foo stored as skill.git.foo.

Which issue(s) this PR is related to:

N/A

Special notes for your reviewer:

Validated with make test, make verify, and post-fix review-all.

Does this PR introduce a user-facing change?

Allows `kanon lock update <provider-name>` to remove stale lock entries for removed git skill providers.

@gjkim42 gjkim42 changed the title Allow lock update to remove stale skill pins Allow lock update to remove stale skill lock entries Jul 2, 2026
@gjkim42
gjkim42 added this pull request to the merge queue Jul 2, 2026
Merged via the queue into main with commit 8959297 Jul 2, 2026
10 checks passed
@gjkim42
gjkim42 deleted the lock-cleanup branch July 2, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant