{"action":"created","issue":{"url":"https://api.github.com/repos/scrooloose/syntastic/issues/1287","labels_url":"https://api.github.com/repos/scrooloose/syntastic/issues/1287/labels{/name}","comments_url":"https://api.github.com/repos/scrooloose/syntastic/issues/1287/comments","events_url":"https://api.github.com/repos/scrooloose/syntastic/issues/1287/events","html_url":"https://github.com/scrooloose/syntastic/issues/1287","id":53384284,"number":1287,"title":"Go files with build tags are not checked","user":{"login":"oryband","id":115387,"avatar_url":"https://avatars.githubusercontent.com/u/115387?v=3","gravatar_id":"","url":"https://api.github.com/users/oryband","html_url":"https://github.com/oryband","followers_url":"https://api.github.com/users/oryband/followers","following_url":"https://api.github.com/users/oryband/following{/other_user}","gists_url":"https://api.github.com/users/oryband/gists{/gist_id}","starred_url":"https://api.github.com/users/oryband/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oryband/subscriptions","organizations_url":"https://api.github.com/users/oryband/orgs","repos_url":"https://api.github.com/users/oryband/repos","events_url":"https://api.github.com/users/oryband/events{/privacy}","received_events_url":"https://api.github.com/users/oryband/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-01-05T10:49:58Z","updated_at":"2015-01-15T16:48:41Z","closed_at":"2015-01-14T18:14:56Z","body":"I have a file called `package_integration_test.go` which looks something like this:\r\n```go\r\n// +build integration\r\n\r\npackage bla\r\n\r\n// code\r\n```\r\nIn order to test this in the terminal, I need to use `go test -tags=integration`, otherwise `go build` (which is executed behind `go test` I think) will ignore this file.\r\n\r\nThis also means that syntastic won't show errors generated by `go build`, even when explicitly calling `:SyntasticCheck`.\r\n\r\nWe should find a way to handle build tags.\r\n\r\n**NOTE**: The file does have to be a `_test.go` file, it can also be a normal one, and behaviour will stay the same. `go test` calls `go build` behind the scenes."},"comment":{"url":"https://api.github.com/repos/scrooloose/syntastic/issues/comments/70117192","html_url":"https://github.com/scrooloose/syntastic/issues/1287#issuecomment-70117192","issue_url":"https://api.github.com/repos/scrooloose/syntastic/issues/1287","id":70117192,"user":{"login":"oryband","id":115387,"avatar_url":"https://avatars.githubusercontent.com/u/115387?v=3","gravatar_id":"","url":"https://api.github.com/users/oryband","html_url":"https://github.com/oryband","followers_url":"https://api.github.com/users/oryband/followers","following_url":"https://api.github.com/users/oryband/following{/other_user}","gists_url":"https://api.github.com/users/oryband/gists{/gist_id}","starred_url":"https://api.github.com/users/oryband/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oryband/subscriptions","organizations_url":"https://api.github.com/users/oryband/orgs","repos_url":"https://api.github.com/users/oryband/repos","events_url":"https://api.github.com/users/oryband/events{/privacy}","received_events_url":"https://api.github.com/users/oryband/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T16:48:41Z","updated_at":"2015-01-15T16:48:41Z","body":"Yup. That did the trick. Feel free to merge + close."}}