-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/vuln: ignore directory when there are no buildable Go files #59633
Comments
@golang/vulndb |
I'm have a sub-package for each topic, which includes like booleans, numbers, strings, hashmaps, etc. And each sub-package has a directory which contains test and implementation files. Th project structure looks like:
All this is in a GitHub repository here. When I run
I'm not sure why this is an error as there are Go files in each |
What is the actual package pattern you passed to govulncheck? What is the output you get with |
I'm not using
govulncheck on source code
and on test code
Running |
This is working as intended. |
What version of Go are you using (
go version
)?1.19.5
Does this issue reproduce at the latest version of golang.org/x/vuln?
yes
What operating system and processor architecture are you using (
go env
)?darwin/arm64
What did you do?
GOOS=linux GOOS=arm64 govulncheck
Using go1.19.5 and govulncheck@v0.0.0-506ee65bc240-20230412201939 with
vulnerability data from https://vuln.go.dev (last modified 2023-04-13 00:03:55 +0000 UTC).
err: exit status 1: stderr: go build github.com/u-root/u-root/pkg/mount: build constraints exclude all Go files in /Users/rminnich/go/src/github.com/u-root/u-root/pkg/mount
go build github.com/u-root/u-root/pkg/mount/block: build constraints exclude all Go files in /Users/rminnich/go/src/github.com/u-root/u-root/pkg/mount/block
go build github.com/u-root/u-root/pkg/spidev: build constraints exclude all Go files in /Users/rminnich/go/src/github.com/u-root/u-root/pkg/spidev
go build github.com/u-root/u-root/pkg/mount/loop: build constraints exclude all Go files in /Users/rminnich/go/src/github.com/u-root/u-root/pkg/mount/loop
What did you expect to see?
no output
What did you see instead?
I think that if there are no buildable Go files, it should ignore the directory entirely.
The text was updated successfully, but these errors were encountered: