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.

Simplify release file management

fdd0b3e8373da4c684c73d88f997c3917966ac50 · Keenan Nemetz · 17d ago · parent c5187449

Simplify release file management

Drop rename and move from the CLI and browser, outline the files table instead of wrapping it in a card, and label the release-page action Manage files.

docs/releases.md +10−17

@@ -54,7 +54,7 @@ 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: **Attach files** on the release
57 A maintainer can attach from the browser too: **Manage files** on the release
58 58 page opens a form that takes files, or a directory, and an optional directory to
59 59 publish them under. It writes the same pointers as the CLI, so a file attached in
60 60 the browser is indistinguishable from one attached by `vole release attach` —
@@ -66,28 +66,21 @@ 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
69 ## Remove files
70 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.
71 Attached files can be removed after publication. A removal deletes the pointer,
72 which makes the bytes collectable once the garbage collector's grace period
73 passes. The release notes and source are untouched.
75 74
76 75 ```sh
77 vole release move v1.0.0 tool-linux-amd64 bin/tool-linux-amd64
78 76 vole release remove v1.0.0 old-notes.txt
79 77 vole release remove v1.0.0 apt/Packages apt/Packages.gz
80 78 ```
81 79
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).
80 A maintainer can remove a file from the browser too: the **remove** action beside
81 each file on the release page, and on the **Manage files** page, deletes the same
82 pointer the CLI does. The browser applies the same rules, including the channel
83 freeze described in [Editing a release](#editing-a-release).
91 84
92 85 Download and verify a file, including one in a nested path:
93 86
@@ -193,7 +186,7 @@ The same rule applies to a push and to the browser, so a channel cannot be worke
193 186 around by editing with the CLI. An admin override is recorded in
194 187 `data/audit.log`.
195 188
196 Adding, replacing, moving, or removing a file rewrites the pointers on the `vole`
189 Adding, replacing, or removing a file rewrites the pointers on the `vole`
197 190 branch. Release pointers participate in storage reachability, so `vole admin gc`
198 191 retains an object only while a pointer names it: removing the last pointer to a
199 192 file makes its bytes collectable after the grace period.