Skip to content

v0.11.0: Dart, Android, Conda, and Homebrew caches

Choose a tag to compare

@github-actions github-actions released this 13 Nov 15:44
· 13 commits to main since this release

Dart, Android, Conda, and Homebrew caches

Four new providers move the caches that these toolchains leave behind.

Provider What moves
Dart and Flutter hosted/ and git/ under the pub cache
Android ~/.android/build-cache
Conda Every package folder that conda info reports
Homebrew downloads/ under the Homebrew cache

Every row moves by symbolic link, so the tool keeps its path.

exodrive check
exodrive migrate --target=/Volumes/External/exodrive --tools=dart,homebrew

The window rail gains a Mobile group and a Homebrew group. Conda
appears under Python.

What stays on this Mac

Dart and Flutter keep bin/ and global_packages/ on the internal disk. A
global command on PATH keeps working when the drive is away.

Homebrew keeps api/. Every brew command reads the formula index there.

Android keeps the emulator data. An emulator on another volume runs far
slower.

Conda asks the tool

Exodrive reads the package folders from conda info --json. It never guesses
a prefix. A missing tool adds no card, and a reply that it cannot read is an
error on the scan.

A package cache keeps its ID when another cache appears or goes away. The ID
comes from the path, not from the position in the list.

conda hardlinks packages into an environment on the same volume. Across
volumes it copies them, so an environment uses more space. The card says so.

Process locks

A move stops while the tool runs:

  • Dart and Flutter: dart, flutter, or pub.
  • Android: gradle or the Gradle daemon. Run gradle --stop first.
  • Conda: conda, mamba, or micromamba.
  • Homebrew: brew.

Evidence

A fixture home moved 5 caches by link: Dart hosted and git, the Android build
cache, one conda package folder, and the Homebrew downloads. All 5 copies
verified. A damaged byte in one copy showed changed and exit code 1. All 5
rollbacks restored the folders and emptied the ledger.

On a real Mac, the Homebrew download cache (199.5 MB, 5 files) moved by link.
verify --all reported ok, and brew --cache jq returned a path through
the link. The rollback restored the folder (200 MB) and left the ledger empty.