{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/12636","labels_url":"https://api.github.com/repos/golang/go/issues/12636/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/12636/comments","events_url":"https://api.github.com/repos/golang/go/issues/12636/events","html_url":"https://github.com/golang/go/issues/12636","id":106685664,"number":12636,"title":"x/tools/cmd/vet: does not return the same results across workstations","user":{"login":"stevekuznetsov","id":7328370,"avatar_url":"https://avatars.githubusercontent.com/u/7328370?v=3","gravatar_id":"","url":"https://api.github.com/users/stevekuznetsov","html_url":"https://github.com/stevekuznetsov","followers_url":"https://api.github.com/users/stevekuznetsov/followers","following_url":"https://api.github.com/users/stevekuznetsov/following{/other_user}","gists_url":"https://api.github.com/users/stevekuznetsov/gists{/gist_id}","starred_url":"https://api.github.com/users/stevekuznetsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevekuznetsov/subscriptions","organizations_url":"https://api.github.com/users/stevekuznetsov/orgs","repos_url":"https://api.github.com/users/stevekuznetsov/repos","events_url":"https://api.github.com/users/stevekuznetsov/events{/privacy}","received_events_url":"https://api.github.com/users/stevekuznetsov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-09-16T02:29:33Z","updated_at":"2015-09-23T19:38:43Z","closed_at":null,"body":"We are attempting to integrate `go vet`'s static analysis into our continuous integration pipeline for [OpenShift Origin](https://github.com/openshift/origin) but have noticed some interesting behavior. \r\n\r\nDifferent developers with the same `go version` (`1.4.2`) and `golang.org/x/tools/` at the same `HEAD` (`c262de8 tools/cmd/vet: Sort checks list alphabetically.`) will see wildly different results from running `go vet`. We run the tool on a subset of directories within our repository, as seen [here](https://github.com/openshift/origin/blob/master/hack/verify-govet.sh). \r\n\r\nAll of the output that we see does indeed result from defects in the code, so none of it is spurious, but some developers do not see many errors while others see ~50.\r\n\r\nWhat factors affect the output of `go vet`? I think the people that have tested this have all been on different operating systems (OSX, Fedora 21,22). What can we do to ensure deterministic results?"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/142706953","html_url":"https://github.com/golang/go/issues/12636#issuecomment-142706953","issue_url":"https://api.github.com/repos/golang/go/issues/12636","id":142706953,"user":{"login":"ianlancetaylor","id":3194333,"avatar_url":"https://avatars.githubusercontent.com/u/3194333?v=3","gravatar_id":"","url":"https://api.github.com/users/ianlancetaylor","html_url":"https://github.com/ianlancetaylor","followers_url":"https://api.github.com/users/ianlancetaylor/followers","following_url":"https://api.github.com/users/ianlancetaylor/following{/other_user}","gists_url":"https://api.github.com/users/ianlancetaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/ianlancetaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianlancetaylor/subscriptions","organizations_url":"https://api.github.com/users/ianlancetaylor/orgs","repos_url":"https://api.github.com/users/ianlancetaylor/repos","events_url":"https://api.github.com/users/ianlancetaylor/events{/privacy}","received_events_url":"https://api.github.com/users/ianlancetaylor/received_events","type":"User","site_admin":false},"created_at":"2015-09-23T19:38:43Z","updated_at":"2015-09-23T19:38:43Z","body":"The original issue is about the -composites warning.  The -composites warning is only issued if the vet tool can determine that the composite literal is a struct.  In this file, the type is from an imported package.  So here is another difference that may matter (I'm not able to build your package to test this): whether the user has run \"go install\" for the dependent packages may change the go vet output."}}