Skip to content

Guides

How to cache toolchain managers

mise, asdf or proto reinstall language runtimes on every run.

4 min read

mise, asdf or proto reinstall language runtimes on every run.

Why it happens

The tool's install directory is not cached, so each runtime is downloaded and often compiled again.

How to fix it

  1. Cache the tool's install directory keyed on the version file
  2. Pin exact versions so the cache key is stable
  3. Prefer prebuilt runtimes over compiling from source in CI

Your next build could be twice as fast, at half the price

Start free. Migrating away is the same one line, and we publish that diff too.