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/install.md +17−4
| @@ -10,7 +10,7 @@ on macOS from a standalone binary. Packages and binaries are available for | |||
| 10 | 10 | | [Package repository by hand](#add-the-repository-by-hand) | Inspecting each change to the package manager | `sudo` access | | |
| 11 | 11 | | [Package file](#install-a-package-file) | Installing without adding a repository | `sudo` access | | |
| 12 | 12 | | [Release binary](#install-a-release-binary) | A user-local installation on Linux | Git | | |
| 13 | | [Install on macOS](#install-on-macos) | A Mac client, or a laptop forge | Git | | ||
| 13 | | [Install on macOS](#install-on-macos) | A Mac client, or a laptop forge | `curl` or `wget`, and `sudo` for a system install | | ||
| 14 | 14 | | [Build from source](#build-from-source) | Developing Vole or using an unsupported platform | Go and Git | | |
| 15 | 15 | ||
| 16 | 16 | ## Install with the install script | |
| @@ -22,7 +22,8 @@ curl -fsSL https://rodent.software/vole/channels/stable/install.sh | sudo sh | |||
| 22 | 22 | The script detects your distribution and architecture, installs the release key | |
| 23 | 23 | and a package source, and runs the matching package manager. It writes ordinary | |
| 24 | 24 | repository configuration, so later upgrades stay `apt upgrade`, `dnf upgrade`, or | |
| 25 | `pacman -Syu`. | ||
| 25 | `pacman -Syu`. On macOS there is no package manager to hand the install to, so it | ||
| 26 | installs the release binary itself; see [Install on macOS](#install-on-macos). | ||
| 26 | 27 | ||
| 27 | 28 | To read it before running it: | |
| 28 | 29 | ||
| @@ -164,8 +165,20 @@ On ARM, replace `vole-linux-amd64` with `vole-linux-arm64`. Make sure | |||
| 164 | 165 | ||
| 165 | 166 | ## Install on macOS | |
| 166 | 167 | ||
| 167 | macOS binaries are cross-compiled on Linux and attached to each release. There | ||
| 168 | is no Homebrew formula yet, so install the binary into `~/.local/bin`: | ||
| 168 | macOS binaries are cross-compiled on Linux and attached to each release. The | ||
| 169 | install script detects macOS and installs the matching binary after checking it | ||
| 170 | against the release's `SHA256SUMS`: | ||
| 171 | |||
| 172 | ```sh | ||
| 173 | curl -fsSL https://rodent.software/vole/channels/stable/install.sh | sh | ||
| 174 | ``` | ||
| 175 | |||
| 176 | Without `sudo` it installs into `~/.local/bin`, so it changes nothing outside | ||
| 177 | your home directory; run it under `sudo` to install into `/usr/local/bin` for the | ||
| 178 | whole machine. If Homebrew already manages `vole`, the script refuses and points | ||
| 179 | at `brew upgrade vole`; there is no Homebrew formula for Vole yet. | ||
| 180 | |||
| 181 | To install the binary by hand instead: | ||
| 169 | 182 | ||
| 170 | 183 | ```sh | |
| 171 | 184 | curl -fLO https://rodent.software/vole/channels/stable/vole-darwin-arm64 | |