Files
syft/syft/pkg
idhyt 1401107138 fix(go-module-cataloger): use correct error variable in package load loop (#4983)
In the loop over `rootPkgs`, the error appended to `unknownErr` was incorrectly
using the outer `err` (from `packages.Load`) instead of the individual package
error `e`. This could cause:
- nil or stale error values to be recorded when package-specific errors existed.
- Loss of detailed per-package error information in the final error report.

Changed `unknown.Append(..., err)` to `unknown.Append(..., e)` to properly
capture each package's load error.

Signed-off-by: idhyt <idhyt3r@gmail.com>
2026-10-26 15:05:27 +00:00
..
…
2026-04-15 10:01:39 -04:00
2026-06-30 10:32:57 -04:00
…
…
…
…
2026-06-23 10:58:22 -04:00
…
…
…
2026-04-15 10:01:39 -04:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…