Skip to content

fix(linux): pre-release audit hardening and cross-CLI parity - #2244

Merged
tw93 merged 1 commit into
linuxfrom
fix/linux-pre-release-audit
Dec 5, 2026
Merged

tw93 merged 1 commit into
linuxfrom
fix/linux-pre-release-audit

Conversation

@tw93

@tw93 tw93 commented Dec 5, 2026

Copy link
Copy Markdown
Owner

Pre-release audit hardening and cross-CLI parity pass for Mole CLI (Linux):

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
tw93 force-pushed the fix/linux-pre-release-audit branch from d8f56cd to 97d4749 Compare December 5, 2026 02:58
@tw93
tw93 merged commit 2dbfea3 into linux Dec 5, 2026
3 checks passed
@tw93
tw93 deleted the fix/linux-pre-release-audit branch December 5, 2026 03:03
tw93 added a commit that referenced this pull request Dec 5, 2026
… in ledger

Records 2dbfea3 (#2244) and 6de8bca (#2249) devbox x86_64 Go/291 Bats/archive
E2E and remote 3/3 CI verification.
Verified: check_guidance_budget.py and check_source_bans.py --self-test pass.
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.

1 participant