Files
gohoarder/pkg/scanner
lukaszraczylo 7fcbbcab0b fix(scanner): delete the modules govulncheck downloads after each scan
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.
2026-11-27 13:51:31 +00:00
..