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
server/web/templates/channels.html +44
| @@ -0,0 +1,44 @@ | |||
| 1 | {{define "channels"}} | ||
| 2 | {{template "header" .}} | ||
| 3 | {{template "repohead" (nav .Page "releases")}} | ||
| 4 | |||
| 5 | <div class="page-head"> | ||
| 6 | <div class="page-head-main"> | ||
| 7 | <h1>Channels</h1> | ||
| 8 | <p class="page-sub">A channel is a stable name for the release it currently points at.</p> | ||
| 9 | </div> | ||
| 10 | </div> | ||
| 11 | |||
| 12 | {{if .Channels}} | ||
| 13 | <div class="panel"> | ||
| 14 | <table> | ||
| 15 | <tr><th>Channel</th><th>Release</th><th>Updated</th><th>Description</th></tr> | ||
| 16 | {{range .Channels}} | ||
| 17 | <tr> | ||
| 18 | <td><a href="/{{$.Name}}/channels/{{.Name}}">{{.Name}}</a></td> | ||
| 19 | <td> | ||
| 20 | {{if .Dangling}}<span class="label">dangling</span> <span class="muted">{{.Release}}</span> | ||
| 21 | {{else}}<a href="/{{$.Name}}/releases/{{esc .Target}}">{{.Target}}</a>{{end}} | ||
| 22 | </td> | ||
| 23 | <td class="muted">{{if .UpdatedBy}}{{.UpdatedBy}} · {{end}}{{since .UpdatedAt.Unix}}</td> | ||
| 24 | <td class="md">{{.Body}}</td> | ||
| 25 | </tr> | ||
| 26 | {{end}} | ||
| 27 | </table> | ||
| 28 | </div> | ||
| 29 | {{else}} | ||
| 30 | <div class="empty-state"> | ||
| 31 | <p>No channels yet. A channel is a mutable pointer to one annotated tag.</p> | ||
| 32 | <pre>vole release channel set stable v1.0.0</pre> | ||
| 33 | </div> | ||
| 34 | {{end}} | ||
| 35 | |||
| 36 | <div class="card"> | ||
| 37 | <h2>Package trees</h2> | ||
| 38 | <p>A channel serves the target release's attached files under its own path:</p> | ||
| 39 | <pre>https://your-forge/{{.Name}}/channels/stable/apt/Packages</pre> | ||
| 40 | <p class="muted">The forge does not know about apt or yum; a package layout is a directory in the release tree.</p> | ||
| 41 | </div> | ||
| 42 | |||
| 43 | {{template "footer" .}} | ||
| 44 | {{end}} | ||