fix: thorough cleanup for aube cache/store/local state + audit pnpm cleanup#93
Merged
darcyclarke merged 1 commit intomainfrom Apr 20, 2026
Merged
fix: thorough cleanup for aube cache/store/local state + audit pnpm cleanup#93darcyclarke merged 1 commit intomainfrom
darcyclarke merged 1 commit intomainfrom
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #91. Fixes cache/store cleanup for aube and audits pnpm cleanup.
Aube cleanup was completely broken:
aube cache cleandoesn't exist — correct command isaube cache delete '*'~/.local/share/aube). Actual locations:~/.cache/aube/— packument metadata + virtual-store (146MB+)~/.aube-store/— global content-addressable store (78MB+).aube/— project-local install statepnpm gaps found and fixed:
pnpm store pathreturns versioned dir but sibling versions were never cleaned~/.cache/pnpm/metadata cache (110MB+) wasn't being fully wipedCo-authored-by: Darcy Clarke darcy@darcyclarke.com