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/hook/hook.go +1

@@ -389,6 +389,7 @@ func PreReceive(cfg Config) int {
389 389 // The issues branch is user-authored content, so it is validated at the
390 390 // boundary: bad data never reaches the tree the web reads.
391 391 if c.ref == metadata.Ref && c.new != git.ZeroSHA {
392 problems = append(problems, channelFindings(g, c, role, actor, m.Name, cfg.AuditPath)...)
392 393 for _, prob := range metadata.ValidateIssues(g, c.new) {
393 394 problems = append(problems, "issues: "+prob)
394 395 }