docs(adr): record ADR-0033 plugin release tags as <plugin>-v<version>
Every plugin version on main gets an annotated <plugin>-v<version> tag, cut by scripts/tag-plugin-releases.sh after merge. No hook can enforce it: merges via Gitea run no local hook, and pre-commit skips a pushed tag on an already-pushed commit, so tagging is a maintainer step. ADR-0024 gains a forward note that its rejected option 2, ground 2, is now addressed; gates.md explains why tagging is not a gate, and README lists the maintainer's post-merge steps. Refs: #223 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
This commit is contained in:
1 parent
bc53b98d61
commit
32d81b32d2
4 files changed
+168
No files matched your search
@@ -1340,6 +1340,26 @@ checks fail offline, with `deployed-files-present` already failing for the same
|
||||
`apm-audit-ci` above). The offline guarantee is a property of a populated `apm_modules/`, not of the
|
||||
hook set: run `apm install` once on a new checkout and it holds from then on.
|
||||
|
||||
## Plugin release tags are not a gate
|
||||
|
||||
Every plugin version on `main` gets an annotated `<plugin>-v<version>` tag (ADR-0033). No hook
|
||||
checks for it, for two reasons:
|
||||
|
||||
- **Nothing runs at the right moment.** A version lands on `main` by merge, and Gitea's merge
|
||||
button runs no local hook. A pre-push hook that failed on untagged versions would instead block
|
||||
every contributor's next push, and an agent's only way past it would be `SKIP=` or
|
||||
`--no-verify`, which ADR-0032 forbids.
|
||||
- **A hook on the tag push never fires.** pre-commit 4.6.1's `_pre_push_ns` skips a pushed ref
|
||||
whose remote sha is all zeros and that has no commits outside `--remotes=origin`. That is exactly
|
||||
a new tag on an already-pushed `main` commit, so no hook runs.
|
||||
|
||||
Tagging is a maintainer step after merge instead. After `git fetch origin --tags`, run
|
||||
`scripts/tag-plugin-releases.sh` (a dry run; it exits 1 while tags are missing), then `--apply`,
|
||||
then push the tags it names.
|
||||
|
||||
See also: `docs/adr/0033-plugin-releases-are-tagged-plugin-v-version.md`,
|
||||
`scripts/tag-plugin-releases.sh`.
|
||||
|
||||
---
|
||||
|
||||
## See also
|
||||
|
||||
Reference in new issue
Block a user