docs(rtk): name the commands that raise the duplicate-hook error
Verified against apm 0.39.3 (integration/hook_ownership.py and its callers): `apm audit`, with or without --ci, reports "ambiguous duplicate APM-owned hook entry" as a drift finding unless --no-drift is set, and `apm export-patch` runs the same check. `apm install --frozen` reaches it too but reports only that a managed hook entry was edited or removed. README-only: it reaches no compiled output, so no plugin version bump (apm-workflow references/configure.md). Refs: #179 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
This commit is contained in:
1 parent
98e8c27cdf
commit
7ee2066407
1 file changed
+1
-1
@@ -77,7 +77,7 @@ This repo hand-writes its grant in the root `apm.yml` and does not run `apm appr
|
||||
|
||||
### "ambiguous duplicate APM-owned hook entry"
|
||||
|
||||
apm raises this error when `.claude/settings.json` holds more byte-identical copies of an APM-owned hook entry than `.claude/apm-hooks.json` records. It happens when the same hook entry is pasted in by hand or merged in twice. To fix it, remove the duplicate entries from `.claude/settings.json`, keeping none of the hand-added copies, then run `apm install` again.
|
||||
`apm audit` raises this error, with or without `--ci`, unless drift checking is off with `--no-drift`. It reports it as a drift finding on `.claude/settings.json`. `apm export-patch` runs the same check. `apm install --frozen` runs it too, but reports only that an APM-managed hook entry was edited or removed. The cause is `.claude/settings.json` holding more byte-identical copies of an APM-owned hook entry than `.claude/apm-hooks.json` records. It happens when the same hook entry is pasted in by hand or merged in twice. To fix it, remove the duplicate entries from `.claude/settings.json`, keeping none of the hand-added copies, then run `apm install` again.
|
||||
|
||||
## Author
|
||||
|
||||
|
||||
Reference in new issue
Block a user