Skip to content

x/vuln/cmd/govulncheck: add module info to paths in text traces #69490

@zpavlinovic

Description

@zpavlinovic

govulncheck version

Go: go1.23.0
Scanner: [email protected]

Does this issue reproduce at the latest version of golang.org/x/vuln?

yes

Output of go env in your module/workspace:

Does not matter.

What did you do?

Run govulncheck -show trace on any module that has some symbol-level vulnerabilities.

What did you see happen?

Paths in traces do not contain any module info, which can be confusing.

src/sync/once.go:67:11: ...
pkg/store/cache/caching_bucket_test.go:442:12: ...

What did you expect to see?

Show the last segment of the module name, for example:

[email protected]/src/sync/once.go:67:11: ...
[email protected]/pkg/store/cache/caching_bucket_test.go:442:12: ...

Metadata

Metadata

Assignees

Labels

vulncheck or vulndbIssues for the x/vuln or x/vulndb repo

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions