mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-11-28 06:46:26 +00:00
Each govulncheck scan resolves the full dependency tree of the module. The scanner kept these modules in the shared Go module cache. On the deployed host that cache grew to 13G, which is nine times the size of the packages the proxy serves. The scan now sets GOMODCACHE to a directory inside its temp dir. The directory is deleted when the scan ends. GOFLAGS adds -modcacherw, because Go makes the module cache read-only and RemoveAll cannot delete it otherwise. A failed delete is logged.