internal/worker: extend the the notion of unrecoverable error

So far, unrecoverable errors for govulncheck were those where a go.mod
file is missing, i.e., the project is not a module. As of recently, we
can also be certain that a project is simply not buildable, i.e., go
build ./... would effectively fail. We now skip analyzing such projects
as well.

Note that we will skip such projects only if their latest version has
not changed. Otherwise, we will re-analyze the project. In practice,
this saves a lot of computation since projects that do not build or do
not have go.mod file are, for the most part, either not maintained or
rarely updated.

Change-Id: Ibc24988840b115c235074c3324a24217230a2cdf
Reviewed-on: https://go-review.googlesource.com/c/pkgsite-metrics/+/502136
Reviewed-by: Maceo Thompson <maceothompson@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
4 files changed
tree: b7260dde6b4526e8fc069eed06c34b876435ee25
  1. cmd/
  2. deploy/
  3. devtools/
  4. internal/
  5. terraform/
  6. .dockerignore
  7. .gitignore
  8. all_test.go
  9. checks.bash
  10. config.json.commented
  11. CONTRIBUTING.md
  12. go.mod
  13. go.sum
  14. LICENSE
  15. Makefile
  16. PATENTS
  17. README.md
  18. tools.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.