Skip to content

Releases

v0.2.3

Choose a tag to compare

@github-actions github-actions released this 02 Dec 07:23
ab42cdf
  • prune is 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 GOMODCACHE ending in / made prune treat every extracted module as unused.
  • replace, go and toolchain lines in go.mod and go.work are always honoured, even when a go.mod uses directives this build doesn't know.
  • prune keeps every version go.work replaces point to.
  • prune stops with a message if dedupe is running on the same cache, instead of racing it.

v0.2.2

Choose a tag to compare

@github-actions github-actions released this 02 Dec 06:53
28a5f08
  • prune keeps every version a go.mod requires or replaces with, not only what go.sum lists, so a fresh go get that hasn't been built yet is safe past the 24h -min-age.
  • dedupe stops on a failed chmod or chtimes instead of ignoring it.
  • stats no longer merges files it couldn't read into one count.

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 02 Dec 06:46
f5ca6f5
  • prune keeps modules no proxy serves (GOPRIVATE, GONOPROXY, or GOPROXY without a proxy): if their repo or tag is gone they can't be downloaded again. -private prunes them anyway.
  • stats counts shared data by content hash, so it stays right after prune deletes a file other clones came from.
  • prune makes the next dedupe -new rebuild its index, so new downloads still find a clone source.

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 02 Dec 06:39
0472ebd
  • modvac stats: real disk use of the cache. du counts 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 dedupe only touches new downloads, like on macOS.
  • modvac init fish for 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

Choose a tag to compare

@vietddude vietddude released this 02 Dec 06:20
eb503d0

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 runs dedupe -new in the background after every go command.

Install: go install github.com/vietddude/modvac@v0.1.0