Skip to content

Installation

alint ships as a single static Rust binary — no runtime, no JVM, nothing else to install. Pick whichever path matches your environment.

install.sh (Linux + macOS + Windows tarballs)

Section titled “install.sh (Linux + macOS + Windows tarballs)”
Terminal window
curl -sSL https://raw.githubusercontent.com/asamarts/alint/main/install.sh | bash

Detects platform (Linux / macOS, x86_64 / aarch64), downloads the matching tarball from GitHub Releases, verifies the SHA-256, and installs to $INSTALL_DIR (default ~/.local/bin). Windows users download the Windows tarball from the Releases page directly.

Terminal window
brew tap asamarts/alint
brew install alint

The asamarts/homebrew-alint tap is auto-updated on every release. The formula resolves the matching pre-built tarball for your platform, verifies its SHA-256, and installs to the Homebrew cellar.

A distroless multi-arch image (linux/amd64, linux/arm64) is published to ghcr.io on each release:

Terminal window
# Lint the current directory:
docker run --rm -v "$PWD:/repo" ghcr.io/asamarts/alint:latest
# Pin to an exact version:
docker run --rm -v "$PWD:/repo" ghcr.io/asamarts/alint:v0.9.20 check

The image runs as the distroless nonroot user (UID 65532); host files must be world-readable. To apply fixes and preserve host ownership, pass -u:

Terminal window
docker run --rm -u $(id -u):$(id -g) -v "$PWD:/repo" ghcr.io/asamarts/alint:latest fix

Also published: :<major>.<minor> (e.g. :0.9) and the raw git tag (:v0.9.20).

Terminal window
cargo install alint

Builds from source against the current stable Rust toolchain. Requires cargo already on $PATH.

Terminal window
git clone https://github.com/asamarts/alint
cd alint
cargo build --release -p alint
./target/release/alint --help

Useful when you want to track main between releases or are contributing patches.

Terminal window
alint --version

Should print alint <version> matching the channel you installed from.