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

docs/releases.md +25

@@ -69,6 +69,31 @@ Downloads support conditional requests, `Content-Disposition: attachment`, and
69 69 byte ranges for resuming large files. Anonymous visitors receive `404` for files
70 70 in private repositories.
71 71
72 ## Channels
73
74 A channel is a mutable alias for one annotated release. The release stays
75 immutable; moving the channel changes only which release its URL follows.
76
77 ```sh
78 vole release channel set stable v1.0.0 -m "Recommended for production"
79 vole release channel list
80 vole release channel clear stable
81 ```
82
83 `/<repo>/channels/stable` redirects to the target release page.
84 `/<repo>/channels/stable/<path>` serves a file attached to that release:
85
86 ```sh
87 curl -O https://forge.example.com/demo/channels/stable/apt/Packages
88 ```
89
90 The forge does not know about apt, yum, or any other client. A package layout is
91 just a directory in the release tree; the release workflow decides the paths and
92 the client points at the channel. Moving a channel is a metadata commit, so it
93 needs maintain access and is recorded in the audit log. A channel whose target
94 tag is missing or no longer matches the recorded tag object is shown as dangling
95 and resolves to `404`.
96
72 97 ## Download source archives
73 98
74 99 Each release page provides tar and gzip source downloads: