is `go vet` <https://pkg.go.dev/cmd/vet> supporte...
# general
p
is
go vet
https://pkg.go.dev/cmd/vet supported under pants 2.10 or 2.11 dev releases ? I looked at the docs and I don't see it mentioned there. https://www.pantsbuild.org/v2.11/docs/go
h
Not yet. Tom added most the infrastructure for it, but there was a bug we need to fix before announcing
p
got it.
is there an issue for it ? should I create one ?
h
I was supposed to create it two months ago and forgot, and now don't remember the exact error oops. iirc it was really easy to reproduce, in
example-golang
activate
pants.backend.experimental.go.lint.vet
then run
./pants lint ::
. Or maybe it was one of the other repos like remote-api-tools
p
oh. so there is some kind of initial implementation for it... ok. let me try that.
Copy code
15:49:11.02 [ERROR] Completed: pants.backend.go.lint.vet.rules.run_go_vet - go-vet failed (exit code 1).
go: go.mod file not found in current directory or any parent directory; see 'go help modules'
is this the issue you are referring to ?
h
yes that's it!
I think it's that go vet requires 3rd-party deps iirc
p
got it.