-
Notifications
You must be signed in to change notification settings - Fork 645
Latest version of vscode-go is vetting all vendored code #1121
Comments
I noticed the same issue. However, for me, the problem is worse. The code in the vendor directory does not pass "go vet", while my own code does pass. I ended up disabling vet because I could not control the paths that were being vetted. |
@davecohrs same here. Thousands and thousands of results, rendering my problem pane pretty useless. |
I have pushed the fix to master. Until I release an update, here is what you can do
|
Thanks @ramya-rao-a! |
The fix for vet picking up vendor folder is now out in the latest update to the Go extension (0.6.64) |
The fix in 0.6.64 does not solve the underlying problem that "go tool vet ." will pick up the vendor folder. This means vet takes 20 seconds on a project with only a single Go file (main.go). I think vet should not process the vendor folder at all. Ignoring the vendor folder in the results is not enough. EDIT: This is only a problem in two cases:
|
@dtknut I agree, I wish there was a smarter solution Here is the catch
We currently use A few options I can think of are
If you were using the vet flags AND vetOnSave is set to Do you have any solutions in mind? |
@ramya-rao-a I am not sure there is a perfect solution. Personally, I had vetOnSave set to |
@dtknut When set to package, |
This slows my system to a crawl. I've had to disable vet entirely.
See @ramya-rao-a comment in gitter here
I'd love to be able to run vet on just my own code.
The text was updated successfully, but these errors were encountered: