Skip to content

fix: thorough cleanup for aube cache/store/local state + audit pnpm cleanup#93

Merged
darcyclarke merged 1 commit intomainfrom
darcy/fix-aube-cleanup
Apr 20, 2026
Merged

fix: thorough cleanup for aube cache/store/local state + audit pnpm cleanup#93
darcyclarke merged 1 commit intomainfrom
darcy/fix-aube-cleanup

Conversation

@vltbaudbot
Copy link
Copy Markdown
Contributor

Follow-up to #91. Fixes cache/store cleanup for aube and audits pnpm cleanup.

Aube cleanup was completely broken:

  • aube cache clean doesn't exist — correct command is aube cache delete '*'
  • Was targeting wrong dir (~/.local/share/aube). Actual locations:
    • ~/.cache/aube/ — packument metadata + virtual-store (146MB+)
    • ~/.aube-store/ — global content-addressable store (78MB+)
    • .aube/ — project-local install state
  • In "clean" fixtures, aube had ~224MB of cached data persisting between runs

pnpm gaps found and fixed:

  • Cross-version store remnants: pnpm store path returns versioned dir but sibling versions were never cleaned
  • ~/.cache/pnpm/ metadata cache (110MB+) wasn't being fully wiped

Co-authored-by: Darcy Clarke darcy@darcyclarke.com

…leanup

Aube cleanup was broken:
- aube cache clean doesn't exist (the correct command is aube cache delete)
- $HOME/.local/share/aube was targeted but aube uses $HOME/.cache/aube
  (packument metadata, package index, virtual-store) and $HOME/.aube-store
  (global content-addressable store)
- .aube/ project-local state dir was never cleaned between runs

Changes:
- Split aube cleanup into clean_aube_metadata_cache (packuments only, for
  granular use) and clean_aube_cache (full wipe of cache + store)
- Add .aube/ removal to clean_package_manager_files (local install state)
- Add .aube to .gitignore

pnpm cleanup gaps fixed:
- pnpm store path returns a versioned dir (e.g. store/v10) but the sibling
  version dir (store/v11) was never cleaned — and vice versa. Now both
  functions wipe the entire $HOME/.local/share/pnpm/store parent.
- Similarly, $HOME/.cache/pnpm (metadata cache) is now removed in full
  rather than relying solely on pnpm cache delete which only removes
  individual package metadata entries.
- Quote the glob argument ('*') to prevent shell expansion under set -e.

Co-authored-by: Darcy Clarke <darcy@darcyclarke.com>
@darcyclarke darcyclarke merged commit cd8477e into main Apr 20, 2026
46 checks passed
@darcyclarke darcyclarke deleted the darcy/fix-aube-cleanup branch April 20, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants