Skip to content

v0.12.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 16:25
· 12 commits to main since this release

Keep the local folder

A tool can delete the link and write its cache folder again. The move then
cannot run, because the folder is no longer a link. The rollback cannot run
either, because the local folder no longer matches the copy.

exodrive rollback --keep-local <item> ends that state. Exodrive deletes the
copy on the drive, keeps the folder on this Mac, and removes the ledger
record.

exodrive rollback --keep-local dart.pub-cache

The window offers the same action on a failed card. Select Keep the local
folder
, then confirm.

The command refuses three cases, so a record never goes while the data is out
of reach:

  • The path still links to the copy. Run the rollback instead.
  • The original folder is gone. Run the rollback from the drive.
  • The drive is not reachable. Connect the drive first.

The process lock no longer blames the shell

Exodrive stopped a conda move with conda is running (PID: …) when no conda
command ran. The lock read the whole command line, so the shell that started
Exodrive matched its own text.

The check now reads the program and the paths that name a tool. It skips the
processes above Exodrive. A tool that runs through an interpreter is still
found: node …/npm-cli.js, python -m pip, and the Gradle daemon class.

Evidence

A fixture home held one Dart package cache. The released v0.12.0 binary moved
it by link. A simulated tool then wrote the folder again.

Step Result
migrate --tools=dart.pub-cache Moved by link, record written
Tool writes the folder again Local folder is real, copy holds 2 files
rollback dart.pub-cache Exit code 1: exists and differs from …
rollback --keep-local dart.pub-cache Exit code 0, copy deleted, records: {}

The lock checks used the same fixture:

  • A sibling shell whose command line held grep -i dart did not stop the
    move. The move succeeded with exit code 0. This command reproduces the
    v0.11.0 false positive.
  • A live /bin/sh /tmp/exo-v12/bin/dart stopped the move with exit code 1:
    preflight failed: dart is running (PID: 3207): stop it before migration.

Known limit

A scan measures the size of every cache that it finds. A large Go module store
or pnpm store adds seconds to exodrive check. The move itself touches only
the selected cache.