Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

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/releases.html +3

@@ -6,6 +6,7 @@
6 6 <div class="page-head-main">
7 7 <h1>Releases</h1>
8 8 <p class="page-sub">{{if .Tags}}{{len .Tags}} tag(s){{if .Lightweight}} · {{.Lightweight}} lightweight{{end}}{{else}}Tags with notes, artifacts, and archives.{{end}}</p>
9 <p class="muted"><a href="/{{.Name}}/channels">Channels</a> — stable names for the release they currently point at.</p>
9 10 </div>
10 11 {{if .CanManage}}<div class="page-head-actions"><a class="button" href="/{{.Name}}/releases/new">{{icon "plus"}}New release</a></div>{{end}}
11 12 </div>
@@ -52,6 +53,8 @@ records a tagger and a message, which is what makes a tag a release.</p>
52 53 · {{since .Tag.When}}
53 54 · commit <a class="sha" href="/{{.Name}}/commit/{{.Tag.Commit}}">{{short .Tag.Commit}}</a>
54 55 </p>
56 {{if .Channels}}<p class="page-sub">Channel{{if gt (len .Channels) 1}}s{{end}}:
57 {{range $i, $c := .Channels}}{{if $i}} · {{end}}<a href="/{{$.Name}}/channels/{{$c}}">{{$c}}</a>{{end}}</p>{{end}}
55 58 </div>
56 59 {{if .CanEdit}}<div class="page-head-actions"><a class="button secondary" href="/{{.Name}}/releases/edit?tag={{urlquery .Tag.Name}}">{{icon "sliders-horizontal"}}Edit notes</a></div>{{end}}
57 60 </div>