-
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
cmd/vet: vet XTestGoFiles without directory walk #22296
Comments
Change https://golang.org/cl/71170 mentions this issue: |
Why not simply use |
|
That has been fixed as of the 1.9 release (see #19350). |
Ah, Thanks! I missed that. That should work I think. |
OK, I'm going to close this issue. Please comment if you disagree. |
Problem exists with all versions of go.
go tool vet
supports args as either:Using files causes errors when there are external packages in the directory (ex:
example_test.go
usespkg_test
). The error is something likeExampleNewFilter refers to unknown identifier: NewFilter
.Using a directory walks the entire tree, which makes it impossible to ignore specific paths.
I propose to fix this issue by adding a
--no-recurse
flag to prevent the directory walk.The text was updated successfully, but these errors were encountered: