Repository navigation
Releases
Releases · vietddude/modvac
v0.2.3
pruneis about 3x faster: it only sizes versions it reports, and skips folders that hold tool state (.gradle,.cargo,.rustup,.npm, ...). Hidden folders that can hold projects (~/.go, agent worktrees) are still searched.- Fix: a
GOMODCACHEending in/madeprunetreat every extracted module as unused. replace,goandtoolchainlines ingo.modandgo.workare always honoured, even when ago.moduses directives this build doesn't know.prunekeeps every versiongo.workreplaces point to.prunestops with a message ifdedupeis running on the same cache, instead of racing it.
v0.2.2
prunekeeps every version ago.modrequires or replaces with, not only whatgo.sumlists, so a freshgo getthat hasn't been built yet is safe past the 24h-min-age.dedupestops on a failed chmod or chtimes instead of ignoring it.statsno longer merges files it couldn't read into one count.
v0.2.1
prunekeeps modules no proxy serves (GOPRIVATE, GONOPROXY, or GOPROXY without a proxy): if their repo or tag is gone they can't be downloaded again.-privateprunes them anyway.statscounts shared data by content hash, so it stays right afterprunedeletes a file other clones came from.prunemakes the nextdedupe -newrebuild its index, so new downloads still find a clone source.
v0.2.0
modvac stats: real disk use of the cache.ducounts every clone in full; stats asks the filesystem which bytes are shared (getattrlist on APFS, FIEMAP on Linux).- Linux: files already sharing their data are detected via FIEMAP, so re-running
dedupeonly touches new downloads, like on macOS. modvac init fishfor fish users.- CI runs the clone tests on real APFS, XFS and btrfs.
- Prebuilt binaries for macOS and Linux (amd64, arm64), and
brew install vietddude/tap/modvac.
v0.1.0
First release.
modvac prune: remove module versions that no go.sum, go.work.sum, go.mod or go.work under your home folder (or given roots) uses.modvac dedupe: store identical files once as copy-on-write clones (APFS, btrfs, XFS), with a pnpm-style hash index.modvac dedupe -new: only versions downloaded since the last run; under a second when nothing changed.modvac init: shell function that runsdedupe -newin the background after everygocommand.
Install: go install github.com/vietddude/modvac@v0.1.0