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.

Let a release change until a channel names it

214e7ea67ccb37d356a52097f8ce838bdf4c1731 · Keenan Nemetz · 17d ago · parent 502119f4

Let a release change until a channel names it

A release is mutable again. Notes can be edited and files added, replaced,
or removed after publication, because a mistyped note or a rebuilt binary
is not a reason to cut a new version. Editing the notes re-tags the same
commit, which the old rule refused from the first attached file.

The one thing that stays frozen is a release a channel names. A channel
records the tag name and the tag object, so a re-tag would dangle it and a
changed pointer would serve different bytes under a URL a package manager
already cached. Pre-receive reads the channel table from the instance
database and refuses every change to a channeled release — tag moves and
deletes, and added, replaced, or removed pointers alike — naming the
channel and how to move it. The browser applies the same rule: the edit
form, the attach form, and the list link are all drawn from it.

Attaching also works from the browser now, at parity with the CLI. The
Artifacts card takes files, or a directory, and an optional directory to
publish under; the handler streams each part to a temp file while hashing
it, checks the object-store quota before storing anything, writes bytes
first and pointers second, and calls the same metadata writer the CLI
does. A directory upload keeps its paths, which is why the body is read as
a multipart stream rather than through ParseForm.

docs/cli.md +2−2

@@ -395,11 +395,11 @@ vole release channel clear <name> [--remote <name>]
395 395 A release is an annotated tag: its message is the release notes and its tree is
396 396 the source tarball, so both travel with any clone.
397 397
398 `create` — Writes the annotated tag in the current repository; push it with `git push --follow-tags`. A release is immutable once pushed, so a new version is a new tag.
398 `create` — Writes the annotated tag in the current repository; push it with `git push --follow-tags`. The notes and attached files stay editable afterwards unless a channel targets the release.
399 399
400 400 `attach` — Uploads each file, or each regular file under a directory, over SSH and records it as a path under `releases/<tag>/` on the metadata branch. A directory keeps its relative paths, so a package layout survives. Nothing is published until the pointer is pushed, so attach after `git push --follow-tags`, not before.
401 401
402 `channel set` — Points a mutable channel at an annotated tag. The channel name stays; the release it names is immutable.
402 `channel set` — Points a mutable channel at an annotated tag. The channel name stays; the release it names is frozen until the channel points at another one.
403 403
404 404 `channel list` — Prints every channel and whether its target is still an annotated tag with the recorded object id.
405 405