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.

Restructure documentation around reader tasks

348a43c364fbb04be834af44a7cd43a0931fa280 · Keenan Nemetz · 20d ago · parent b7383c19

Restructure documentation around reader tasks

Group the site by getting started, collaboration, CI, publishing, and administration. Rewrite the guides as executable procedures and move issue formats, merge semantics, configuration defaults, customization, and access-control mechanics into dedicated references.

Verify the quickstart and review flow against a throwaway instance, execute the service recipe, inspect the rendered site, and run the complete verify workflow.

Closes: 01M7B6X6RDYBAP3JVA5SYSA1K8

docs/releases.md +53−81

@@ -1,90 +1,74 @@
1 1 # Releases
2 2
3 A release should travel with the code. In Vole, it does: a release is a Git tag
4 with a message. The message is the release notes, and the tagged code is the
5 source. Both travel with every clone, so there is no separate release database to
6 keep in sync.
3 A Vole release is an annotated Git tag. Its message contains the release notes,
4 its tree contains the source, and attached files provide binaries or other
5 downloads. Tags, notes, and attachment pointers travel with repository history.
7 6
8 7 ## Create a release
9 8
9 Write Markdown notes, create the tag, and push it:
10
10 11 ```sh
11 12 vole release create v1.0.0 -F notes.md
12 13 git push --follow-tags
13 14 ```
14 15
15 Plain Git works the same way:
16 Plain Git creates the same release:
16 17
17 18 ```sh
18 19 git tag -a v1.0.0 -F notes.md
19 20 git push --follow-tags
20 21 ```
21 22
22 Use an annotated tag (`git tag -a`). It has a message and a tagger. A lightweight
23 tag appears in the release list for completeness, but it has no notes and cannot
24 carry release files. `vole release create` refuses to overwrite an existing tag
25 and tells you to choose a new name.
26
27 ## Create a release in the browser
23 Use an annotated tag. A lightweight tag appears in the release list but has no
24 tag message or tagger and cannot carry attached files. `release create` refuses
25 to overwrite an existing tag.
28 26
29 A repository maintainer can create the same annotated tag from **Releases → New
30 release**: choose a tag name, a target branch or commit, and write the notes. The
31 notes become the tag message and the tagger is the account that submitted the
32 form. **Edit notes** changes the message of an annotated tag while the release has
33 no files attached; once an artifact is published the release is immutable, and
34 the web refuses the edit. Lightweight tags are never editable.
27 A maintainer can instead use **Releases → New release** in the browser. Choose a
28 tag and target and write the notes; Vole creates an annotated tag with the
29 signed-in account as tagger. **Edit notes** changes an annotated tag's message
30 only before files are attached.
35 31
36 ## Download source archives
32 ## Attach files
37 33
38 The `/<repo>/releases` page lists every tag. A release page shows the notes, the
39 commits since the previous release, and two generated downloads:
34 Push the tag first, then attach build outputs:
40 35
41 36 ```sh
42 curl -O http://host/demo/releases/v1.0.0/archive.tar
43 curl -OJ http://host/demo/releases/v1.0.0/archive.tar.gz
37 vole release attach v1.0.0 dist/vole-linux-amd64 dist/vole-linux-arm64
44 38 ```
45 39
46 Vole builds the archives from the tagged tree when someone requests them, so they
47 cannot go stale. The `ETag` is the tag's id, so repeat downloads get a `304`, and
48 the same tag produces the same bytes on every instance.
49
50 If a repository tracks files with Git LFS, the release page shows a warning.
51 `git archive` copies pointer files, not the files themselves.
40 Vole uploads the bytes into shared storage and writes pointers to the `vole`
41 branch. It refuses a pointer without an uploaded object, so a published download
42 cannot point at a missing file. Attaching identical content again reuses the
43 stored object.
52 44
53 ## Attach release files
54
55 Binaries attach over SSH into the shared storage, and Vole records a pointer for
56 them:
45 Download and verify a file:
57 46
58 47 ```sh
59 vole release attach v1.0.0 dist/vole-linux-amd64 dist/vole-darwin-arm64
60 curl -O http://host/demo/releases/v1.0.0/artifacts/vole-linux-amd64
48 curl -O https://forge.example.com/demo/releases/v1.0.0/artifacts/vole-linux-amd64
61 49 sha256sum vole-linux-amd64
62 50 ```
63 51
64 Attach files after pushing the tag, not before. The pointer is what publishes the
65 file, and Vole refuses a pointer whose file was never uploaded. That way a
66 download link never points at nothing.
67
68 If you attach the same file twice, Vole stores one copy and the second upload
69 transfers nothing. Downloads support `ETag`, `304`, `Content-Disposition:
70 attachment`, and Range requests, so large files can resume. Files from a private
71 repository return `404`.
52 Downloads support conditional requests, `Content-Disposition: attachment`, and
53 byte ranges for resuming large files. Anonymous visitors receive `404` for files
54 in private repositories.
72 55
73 ## Releases do not change
56 ## Download source archives
74 57
75 Once a release has files attached, Vole refuses to move or delete that tag, remove
76 a file, or point a file name at different bytes. A saved download keeps meaning
77 what it meant.
58 Each release page provides tar and gzip source downloads:
78 59
79 You can add another file; that does not invalidate anything. An admin can repair a
80 mistyped release, and the override is recorded in `data/audit.log`.
60 ```sh
61 curl -O https://forge.example.com/demo/releases/v1.0.0/archive.tar
62 curl -OJ https://forge.example.com/demo/releases/v1.0.0/archive.tar.gz
63 ```
81 64
82 Release file pointers live on the `vole` branch, so `vole admin gc --dry-run` treats a
83 published release file as something to keep.
65 Vole generates archives from the tagged tree on request and uses the tag id as
66 the `ETag`. Git LFS entries remain pointer files in source archives; the release
67 page warns when a repository uses LFS.
84 68
85 69 ## Build a release in CI
86 70
87 A workflow can build and publish a release instead of attaching files by hand:
71 A tag workflow can build and attach files with `release: true`:
88 72
89 73 ```yaml
90 74 artifacts:
@@ -92,39 +76,27 @@ artifacts:
92 76 release: true
93 77 ```
94 78
95 The run records the same pointers that `vole release attach` writes, so the
96 release page, download behavior, and immutability rules stay the same. See
97 [Workflows § Build a release](workflows.md#build-a-release).
98
99 ## A bill of materials for each release
79 The workflow writes the same attachment pointers as `vole release attach`. See
80 [Build a release](workflows.md#build-a-release) for a complete trigger and job.
100 81
101 A release built by the workflow carries an SBOM: `vole-<version>.sbom.cdx.json`,
102 in CycloneDX JSON, listed on the release page beside the packages and covered by
103 `SHA256SUMS`.
82 Vole's own release workflow also attaches a CycloneDX SBOM and `SHA256SUMS`
83 covering the packages, binaries, and SBOM. The SBOM records Go module versions,
84 hashes, toolchain information, and detected license evidence. It does not record
85 the host's system SQLite version; inspect the installed package for that
86 dependency.
104 87
105 It names every Go module the application links, with the version and hash that
106 `go.sum` pins, the Go toolchain, and each module's licence as *detected* evidence
107 rather than an asserted conclusion. That is what makes it useful for the question
108 it exists to answer: an advisory names a module version, and the SBOM says whether
109 the binary you downloaded contains it.
88 ## Immutability
110 89
111 Two limits, stated so nobody reads more into it than is there:
90 After a file is attached, Vole refuses to move or delete the tag, remove a file,
91 or reuse a file name for different bytes. You can add another file without
92 changing existing downloads. An admin repair is recorded in `data/audit.log`.
112 93
113 - **One file covers both architectures.** The module graph is the same for
114 `amd64` and `arm64`; only the compiled files differ. Check it with
115 `GOOS=linux GOARCH=arm64 go list -deps ./cmd/vole`.
116 - **The system SQLite library is not a Go module.** The SBOM names
117 `github.com/mattn/go-sqlite3`, the binding the build links, not the
118 `libsqlite3-0` version underneath it. That one comes from the package you
119 installed: `dpkg -s vole` or `rpm -q --requires vole`.
94 Release pointers participate in storage reachability, so `vole admin gc` retains
95 their objects. Treat a release as permanent before publishing it.
120 96
121 To regenerate it for a tag you already have:
122
123 ```sh
124 go run github.com/CycloneDX/cyclonedx-gomod/cmd/cyclonedx-gomod@v1.9.0 \
125 app -json -noserial -std -licenses -main cmd/vole -output SBOM.cdx.json .
126 ```
97 ## Next
127 98
128 The only field the tool takes from the clock is `metadata.timestamp`; the workflow
129 replaces it with the tag's commit time, so building one tag twice produces the
130 same file.
99 - [Install](install.md) — download and verify Vole's own release artifacts.
100 - [Packages and upgrades](packaging.md) — inspect Vole's package and SBOM build.
101 - [Workflows](workflows.md#build-a-release) — automate releases from annotated
102 tags.