docs: clear a 0.28-populated apm_modules before writing the lock
apm 0.39 reuses the 0.28-era third-party copies in apm_modules/ and writes a lock without their carried_licenses entries, which a fresh install contradicts and apm-pack-check-clean then fails on. README setup, gates.md and the AGENTS.md lock-churn rule now say to move apm_modules/ aside and reinstall before any 0.39 command that writes the lock. Consuming the committed lock is unaffected. Refs #272 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
This commit is contained in:
1 parent
b80c26e064
commit
66443e7458
3 files changed
+13
-1
No files matched your search
@@ -69,6 +69,8 @@ pre-commit install -t pre-commit -t commit-msg -t pre-push
|
||||
|
||||
**An existing checkout deployed by apm 0.28 needs one more step before step 2.** Move `.claude/skills`, `.claude/agents` and `.claude/commands` aside (or delete them if they hold no edits), then run `uv run --frozen apm install`. Without that, apm 0.39 refuses to replace the 0.28-deployed files with "no trustworthy local deployment baseline", because 0.28 recorded no deployment evidence for them. apm's own message suggests a bare `apm install`; use the `uv run --frozen` form instead.
|
||||
|
||||
**Writing the lock from a checkout whose `apm_modules/` apm 0.28 populated needs a clean cache first.** Before any 0.39 command that writes `apm.lock.yaml` (`uv run --frozen apm update`, or an install that changes the lock), move `apm_modules/` aside and run `uv run --frozen apm install`. Otherwise apm reuses the 0.28-era third-party copies and writes a lock without their `carried_licenses` entries, which a fresh install then contradicts. Consuming the committed lock is unaffected and needs only the two setup steps above.
|
||||
|
||||
**Git hooks** must be wired for **all three stages**. This repo's `.pre-commit-config.yaml` has no `default_install_hook_types`, so a plain `pre-commit install` silently skips `commit-msg` (Conventional Commits) and `pre-push` (the full gate) — the `-t` flags above are not optional. The `pc-run` skill handles this and the troubleshooting around it, if you would rather not remember the flags.
|
||||
|
||||
## Keeping the install current
|
||||
|
||||
Reference in new issue
Block a user