internal/worker: turn on skipping unrecoverable errors
Change-Id: Ia96b375ab940659f41597c5651968d2ec86cf9a9
Reviewed-on: https://go-review.googlesource.com/c/pkgsite-metrics/+/609575
Commit-Queue: Zvonimir Pavlinovic <zpavlinovic@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/internal/worker/govulncheck_scan.go b/internal/worker/govulncheck_scan.go
index c2c49f1..fc9ed5c 100644
--- a/internal/worker/govulncheck_scan.go
+++ b/internal/worker/govulncheck_scan.go
@@ -157,9 +157,7 @@
}
// Otherwise, skip if the error is not recoverable. The version of the
// module has not changed, so we'll get the same error anyhow.
- // TODO re-enable this
- // return unrecoverableError(ws.ErrorCategory), nil
- return false, nil
+ return unrecoverableError(ws.ErrorCategory), nil
}
// unrecoverableError returns true iff errorCategory encodes that