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
@@ -1265,6 +1265,16 @@ three directories aside before that first 0.39 install. Otherwise apm refuses to
|
||||
with `no trustworthy local deployment baseline`, because 0.28 recorded no deployment evidence for
|
||||
them. apm's message suggests a bare `apm install`; run the `uv run --frozen` form instead.
|
||||
|
||||
**A lock written over a 0.28-populated `apm_modules/` is wrong, and this gate family catches it
|
||||
late.** Before any 0.39 command that writes `apm.lock.yaml` (`uv run --frozen apm update`, or an
|
||||
install that changes the lock) in a checkout whose `apm_modules/` apm 0.28 populated, 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. A fresh install then
|
||||
adds the LICENSE files, the cached content hash no longer matches the lock, and
|
||||
`apm-pack-check-clean` fails with `does not match the content hash recorded in apm.lock.yaml`
|
||||
(found under #272, fixed on #271 by regenerating the lock from a fresh install). Only writing the
|
||||
lock is affected: consuming the committed lock needs only the two setup steps.
|
||||
|
||||
It does **not** enforce an org policy. apm discovers one from the git remote and only understands
|
||||
github.com and Azure DevOps, so against this repo's self-hosted Gitea remote it prints:
|
||||
|
||||
|
||||
Reference in new issue
Block a user