Closed
Description
Since the most recent update to govulncheck (v1.0.2) and the introduction of the LoadModules function (here), govulncheck can no longer run on projects that use private dependencies even when they are vendored locally unless the environment running govulncheck also has access to the private repositories.
We encountered this issue in our CI environment which does not have access to the private repositories and instead rely on the locally vendored dependencies.
The issue seems to be caused by calling go list
with the -mod=mod
flag, if this flag was omitted I believe it should instead first try using the vendored modules first.