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-by: Maceo Thompson <>
TryBot-Result: Gopher Robot <>
Run-TryBot: Zvonimir Pavlinovic <>
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
  12. go.mod
  13. go.sum
  15. Makefile
  18. tools.go


This repository contains code that serves

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see

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