Skip to content

x/vuln: govulncheck doesn't support loading vendored modules  #65124

Closed
@lachlan-smith

Description

@lachlan-smith

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.

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions