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/releases.go +2
| @@ -131,6 +131,7 @@ func (w *Web) ReleaseView(rw http.ResponseWriter, r *http.Request) { | |||
| 131 | 131 | LFSPointers bool | |
| 132 | 132 | Artifacts []metadata.Artifact | |
| 133 | 133 | ArtifactBytes int64 | |
| 134 | Channels []string | ||
| 134 | 135 | CanEdit bool | |
| 135 | 136 | }{ | |
| 136 | 137 | Page: w.page(r, m.Name+" · "+t.Name), | |
| @@ -145,6 +146,7 @@ func (w *Web) ReleaseView(rw http.ResponseWriter, r *http.Request) { | |||
| 145 | 146 | LFSPointers: lfsPointers, | |
| 146 | 147 | Artifacts: artifacts, | |
| 147 | 148 | ArtifactBytes: artifactBytes, | |
| 149 | Channels: w.channelsForTag(r, m, t.Name), | ||
| 148 | 150 | CanEdit: w.canManageReleases(r, m) && t.Annotated && len(artifacts) == 0, | |
| 149 | 151 | }, 0) | |
| 150 | 152 | } | |