Skip to main content

Module lock

Module lock 

Source
Expand description

Skills lock file management for reproducible installations

Two distinct lock structures are maintained:

  • ProjectSkillsLock: deterministic, timestamp-free, for skills.lock at project root
  • GlobalSkillsLock: operational, with timestamps, for global-skills.lock in user config dir

Structs§

GlobalLockMetadata
Metadata for the global user-scoped lock file.
GlobalLockedSkillEntry
A single entry in the global lock with operational timestamps.
GlobalSkillsLock
Global user-scoped lock file. Serialized to <dirs::config_dir()>/fastskill/global-skills.lock.
LockMismatch
ProjectLockMetadata
Metadata for the project-scoped lock file. Does not contain any wall-clock timestamp — enables deterministic file content.
ProjectLockedSkillEntry
A single pinned skill entry in the project lock. No volatile timestamp fields — content is fully deterministic.
ProjectSkillsLock
Project-scoped lock file. Serialized to <project_root>/skills.lock.

Enums§

LockError

Functions§

global_lock_path
Returns the global lock path (platform-specific config directory).
project_lock_path
Returns the project lock path given the resolved project file path.

Type Aliases§

SkillsLock
Backward-compatible type alias (deprecated; remove in next major version).