Skip to content
This repository has been archived by the owner on Apr 10, 2019. It is now read-only.

go vet yields different results than gometalinter on example_test.go #108

Closed
shawnps opened this issue Mar 31, 2016 · 3 comments
Closed

Comments

@shawnps
Copy link
Contributor

shawnps commented Mar 31, 2016

oddly, this is only not working on my linux server. it returns no errors on my mac. same version of go, and gometalinter is up to date.

here it is running on my ubuntu server with debug:

DEBUG: linting path .
DEBUG: linting with vet: go tool vet ./*.go (on .)
DEBUG: executing /usr/local/go/bin/go ["tool" "vet" "example_test.go" "handler.go" "handler_test.go"]
DEBUG: warning: go tool vet ./*.go returned exit status 1
DEBUG: vet hits 2: ^(?P<path>[^\s][^\r\n:]+?\.go):(?P<line>\d+):\s*(?P<message>.*)$
DEBUG: vet linter took 26.268912ms
example_test.go:20::error: ExampleHandle refers to unknown identifier: Handle (vet)
example_test.go:30::error: ExampleHandleFunc refers to unknown identifier: HandleFunc (vet)
DEBUG: total elapsed time 48.585695ms

and here it is on my mac:

DEBUG: linting path .
DEBUG: linting with vet: go tool vet ./*.go (on .)
DEBUG: executing /Users/shawn/go/bin/go ["tool" "vet" "example_test.go" "handler.go" "handler_test.go"]
DEBUG: vet hits 0: ^(?P<path>[^\s][^\r\n:]+?\.go):(?P<line>\d+):\s*(?P<message>.*)$
DEBUG: vet linter took 42.18335ms
DEBUG: total elapsed time 64.709808ms

the repo is https://github.com/gowww/compress

@shawnps
Copy link
Contributor Author

shawnps commented Mar 31, 2016

command i am invoking is gometalinter --exclude=vendor --disable-all --enable=vet .

@alecthomas
Copy link
Owner

Have you invoked go vet manually on both machines?

@shawnps
Copy link
Contributor Author

shawnps commented Mar 31, 2016

@alecthomas ah, good point. It appears to be something wrong with vet, not gometalinter.

@shawnps shawnps closed this as completed Mar 31, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants