Post

Didn't end up using this, but I thought I might need a quick way for somebody to check if one of their Go dependencies calls a specific function. This one-liner does it: go list -deps -f '{{$dir := .Dir}}{{range .GoFiles}}{{$dir}}/{{.}} {{end}}' | xargs rg foo.Bar

Huh, it would be handy if govulncheck had a one-off flag to do this (given it already does this for vulnerability reachability).

0 reposts0 likes

No replies yet.