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.

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

RELEASING.md +5−2

@@ -196,8 +196,11 @@ committed key at `packaging/keys/vole-release.asc` before trusting it.
196 196
197 197 The release attaches `install.sh` beside the key. It is the one-command client
198 198 for the channel: it detects the distribution, writes the same key and source
199 lines the install docs show, and hands the install to the package manager. It
200 pins the committed key's SHA-256 and fingerprint in `packaging/install.sh`, and
199 lines the install docs show, and hands the install to the package manager. On
200 macOS it installs the release binary into `/usr/local/bin` as root or
201 `~/.local/bin` otherwise, after checking it against the release's `SHA256SUMS`,
202 and it refuses when Homebrew already owns `vole`. It pins the committed key's
203 SHA-256 and fingerprint in `packaging/install.sh`, and
201 204 the release publishes that committed file verbatim so the pin is exact. Rotating
202 205 the release key therefore means updating both constants in the same change;
203 206 `scripts/check-install.sh` fails when they disagree.