Repository navigation
feat(skills): support exact commit install and update - #531
Open
SanAntonio021 wants to merge 1 commit into
Open
SanAntonio021 wants to merge 1 commit into
SanAntonio021 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Behavior
Add optional exact-commit selection to Skill installation and updates:
--source-commitaccepts only a full 40-character hexadecimal SHA and normalizes it to lowercase.owner/repo:path. If the Skill is already installed, the command directs the user toskills update.--all, and reject local Skills.readme_url, so nested source paths remain unambiguous without a database schema change.--source-commitcontinues to follow the stored branch or repository default branch. An exact update preserves existing branch tracking.The PR also gates two existing Unix-only OpenClaw symlink tests with
#[cfg(unix)]. They currently prevent the Windowscargo test --lib --no-default-features --no-runCI step from compiling. Product code is unchanged by this guard.Validation
Windows, Rust 1.91.1:
cargo fmt --checkgit diff --checkcargo check --lib --no-default-featurescargo test --lib --no-default-features --no-runcargo check --bin cc-switchThe complete test suite was not run. Existing repository warnings remain unchanged.
Scope
This PR intentionally does not include local-directory import, cross-process locking, runtime-file exclusion, a transactional file engine, automatic crash recovery, TUI changes, or a database schema bump.