cmd/govulncheck: do not shadow err in doGovulncheck.

Removes shadowing of the err variable in doGovulncheck.
May be involved with the nil pointer dereference in golang/go#56689.

Updates golang/go#56689

Change-Id: I805c9106f08dffda73efcd04e7a418b0ac8f64d2
Reviewed-by: Jonathan Amsterdam <>
TryBot-Result: Gopher Robot <>
Reviewed-by: Zvonimir Pavlinovic <>
Run-TryBot: Tim King <>
1 file changed
tree: f5fc57140e3feb97d2fcbd20e27730b275f3d304
  1. client/
  2. cmd/
  3. devtools/
  4. doc/
  5. exp/
  6. internal/
  7. osv/
  8. vulncheck/
  9. .gitignore
  10. all_test.go
  11. checks.bash
  13. go.mod
  14. go.sum
  18. tools_test.go

Go Vulnerability Management

Go Reference

This repository contains packages for accessing and analyzing data from the Go Vulnerability Database. It contains the following:

  • Package client: a client for interacting with the Go vulnerability database
  • Package vulncheck: an API for detecting vulnerabilities in Go packages
  • Command govulncheck: a CLI for detecting vulnerabilities in Go packages

Check out for more information about the Go vulnerability management system.

Privacy Policy

The privacy policy for govulncheck can be found at


Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.

Database entries available at are distributed under the terms of the CC-BY 4.0 license.