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/routes.go +6

@@ -211,6 +211,12 @@ func (s *Server) repoRoutes(mux *http.ServeMux) {
211 211 mux.HandleFunc("GET /{name}/releases/{tag}/archive.tar.gz", w.ReleaseTarGz)
212 212 mux.HandleFunc("GET /{name}/releases/{tag}/artifacts/{path...}", w.ReleaseArtifact)
213 213
214 // Channels. The channel name is one segment; the tree route takes the rest,
215 // so apt/ or yum/ are just directories in the target release.
216 mux.HandleFunc("GET /{name}/channels", w.Channels)
217 mux.HandleFunc("GET /{name}/channels/{channel}", w.ChannelView)
218 mux.HandleFunc("GET /{name}/channels/{channel}/{path...}", w.ChannelFile)
219
214 220 // CI: the run list and one run with its log and artifacts. Cancel and rerun
215 221 // are the only writes.
216 222 mux.HandleFunc("GET /{name}/runs", w.RunsPage)