Repository navigation
fix(linux): pre-release audit hardening and cross-CLI parity - #2244
Merged
Merged
Conversation
Close pre-release audit gaps in Mole CLI (Linux): - Port macOS e20f61f (#2224) hardlink subtree cache safety: track fileSizeAttribution / hasSharedFiles and bump cacheSchemaVersion to 14 so subtrees containing shared hardlinks are never disk-cached and cannot double-count on repeat scans. - Protect coursier and pdm in mole_app_cache_name_kind so Flatpak/Snap app-cache sweeps never remove Coursier JDK/sbt caches or PDM packages/plugins. - Ignore top-level .vite, .vite-temp and .vitest-cache in mole_purge_node_modules_kept (parity with macOS #2197). - Guard $DATA_HOME/appfiles and $DATA_HOME/appfiles/mole.json against symlinks in install.sh. - Switch subtle UI gray to ANSI faint (\033[0;2m) in lib/core/base.sh and cmd/analyze/constants.go, and reserve trailing hint space on 90-121 col terminals in cmd/analyze/view.go. - Update SYNC.md (fix stale Windows GOFLAGS note and record 2026-12-05 parity rows). Verified locally with gofmt, GOOS=linux go build ./cmd/..., GOOS=linux go test -c ./cmd/analyze, shellcheck, check_guidance_budget.py, and check_source_bans.py --self-test; native Arch Linux Bats and Go tests verified by Linux CI on this PR.
tw93
force-pushed
the
fix/linux-pre-release-audit
branch
from
December 5, 2026 02:58
d8f56cd to
97d4749
Compare
tw93
added a commit
that referenced
this pull request
Dec 5, 2026
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.
Pre-release audit hardening and cross-CLI parity pass for Mole CLI (Linux):
e20f61f6(fix(analyze): avoid double-counting hard links with cached subtrees #2224): trackhasSharedFiles/fileSizeAttributionand bumpcacheSchemaVersion13 -> 14 so subtrees with shared hardlinks are never disk-cached.coursierandpdminmole_app_cache_name_kind..vite,.vite-temp,.vitest-cacheinmole_purge_node_modules_kept(fix(purge): ignore Vite and vitest caches as node_modules edits #2197 parity).$DATA_HOME/appfilesandmole.jsonagainst symlinks ininstall.sh.\033[0;2m) for subtle gray and reserve trailing hint space on 90-121 col terminals inmo analyze.SYNC.md.