cmd/vulncheck_sandbox: categorize package loading errors

This is achieved indirectly by forcing the load.Packages function to
classify loading errors. This in turn implies some naming changes to the
error constants in derrors package.

The rationale for this approach is that package loading is irrespective
of the overall analysis, so these analyses should classify the errors
the same way.

Change-Id: I00c0dfeea816ccc7e5d8942f14a9b7be75251524
Reviewed-on: https://go-review.googlesource.com/c/pkgsite-metrics/+/473396
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
3 files changed
tree: 5b99425595330820bcaceea602dc5434339b18af
  1. cmd/
  2. deploy/
  3. devtools/
  4. internal/
  5. static/
  6. terraform/
  7. .dockerignore
  8. .gitignore
  9. all_test.go
  10. checks.bash
  11. config.json.commented
  12. CONTRIBUTING.md
  13. go.mod
  14. go.sum
  15. LICENSE
  16. Makefile
  17. PATENTS
  18. README.md
  19. tools_test.go
README.md

pkgsite-metrics

This repository contains code that serves pkg.go.dev/metrics.

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/pkgsite-metrics:” in the subject line, so it is easy to find.