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.
Manage release files from the CLI and browser
c51874492382d08085b6388cea898d0d60ab9375 · Keenan Nemetz · 17d ago · parent 214e7ea6
Manage release files from the CLI and browser Move the attach form to its own page, add move/remove operations to the CLI and browser, and simplify the release detail page to notes, files, and source links.
docs/releases.md +32−9
| @@ -27,7 +27,7 @@ to overwrite an existing tag. | |||
| 27 | 27 | A maintainer can instead use **Releases → New release** in the browser. Choose a | |
| 28 | 28 | target from the repository's branches and tags, name the tag, and write the | |
| 29 | 29 | notes; Vole creates an annotated tag with the signed-in account as tagger. | |
| 30 | **Edit notes** rewrites an annotated tag's message. A release is editable after | ||
| 30 | **Edit release** rewrites an annotated tag's message. A release is editable after | ||
| 31 | 31 | publication; see [Editing a release](#editing-a-release) for the one case that | |
| 32 | 32 | freezes it. | |
| 33 | 33 | ||
| @@ -54,10 +54,10 @@ vole release attach v1.0.0 dist/apt | |||
| 54 | 54 | A path is slash-separated. Empty segments, `.`, `..`, backslashes, and control | |
| 55 | 55 | characters are refused, and a path cannot be both a file and a directory. | |
| 56 | 56 | ||
| 57 | A maintainer can attach from the browser too: the **Artifacts** card on the | ||
| 58 | release page takes files, or a directory, and an optional directory to publish | ||
| 59 | them under. It writes the same pointers as the CLI, so a file attached in the | ||
| 60 | browser is indistinguishable from one attached by `vole release attach` — | ||
| 57 | A maintainer can attach from the browser too: **Attach files** on the release | ||
| 58 | page opens a form that takes files, or a directory, and an optional directory to | ||
| 59 | publish them under. It writes the same pointers as the CLI, so a file attached in | ||
| 60 | the browser is indistinguishable from one attached by `vole release attach` — | ||
| 61 | 61 | including for a clone of the metadata branch. A browser upload is bounded by the | |
| 62 | 62 | instance's per-object limit; attach a bigger set from the shell. | |
| 63 | 63 | ||
| @@ -66,6 +66,29 @@ branch. It refuses a pointer without an uploaded object, so a published download | |||
| 66 | 66 | cannot point at a missing file. Attaching identical content again reuses the | |
| 67 | 67 | stored object. | |
| 68 | 68 | ||
| 69 | ## Move and remove files | ||
| 70 | |||
| 71 | Attached files are editable after publication. A move changes only the path under | ||
| 72 | `releases/<tag>/`; the bytes stay in the content-addressed store. A removal | ||
| 73 | deletes the pointer, which makes the bytes collectable once the garbage | ||
| 74 | collector's grace period passes. | ||
| 75 | |||
| 76 | ```sh | ||
| 77 | vole release move v1.0.0 tool-linux-amd64 bin/tool-linux-amd64 | ||
| 78 | vole release remove v1.0.0 old-notes.txt | ||
| 79 | vole release remove v1.0.0 apt/Packages apt/Packages.gz | ||
| 80 | ``` | ||
| 81 | |||
| 82 | The destination must not already be attached, and the move cannot turn a file | ||
| 83 | into a directory or the reverse. Renaming and moving are the same operation: only | ||
| 84 | the path changes. | ||
| 85 | |||
| 86 | A maintainer can do both from the browser. The **edit** link beside each file on | ||
| 87 | the release page opens a form with the path, a **Save path** button, and a | ||
| 88 | **Delete file** button. The browser writes the same pointers as the CLI and | ||
| 89 | applies the same rules, including the channel freeze described in | ||
| 90 | [Editing a release](#editing-a-release). | ||
| 91 | |||
| 69 | 92 | Download and verify a file, including one in a nested path: | |
| 70 | 93 | ||
| 71 | 94 | ```sh | |
| @@ -170,10 +193,10 @@ The same rule applies to a push and to the browser, so a channel cannot be worke | |||
| 170 | 193 | around by editing with the CLI. An admin override is recorded in | |
| 171 | 194 | `data/audit.log`. | |
| 172 | 195 | ||
| 173 | Adding, replacing, or removing a file rewrites the pointers on the `vole` branch. | ||
| 174 | Release pointers participate in storage reachability, so `vole admin gc` retains | ||
| 175 | an object only while a pointer names it: removing the last pointer to a file | ||
| 176 | makes its bytes collectable after the grace period. | ||
| 196 | Adding, replacing, moving, or removing a file rewrites the pointers on the `vole` | ||
| 197 | branch. Release pointers participate in storage reachability, so `vole admin gc` | ||
| 198 | retains an object only while a pointer names it: removing the last pointer to a | ||
| 199 | file makes its bytes collectable after the grace period. | ||
| 177 | 200 | ||
| 178 | 201 | ## Next | |
| 179 | 202 | ||