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.

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

forge/config/config.go +6

@@ -279,6 +279,12 @@ func (c *Config) SecretsKeyPath() string {
279 279 // restores the finished history.
280 280 func (c *Config) RunsDB() string { return filepath.Join(c.DataDir, "runs.db") }
281 281
282 // ChannelsDB holds release channels: mutable server-side aliases for immutable
283 // releases. It is authoritative and separate from the derived index, so an index
284 // rebuild cannot discard a channel and a channel move has no Git worktree to
285 // touch. Back it up with the other authoritative databases.
286 func (c *Config) ChannelsDB() string { return filepath.Join(c.DataDir, "channels.db") }
287
282 288 // SpoolDir receives accepted push events from post-receive hooks.
283 289 func (c *Config) SpoolDir() string { return filepath.Join(c.DataDir, "queue", "spool") }
284 290