Setting Up
This walkthrough takes a fresh clone of the repository to a built store, the point every match starts from, and Matching a Game carries on from there with a game of your own. Each step below names the command it runs, and each output it quotes is written by mise run docs:render.
The Install Steps
Scotch runs from a clone of its repository, with mise installing the tools .mise/config.toml pins, the Python interpreter and uv among them. After installing mise, the commands below clone the repository, print the help of the scotch command, and report anything the clone still needs:
bash
git clone --filter=blob:none https://github.com/Jybbs/scotch.git
mise trust scotch
mise -C scotch install
cd scotch
scotch --help
mise doctor projectEach line does what the list below sets out, written from the package's own metadata by mise run docs:render:
git clone --filter=blob:none https://github.com/Jybbs/scotch.gitclones the repository, leaving out every earlier layout of the game store the history keeps, which git downloads only where a checkout reaches itmise trust scotchmarks the clone's.mise/config.tomltrusted, so mise loads it rather than prompting, skipping the file, or failing with an untrusted-config errormise -C scotch installinstalls each tool.mise/config.tomlpins, the Python interpreter, uv, and the Rust toolchain among themcd scotchenters the clone, where mise puts uv and the wrapper at.mise/bin/scotchon the pathscotch --helpbuilds.venvfromuv.lockon the wrapper's first run, compiling the crate underrust/, then prints the command's helpmise doctor projectruns each check.mise/config.tomldeclares and prints the step that clears any that fails
Checking the Clone
mise doctor project runs each check the [doctor.checks] tables of .mise/config.toml declare, printing PASS or FAIL beside the check's name and condition, and beneath a failing check the step that clears it, then exits with status 1 where any check fails, as mise's project diagnostics set out. The site-packages and tests-link checks fail until mise run site:install installs the site's packages, which only a contributor to the site needs. The table below is written from those tables by mise run docs:render.
| Check | Passes Where | Prints Where It Fails |
|---|---|---|
bun-lock | docs/bun.lock matches docs/package.json | mise relock |
cargo-lock | rust/Cargo.lock matches rust/Cargo.toml | mise relock |
mise-lock | .mise/mise.lock matches .mise/config.toml | mise relock |
script-locks | Each task script's lockfile matches the script's inline metadata | mise relock |
site-packages | docs/node_modules exists | mise run site:install |
tests-link | tests/node_modules links to docs/node_modules | mise run site:install |
uv-lock | uv.lock matches pyproject.toml | mise relock |
venv | .venv exists and runs on the Python interpreter mise pins | mise x -- uv venv --clear .venv && mise x -- uv sync |
Building the Store
A fresh clone holds no games, so two tasks build the store under .cache/data, which git leaves untracked. mise run data:fetch runs scotch fetch games, downloading each file src/scotch/sources/sources.toml declares, and mise run data:index runs scotch index games, reading every game of those files into the index a match reads. The downloads take 1.1 GB on disk and the index 459.9 MB, each measured under the data directory by mise run docs:render, and The Store sets out what each task writes there.
A Step That Stops
Each command stops with a message on stderr and a nonzero exit where the clone or the store is not ready for it, such as scotch index games before any file is fetched or scotch match game before the index is built. The Commands sets out every message each command exits on and the step that clears it, under scotch fetch games, scotch index games, and scotch match game.
With the index built, Matching a Game matches a game of your own against it.