cooldown

Supported ecosystems

On this page

cooldown auto-detects the package managers in a directory and drives each one with the same commands and config. Every package manager is its own --tool, with a page of its own:

Ecosystem--toolRegistryReads
Rustcargocrates.ioCargo.toml / Cargo.lock
GogoGOPROXYgo.mod / go.sum
Python (uv)uvPyPIpyproject.toml / uv.lock
Python (pip)pipPyPIrequirements.txt
Python (Poetry)poetryPyPIpyproject.toml / poetry.lock
Python (conda)condaanaconda.org (+ PyPI)conda-lock.yml
Python (pixi)pixianaconda.org (+ PyPI)pixi.lock
npmnpmnpm registrypackage.json / package-lock.json
pnpmpnpmnpm registrypnpm-lock.yaml
Yarn (Classic v1 and Berry v2+)yarnnpm registryyarn.lock
Bunbunnpm registrybun.lock
Denodenonpm + JSRdeno.json / deno.lock
Rubybundlerrubygems.orgGemfile / Gemfile.lock
Elixirhexhex.pmmix.exs / mix.lock
Java (Maven)mavenMaven Centralpom.xml
Java (Gradle)gradleMaven Centralgradle.lockfile
SwiftswiftGitHub ReleasesPackage.resolved

Aliases are accepted wherever a --tool name is, and each names exactly one tool:

  • crates, rust: cargo
  • golang: go
  • pypi, python: uv
  • mamba, micromamba: conda
  • spm, swiftpm: swift
  • node, js, javascript, typescript: npm
  • bundle, ruby, gem, rubygems: bundler
  • mix, elixir: hex
  • mvn: maven

Note

To act on an ecosystem, its native tool must be installed and on your PATH. Ecosystems you don’t use need nothing: detection skips them. See Getting started.

How each is driven#

cooldown never treats a native package manager as the source of policy. The cooldown verdict is computed in one core evaluator, the same for every ecosystem. The native tool is used only to resolve a lockfile graph and to apply changes back to it. That keeps “adoptable” identical across ecosystems.

One generic adapter is specialised per lockfile format. Publish times come from each registry’s own metadata:

  • Go: GOPROXY @v/<ver>.info.
  • Rust: crates.io.
  • Python: PyPI and anaconda.org.
  • JavaScript: the npm registry and JSR.
  • SwiftPM: GitHub Releases.

Adapters that mix registries resolve each dependency against its own source: Deno’s npm: and jsr:, conda and PyPI, pixi and PyPI.

Registries and native cooldowns#

Some ecosystems already ship a native cooldown:

  • uv: exclude-newer
  • pnpm: minimumReleaseAge
  • Yarn: npmMinimalAgeGate
  • Cargo: min-publish-age

Where one exists, cooldown sync (or the global --sync flag) writes the resolved policy down into that native config. cooldown.toml stays the single source of truth, and the native tool sees the same window you set once.

Which binary runs#

cooldown runs each package manager as the program its name finds on PATH. COOLDOWN_<BIN> names a different program, with the binary’s name in upper case and - spelled _: COOLDOWN_CARGO, COOLDOWN_GO, COOLDOWN_UV, COOLDOWN_PNPM. Each tool’s page names the binaries it runs.

When PATH leads to a mise⁠ shim, every command first runs mise, which picks the tool and its environment for the command’s directory. That costs tens of milliseconds per call, and a cargo upgrade makes hundreds of calls. cooldown still goes through the shim, because the shim also applies the environment, wrappers and installs from the project’s mise.toml, and a direct call would skip them.

A tool that mise does not manage reaches its real binary through the shim’s fallback anyway, so naming that binary directly loses nothing and skips the overhead. For a rustup-managed cargo, set COOLDOWN_CARGO="$HOME/.cargo/bin/cargo", or put ~/.cargo/bin ahead of mise’s shims on PATH.

An override names a program and nothing else. It applies no mise environment, so use it only for a tool whose mise configuration you do not need.

Several ecosystems at once#

In a polyglot repository every detected ecosystem runs in its own lane, and the lanes run concurrently: while cargo waits on crates.io, uv is already resolving against PyPI, whether they live in different directories or share one. A lane runs its own projects one after another, since concurrent invocations of one package manager block on that manager’s own cache lock.

Some work still takes turns:

  • Ecosystems that rewrite the same manifest: only these take turns under upgrade, fix, or --lock. uv and poetry both own pyproject.toml, and every npm-family tool owns package.json, so two of them at one root, or one nested in the other’s workspace, run in turn. --dry-run mutates a throwaway copy, so it reads side by side too.
  • --build steps: run one at a time across ecosystems, since every ecosystem installs into the environment shared at a root (node_modules, .venv).
  • Upgrades of tools whose native command installs as it pins (poetry add, conda install, swift package update): run one at a time too, and so does outdated’s preview of such an update, which runs the same command on a copy.

--jobs <N> caps how many ecosystems run at once; --jobs 1 runs them one after another. The reports, their order, and the exit code are the same as a sequential run’s. The interactive progress display shows one block per live ecosystem, and the plain transcript names the tool and project on every per-project line.

Scoping to a subset#

In a polyglot repository, restrict a run to one or more ecosystems with --tool, repeatable or comma-separated:

cooldown outdated --tool cargo,go
cooldown check --tool uv

--cargo is a shorthand for --tool cargo. It is the right default for a Rust workspace living inside a polyglot monorepo, since it skips detecting and enumerating everything else. When no --tool is given, every detected ecosystem is included.

Esc

Type # for headings only ↑↓ move ↵ open Ctrl ↵ new tab Ctrl U/D scroll preview

Keyboard shortcuts

/ ⌘ K Ctrl K
Search
← →
Previous or next page
?
Show these shortcuts