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.
Move release channels to an authoritative channels.db
262e516e838cfc4b16b5d00fd98d5e4ef135aa85 · Keenan Nemetz · 19d ago · parent 24019cb3
Move release channels to an authoritative channels.db Channels are consumed from the public URL and are server-side publication state, so they no longer live on the vole branch or in the derived index. - forge/channel: authoritative SQLite store with schema, validation, and CRUD - config: data/channels.db, opened and closed with the instance - CLI: release channel set|list|clear over a new vole-channel SSH verb - server: maintain for set/clear, read for list, annotated-tag validation, audit channel.set/channel.clear, JSON list - web: channel page and tree read the store; release badges query it - remove the metadata-branch channel parser/validator, the index-derived channel table, and the hook path rules - backup, instance-data, and architecture docs include channels.db Refs: 01M7BPHANWMSW5HK2GT0PY74QZ
server/server.go +5−1
| @@ -15,6 +15,7 @@ import ( | |||
| 15 | 15 | "rodent.software/vole/ci/runs" | |
| 16 | 16 | "rodent.software/vole/core/lfs" | |
| 17 | 17 | "rodent.software/vole/forge" | |
| 18 | "rodent.software/vole/forge/channel" | ||
| 18 | 19 | "rodent.software/vole/forge/config" | |
| 19 | 20 | "rodent.software/vole/forge/identity" | |
| 20 | 21 | "rodent.software/vole/forge/index" | |
| @@ -39,6 +40,7 @@ type Server struct { | |||
| 39 | 40 | Sessions *session.Store | |
| 40 | 41 | Runs *runs.Store | |
| 41 | 42 | Index *index.Store | |
| 43 | Channels *channel.Store | ||
| 42 | 44 | LFS *lfs.Store | |
| 43 | 45 | Locks *lfs.LockStore | |
| 44 | 46 | PageViews *pageview.Store | |
| @@ -131,6 +133,7 @@ func New(cfg *config.Config, binPath string, log *slog.Logger) (*Server, error) | |||
| 131 | 133 | RunsDB: cfg.RunsDB(), | |
| 132 | 134 | IndexDB: cfg.IndexDB(), | |
| 133 | 135 | Runs: inst.Runs, | |
| 136 | Channels: inst.Channels, | ||
| 134 | 137 | Locks: inst.Locks, | |
| 135 | 138 | Lease: cfg.Lease(), | |
| 136 | 139 | MaxJobsPerRepo: cfg.MaxJobsPerRepo, | |
| @@ -154,6 +157,7 @@ func New(cfg *config.Config, binPath string, log *slog.Logger) (*Server, error) | |||
| 154 | 157 | wp.PageViews = inst.PageViews | |
| 155 | 158 | wp.InstanceRepo = inst.InstanceRepo | |
| 156 | 159 | wp.Secrets = inst.Secrets | |
| 160 | wp.ChannelStore = inst.Channels | ||
| 157 | 161 | wp.Logger = func(format string, args ...any) { log.Warn(fmt.Sprintf(format, args...)) } | |
| 158 | 162 | if cfg.DevLogin != "" { | |
| 159 | 163 | log.Warn("development login enabled", "account", cfg.DevLogin, "http_addr", cfg.HTTPAddr) | |
| @@ -166,7 +170,7 @@ func New(cfg *config.Config, binPath string, log *slog.Logger) (*Server, error) | |||
| 166 | 170 | ||
| 167 | 171 | s := &Server{ | |
| 168 | 172 | Cfg: cfg, Repos: inst.Repos, Identity: inst.Identity, Sessions: inst.Sessions, | |
| 169 | Runs: inst.Runs, Index: inst.Index, acme: acme, | ||
| 173 | Runs: inst.Runs, Index: inst.Index, Channels: inst.Channels, acme: acme, | ||
| 170 | 174 | LFS: inst.LFS, Locks: inst.Locks, PageViews: inst.PageViews, Secrets: inst.Secrets, | |
| 171 | 175 | Proxy: proxy, SSH: ssh, Web: wp, Log: log, | |
| 172 | 176 | metadataWake: make(chan struct{}, 1), | |