homebrew-tap
Clone
Read only, no credentials:
https://rodent.software/homebrew-tap.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software/homebrew-tap.git
Homebrew tap for Rodent Software.
Add the Vole Homebrew formula and autobump script
ab3f4cbaeb37ac85d574dc3b53ee448a5b2f27e3 · keenan · 7d ago
README.md +59
| @@ -0,0 +1,59 @@ | |||
| 1 | # Vole Homebrew tap | ||
| 2 | |||
| 3 | A [Homebrew](https://brew.sh) tap for | ||
| 4 | [Vole](https://rodent.software/vole), the forge that lives in your Git | ||
| 5 | repository. It installs the standalone macOS binary the release already builds; | ||
| 6 | there are no other files to install, so the formula is a single static | ||
| 7 | executable plus a `service` block. | ||
| 8 | |||
| 9 | ## Install | ||
| 10 | |||
| 11 | ```sh | ||
| 12 | brew tap rodent-software/homebrew-tap | ||
| 13 | brew install vole | ||
| 14 | brew services start vole | ||
| 15 | ``` | ||
| 16 | |||
| 17 | Replace `rodent-software/homebrew-tap` with the tap's clone URL if you are | ||
| 18 | serving it from your own instance. The formula installs `vole` from the release's | ||
| 19 | own `vole-darwin-arm64` (Apple Silicon) or `vole-darwin-amd64` (Intel) artifact, | ||
| 20 | pinned against that release's `SHA256SUMS`. | ||
| 21 | |||
| 22 | `brew upgrade vole` replaces the binary when the tap is bumped. | ||
| 23 | |||
| 24 | ## What the service does | ||
| 25 | |||
| 26 | `brew services start vole` runs `vole serve` as a LaunchAgent. A LaunchAgent | ||
| 27 | cannot bind a privileged port, so the forge listens on the default unprivileged | ||
| 28 | SSH (`127.0.0.1:2222`) and HTTP (`127.0.0.1:8080`) addresses. Put the | ||
| 29 | [system sshd in front of Vole](https://rodent.software/vole/deploy/#put-sshd-in-front-of-vole) | ||
| 30 | for a portless clone URL, or use | ||
| 31 | [socket activation](https://rodent.software/vole/deploy/) for HTTPS on 443. | ||
| 32 | A LaunchAgent also stops when the user logs out; a machine-wide LaunchDaemon is a | ||
| 33 | separate install described in the deployment docs. | ||
| 34 | |||
| 35 | ## Bumping a release | ||
| 36 | |||
| 37 | `Formula/vole.rb` pins one release at a time: its `version` and the two `sha256` | ||
| 38 | values must agree with that release's `SHA256SUMS`. To move the tap to a new | ||
| 39 | release: | ||
| 40 | |||
| 41 | ```sh | ||
| 42 | scripts/autobump.sh # the newest release | ||
| 43 | scripts/autobump.sh v0.2.0 # a specific tag | ||
| 44 | git diff # review the version and checksums | ||
| 45 | git commit -am "Bump vole to v0.2.0" && git push | ||
| 46 | ``` | ||
| 47 | |||
| 48 | `autobump.sh` reads the release's `SHA256SUMS`, downloads each darwin asset, and | ||
| 49 | refuses to write a checksum that does not match what it downloaded. A release | ||
| 50 | whose `SHA256SUMS` disagrees with its artifacts fails the bump, so it can never | ||
| 51 | fail an install. The script only edits the formula; committing and pushing are | ||
| 52 | yours, so a bot never writes to the tap on its own. | ||
| 53 | |||
| 54 | ## Repository layout | ||
| 55 | |||
| 56 | ```text | ||
| 57 | Formula/vole.rb the formula | ||
| 58 | scripts/autobump.sh refresh version and checksums from SHA256SUMS | ||
| 59 | ``` | ||