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.
Install Vole on macOS from the install script
a4a6d1e9fadeb929dc7ace3728032e94eda1a7e2 · Keenan Nemetz · 12d ago · parent 629df77e
Install Vole on macOS from the install script The script required /etc/os-release and stopped on macOS, which left macOS instructions as a manual curl into ~/.local/bin. Once the release publishes darwin binaries (#346) the script can install them: it maps uname's arm64 and x86_64 to the asset names, installs into /usr/local/bin as root or ~/.local/bin otherwise, and checks the download against the release's SHA256SUMS before writing anything. --root installs under <root>/usr/local/bin, which is what an image build or a test wants. There is no package manager to defer to on macOS, so the script does the checking itself. SHA256SUMS comes from the host that served the binary, so it authenticates the transfer but not the release; the detached signature over that list needs gpg, which a stock macOS does not ship, so the script says which check it made and points at the documented signature steps. It refuses when Homebrew already owns vole, because two copies shadow each other in PATH order, and --repo-only is refused because there is no repository to configure on macOS. scripts/check-install.sh fakes uname, curl, and brew with fixtures, so both architectures, a pinned --version, a mismatched checksum, --repo-only, an unsupported operating system, a user install under $HOME, and the Homebrew refusal all run on Linux CI. The Linux cases and their assertions are unchanged. Closes: 01M7ZFNQYF4QAJK1B3ZQN16881
docs/packaging.md +7−4
| @@ -22,10 +22,13 @@ the channel picks the new version up with its next upgrade. | |||
| 22 | 22 | Each release also attaches `install.sh`, served at | |
| 23 | 23 | `/<repo>/channels/<channel>/install.sh`. It writes the key and source lines | |
| 24 | 24 | above for the distribution it detects, then runs the package manager; on an | |
| 25 | unsupported distribution it stops and points at the manual commands. The | ||
| 26 | armored copy it downloads is `packaging/keys/vole-release.asc` verbatim, and the | ||
| 27 | script pins that file's SHA-256 and the key fingerprint, so rotating the release | ||
| 28 | key means updating both constants in the same change. | ||
| 25 | unsupported distribution it stops and points at the manual commands. On macOS it | ||
| 26 | installs the release binary into `/usr/local/bin` as root or `~/.local/bin` | ||
| 27 | otherwise, after checking it against `SHA256SUMS`, and it refuses when Homebrew | ||
| 28 | already owns the `vole` command. The armored copy it downloads is | ||
| 29 | `packaging/keys/vole-release.asc` verbatim, and the script pins that file's | ||
| 30 | SHA-256 and the key fingerprint, so rotating the release key means updating both | ||
| 31 | constants in the same change. | ||
| 29 | 32 | ||
| 30 | 33 | ### Repository signature verification | |
| 31 | 34 | ||