You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should provide a more user-friendly error when a pattern isn't valid. For example, letting them know that the provided pattern is invalid, providing suggestions on how to do instead, and pointing users to https://pkg.go.dev/cmd/go#hdr-Package_lists_and_patterns for information on how Go patterns work.
Current output:
~/code/vuln master ❯ go run ./cmd/govulncheck/ blah asldnasd 06:10:09 PM
govulncheck is an experimental tool. Share feedback at https://go.dev/s/govulncheck-feedback.
Using go1.20.3 and govulncheck@v0.0.0 with
vulnerability data from https://vuln.go.dev (last modified 2023-04-18 21:32:26 +0000 UTC).
Packages contain errors:
-: package blah is not in GOROOT (/Users/julieqiu/go/current/src/blah)
-: package asldnasd is not in GOROOT (/Users/julieqiu/go/current/src/asldnasd)
exit status 1
We should provide a more user-friendly error when a pattern isn't valid. For example, letting them know that the provided pattern is invalid, providing suggestions on how to do instead, and pointing users to https://pkg.go.dev/cmd/go#hdr-Package_lists_and_patterns for information on how Go patterns work.
Current output:
Code location:
https://github.com/golang/vuln/blob/ccb49889eaf7f00e6a3839d819b453eed08ee22e/internal/scan/errors.go#L59-L66
The text was updated successfully, but these errors were encountered: