docs(readme): document consumer pinning with the object form

Expand README "For external consumers" with how to pin a plugin at
<plugin>-v<x.y.z> using apm's object form, why the shorthand form fails
on this host, and that Renovate updates are planned but untested
(ADR-0033 consequence 3). Point the ref: line in the bin, core, git and
kyberforge READMEs at that section.

Refs #235, #236

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
This commit is contained in:
Defame1297andClaude Opus 5.5 committed 2026-11-29 19:54:37 +00:00
1 parent 276fd1f099
commit 389b5cc425
5 files changed
+36 -5

No files matched your search

+32 -1
View File
@@ -111,7 +111,38 @@ An agent may run all four steps, but it runs step 4 only after the maintainer ex
## For external consumers
Consume the packages through apm, the way this repo does — declare them as `dependencies.apm` git+path entries against the holocron remote and run `apm install`. apm is the only supported install path.
Consume the packages through apm, the way this repo does. apm is the only supported install path.
### Pinning a plugin to a release
Each plugin is released as a git tag `<plugin>-v<x.y.z>`, for example `git-v1.3.9`
([ADR-0033](docs/adr/0033-plugin-releases-are-tagged-plugin-v-version.md)). Pin one with apm's
object form, keys in this order (the planned Renovate rule matches only this order):
```yaml
dependencies:
apm:
- git: https://git.rkdr.net/Mortis/Holocron.git
path: plugins/git
ref: git-v1.3.9
```
Then run `apm install`. Without `ref:`, the entry tracks the default branch. To list a plugin's
releases, run `git ls-remote --tags https://git.rkdr.net/Mortis/Holocron.git '<plugin>-v*'`;
`apm outdated` also reports newer `<plugin>-v<x.y.z>` tags.
### Do not use the shorthand form
The shorthand `git.rkdr.net/Mortis/Holocron/plugins/<name>#<plugin>-v<x.y.z>` does not work on this
host. apm reads `plugins/<name>` as part of the repository path, so a real install tries to clone
`.../Holocron/plugins/<name>.git` and fails with "Not found". `apm install --dry-run` does not catch
this. Use the object form.
### Automated updates
Renovate's `apm` manager cannot update these pins: it reads only the shorthand form and drops
object-form entries. A Renovate regex manager on the `ref:` line is planned but untested, so bump
`ref:` by hand until a verified rule is published here. See ADR-0033 consequence 3.
## Where to go next