vole
Site
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software/vole.git
Self-hosted forge that lives in your Git repo.
Add named release channels and a generic channel file route
24019cb30892b9fc0118697e8b89cd61e9fab576 · Keenan Nemetz · 19d ago · parent 4f8a3da8
Add named release channels and a generic channel file route A channel is a mutable pointer, channels/<name>.md, to one immutable annotated release. The target tag object is recorded so a rewritten tag is detected rather than silently followed. - metadata: channel parse/render/validate, closed-layout and size checks, set/clear writers - CLI: vole release channel set|list|clear; a dangling target is reported - server: maintain/admin path gate and audit for channel.set/clear - index: release_channels table, incremental refresh, per-tag badge query - web: /channels list, /channels/<name> redirect, and /channels/<name>/<path...> serving the target release's tree with OID ETags, Range, revalidation, and octet-stream responses - tests: metadata round trips, index moves, hook role/audit, page/tree/dangling/ private, and the CLI end to end No apt, yum, or other package-manager code is involved: a package layout is a directory in the release tree. Refs: 01M7BPHANWMSW5HK2GT0PY74QZ
docs/cli.md +12−3
| @@ -356,6 +356,9 @@ See [Change requests](change-requests.md). | |||
| 356 | 356 | ```sh | |
| 357 | 357 | vole release create <tag> (-m <text> | -F <file|->) | |
| 358 | 358 | vole release attach <tag> <file-or-directory>... [--remote <name>] | |
| 359 | vole release channel set <name> <tag> (-m <text> | -F <file|->) [--remote <name>] | ||
| 360 | vole release channel list [--remote <name>] | ||
| 361 | vole release channel clear <name> [--remote <name>] | ||
| 359 | 362 | ``` | |
| 360 | 363 | ||
| 361 | 364 | A release is an annotated tag: its message is the release notes and its tree is | |
| @@ -365,11 +368,17 @@ the source tarball, so both travel with any clone. | |||
| 365 | 368 | ||
| 366 | 369 | `attach` — Uploads each file, or each regular file under a directory, over SSH and records it as a path under `releases/<tag>/` on the metadata branch. A directory keeps its relative paths, so a package layout survives. Nothing is published until the pointer is pushed, so attach after `git push --follow-tags`, not before. | |
| 367 | 370 | ||
| 371 | `channel set` — Points a mutable channel at an annotated tag. The channel name stays; the release it names is immutable. | ||
| 372 | |||
| 373 | `channel list` — Prints every channel and whether its target is still an annotated tag with the recorded object id. | ||
| 374 | |||
| 375 | `channel clear` — Removes the pointer. The release and its files stay; only the stable name stops resolving. | ||
| 376 | |||
| 368 | 377 | | Option | Used by | Meaning | | |
| 369 | 378 | |---|---|---| | |
| 370 | | `-m, --message <text>` | create | the release notes | | ||
| 371 | | `-F, --file <file\|->` | create | read the release notes from a file; - reads standard input | | ||
| 372 | | `--remote <name>` | attach | the remote naming the instance (default origin) | | ||
| 379 | | `-m, --message <text>` | create, channel set | the release notes or channel description | | ||
| 380 | | `-F, --file <file\|->` | create, channel set | read the release notes or channel description from a file; - reads standard input | | ||
| 381 | | `--remote <name>` | attach, channel set, channel list, channel clear | the remote naming the instance (default origin) | | ||
| 373 | 382 | ||
| 374 | 383 | See [Releases](releases.md). | |
| 375 | 384 | ||