# SOW v0.8.0

> Reclaim expired R2 objects on demand, sign with mounted secrets, and maintain large RPM and DEB repositories with fewer reads.

---

LLMS index: [llms.txt](/llms.txt)

---

**v0\.8\.0 · 2026-11-23**
- [View release](https://github.com/pgsty/sow/releases/tag/v0.8.0)
- [Source · tar\.gz](https://github.com/pgsty/sow/archive/refs/tags/v0.8.0.tar.gz)
- [Source · zip](https://github.com/pgsty/sow/archive/refs/tags/v0.8.0.zip)
- [pgsty\/sow](https://github.com/pgsty/sow)

SOW 0.8.0 lets operators reclaim expired objects on R2 and use mounted secrets for signing. Large Managed repositories need fewer storage requests during publication and can reclaim local packages in batches. The database stays at schema v13.

## Reclaiming R2 objects {#r2-gc}

`sow gc TARGET` still writes a candidate report by default. Add `--delete` to act on an earlier report or run deletion directly. Before removing an object, SOW rechecks active publications, cache grace, object size, SHA-256 metadata, and ETag. It then verifies storage absence and a public HTTP 404 or 410 and records a causal-epoch deletion receipt.

```bash
sow gc prod --json
sow gc prod --delete --json
```

Keep the target prefix under one workspace's exclusive control. If deletion is interrupted, rerun with `--delete`; running without `--delete` rejects an unfinished conditional-delete report. A package republished after an earlier report receives the protection of its new publication, and republishing identical bytes stays idempotent. See [target GC](/docs/command/gc/#target-gc).

## Signing and package formats {#signing}

- External password files, key files, and trusted keyrings can use symlinks, including Kubernetes Secret mounts. Every hop must stay outside the workspace. Plain `create` applies the same rule at the flat repository root. Temporary RPM passfile scratch files are zero-overwritten before removal, and `GNUPGHOME` is forwarded to `rpmsign` when set.
- Plain `create --sign-with` cryptographically verifies the resulting OpenPGP package signature. New Managed RPM metadata publications (`repomd.xml.asc`) now enforce SHA-256+ digests alongside APT metadata. RPM and APT readers also enforce stricter signature framing and header validation.
- DEB control archives support uncompressed tar, gzip, bzip2, xz, and zstd. SOW drops `control.tar.lzma` decompression and removes the unmaintained `kjk/lzma` and `pault.ag/go/debian/deb` dependencies; repack any binary DEB that uses `control.tar.lzma` before importing it.

## Publication, recovery, and CLI {#recovery}

- R2 reuses the recorded SHA-256 of an unchanged immutable `pool/` object when the listed path, size, and ETag match. Filesystem publication reuses verified hashes within a session and prunes empty `pool/` and `dists/` parent directories after conditional deletes.
- Local GC processes large backlogs in bounded batches and automatically replays interrupted `retain-remove-*` tombstones (`sow check` surfaces unfinished ones). SQLite batches membership and publication updates, and reopened writer connections retain WAL persistence and immediate transactions.
- Plain `create` and `prune` release the parent directory lock after binding so sibling directories run concurrently. `create` rejects running inside a managed `.sow` workspace ancestor or over an interrupted `.sow-prune-repo-complete` marker without `--pigsty`. Managed recovery unifies `workspace.lock` -> `repo.lock` ordering for `dist new`, `dist rm`, and `repo migrate`.
- Read-only inspection commands (`config check`, `repo ls`, `repo show`, `dist ls`, `dist show`) work on frozen `sow/v2` workspaces. `log prune --json` populates top-level `operation`, `where -r NAME --json` populates top-level `repository`, and workspace discovery surfaces a hint when `sow.yaml` is present without `sow.yml`.

## Toolchain and dependencies {#dependencies}

Source builds require **Go 1.27.4 or newer**. CI adds macOS contract tests and signed Managed APT/DNF container tests alongside the pinned Silo `20261112` publication suite.

| Component | 0.7.1 | 0.8.0 |
|---|---|---|
| Go | 1.27.4 | 1.27.4 |
| AWS SDK S3 | 1.114.10 | 1.116.0 |
| modernc/sqlite | 1.62.0 | 1.63.0 |
| modernc/libc | 1.81.0 | 1.82.12 |
| klauspost/compress | 1.20.4 | 1.20.5 |
| golang.org/x/crypto | 0.58.0 | 0.59.0 |
| pault.ag/go/debian | 0.21.3 | 0.21.4 |
| GoReleaser | 2.20.1 | 2.20.3 |
{.wide .expand}

## Upgrade and downloads {#upgrade}

Stop workspace writers and back up the complete workspace with hard links preserved. **If local GC was interrupted on 0.7.1, complete `sow gc -r REPOSITORY -C WORKSPACE` with the 0.7.1 binary before replacing it.** Its recovery plan may contain an empty `manifest` array that needs the old reader. Then install 0.8.0 and run `sow build` and `sow check` for each repository. Workspaces on 0.5.0 through 0.7.1 already use schema v13. See the [upgrade guide](/docs/start/install/#upgrade-to-080).

Linux and macOS archives, Linux RPM and DEB packages, and their checksums are on the [download page](/download/). See the [full changelog](https://github.com/pgsty/sow/compare/v0.7.1...v0.8.0).

### `.rpm`

| File | Checksum |
| --- | --- |
| [sow\-0\.8\.0\-1PGSTY\.aarch64\.rpm](https://github.com/pgsty/sow/releases/download/v0.8.0/sow-0.8.0-1PGSTY.aarch64.rpm) | SHA-256 · `b371f2a70fabe792e42b447adfabe826b586d4c974bf1ebe562ba291c74c2ed7` |
| [sow\-0\.8\.0\-1PGSTY\.x86\_64\.rpm](https://github.com/pgsty/sow/releases/download/v0.8.0/sow-0.8.0-1PGSTY.x86_64.rpm) | SHA-256 · `2417e1e43023937ae4fc519ef88324be25d487fd971f19e0a8ecdef65516f269` |

### `.deb`

| File | Checksum |
| --- | --- |
| [sow\_0\.8\.0\-1PGSTY\_amd64\.deb](https://github.com/pgsty/sow/releases/download/v0.8.0/sow_0.8.0-1PGSTY_amd64.deb) | SHA-256 · `9ea46405e43e07d4fbd7db1271630c8d656463905c0d0ffa91a4a47932d276f9` |
| [sow\_0\.8\.0\-1PGSTY\_arm64\.deb](https://github.com/pgsty/sow/releases/download/v0.8.0/sow_0.8.0-1PGSTY_arm64.deb) | SHA-256 · `f569512c479acf84277acce8e1b00b230eb3c8e68751b5c8802d7f01b7eca10a` |

### `.tar.gz`

| File | Checksum |
| --- | --- |
| [sow\_0\.8\.0\_darwin\_amd64\.tar\.gz](https://github.com/pgsty/sow/releases/download/v0.8.0/sow_0.8.0_darwin_amd64.tar.gz) | SHA-256 · `e4af9e9ff76cd7d0f56ee2970b4334c9ef864284871078f924a1800ad4785a6c` |
| [sow\_0\.8\.0\_darwin\_arm64\.tar\.gz](https://github.com/pgsty/sow/releases/download/v0.8.0/sow_0.8.0_darwin_arm64.tar.gz) | SHA-256 · `4f56903f52ebc7307d60a43b6b03f64628b866dd1a1f86ec29c6486804272c51` |
| [sow\_0\.8\.0\_linux\_amd64\.tar\.gz](https://github.com/pgsty/sow/releases/download/v0.8.0/sow_0.8.0_linux_amd64.tar.gz) | SHA-256 · `d2de548971d399ff0a825cfebc0827bb78590be9af0948b18bc1d223248958b1` |
| [sow\_0\.8\.0\_linux\_arm64\.tar\.gz](https://github.com/pgsty/sow/releases/download/v0.8.0/sow_0.8.0_linux_arm64.tar.gz) | SHA-256 · `483403ea407eb5d9251d9d693fb811f6bbe325d82bb0c8f5cacd2b890b53ba07` |
