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

metadata/issues.go +3−7

@@ -482,7 +482,7 @@ func ValidateIssues(g *git.Repo, commit string) []string {
482 482 // Refuse an oversized tree before reading any of it: a rejected push should
483 483 // cost the receiver nothing either.
484 484 var problems []string
485 for _, prefix := range []string{IssuesDir, ChangesDir, ChannelsDir} {
485 for _, prefix := range []string{IssuesDir, ChangesDir} {
486 486 paths, shas := metadataPaths(blobs, prefix)
487 487 problems = append(problems, metadataSizeProblems(paths, shas, g)...)
488 488 }
@@ -502,13 +502,10 @@ func ValidateIssues(g *git.Repo, commit string) []string {
502 502 // Release artifacts: their own validator runs below, and they are not
503 503 // part of the entity set this function parses.
504 504 continue
505 case strings.HasPrefix(e.Name, ChannelsDir+"/"):
506 // Channel pointers: validated by ChannelProblems below.
507 continue
508 505 default:
509 506 problems = append(problems, fmt.Sprintf(
510 "%s: metadata may only contain %s/, %s/, %s/ and %s/",
511 e.Name, IssuesDir, ChangesDir, ReleasesDir, ChannelsDir))
507 "%s: metadata may only contain %s/, %s/ and %s/",
508 e.Name, IssuesDir, ChangesDir, ReleasesDir))
512 509 continue
513 510 }
514 511 }
@@ -517,7 +514,6 @@ func ValidateIssues(g *git.Repo, commit string) []string {
517 514 return append(problems, err.Error())
518 515 }
519 516 problems = append(problems, ReleaseProblems(g, commit)...)
520 problems = append(problems, ChannelProblems(g, commit)...)
521 517 if _, err := ParseIssues(contents); err != nil {
522 518 if ve, ok := err.(*ValidationError); ok {
523 519 return append(problems, ve.Problems...)