{"action":"created","issue":{"url":"https://api.github.com/repos/DisposaBoy/GoSublime/issues/682","repository_url":"https://api.github.com/repos/DisposaBoy/GoSublime","labels_url":"https://api.github.com/repos/DisposaBoy/GoSublime/issues/682/labels{/name}","comments_url":"https://api.github.com/repos/DisposaBoy/GoSublime/issues/682/comments","events_url":"https://api.github.com/repos/DisposaBoy/GoSublime/issues/682/events","html_url":"https://github.com/DisposaBoy/GoSublime/pull/682","id":142501269,"number":682,"title":"add argument templates for fmt_cmd to fix Goimport and vendoring","user":{"login":"steeve","id":137467,"avatar_url":"https://avatars.githubusercontent.com/u/137467?v=3","gravatar_id":"","url":"https://api.github.com/users/steeve","html_url":"https://github.com/steeve","followers_url":"https://api.github.com/users/steeve/followers","following_url":"https://api.github.com/users/steeve/following{/other_user}","gists_url":"https://api.github.com/users/steeve/gists{/gist_id}","starred_url":"https://api.github.com/users/steeve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steeve/subscriptions","organizations_url":"https://api.github.com/users/steeve/orgs","repos_url":"https://api.github.com/users/steeve/repos","events_url":"https://api.github.com/users/steeve/events{/privacy}","received_events_url":"https://api.github.com/users/steeve/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-21T23:35:18Z","updated_at":"2016-03-22T10:15:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/DisposaBoy/GoSublime/pulls/682","html_url":"https://github.com/DisposaBoy/GoSublime/pull/682","diff_url":"https://github.com/DisposaBoy/GoSublime/pull/682.diff","patch_url":"https://github.com/DisposaBoy/GoSublime/pull/682.patch"},"body":"According to https://github.com/golang/tools/commit/bf084ef7580ee99a5efa3086138c942aca4aefd4, goimports now need to be specified the directory of the source go file in order to properly infer the vendor imports.\r\n\r\nThis commit adds template capabilities to the `fmt_cmd` setting, adding `filename` and `filedir` variables. This won't break existing configurations.\r\n\r\nThe proper command for goimports now becomes:\r\n```json\r\n    \"fmt_cmd\": [\"goimports\", \"-srcdir\", \"%(filedir)s\"],\r\n```"},"comment":{"url":"https://api.github.com/repos/DisposaBoy/GoSublime/issues/comments/199735430","html_url":"https://github.com/DisposaBoy/GoSublime/pull/682#issuecomment-199735430","issue_url":"https://api.github.com/repos/DisposaBoy/GoSublime/issues/682","id":199735430,"user":{"login":"jbdalido","id":2461655,"avatar_url":"https://avatars.githubusercontent.com/u/2461655?v=3","gravatar_id":"","url":"https://api.github.com/users/jbdalido","html_url":"https://github.com/jbdalido","followers_url":"https://api.github.com/users/jbdalido/followers","following_url":"https://api.github.com/users/jbdalido/following{/other_user}","gists_url":"https://api.github.com/users/jbdalido/gists{/gist_id}","starred_url":"https://api.github.com/users/jbdalido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbdalido/subscriptions","organizations_url":"https://api.github.com/users/jbdalido/orgs","repos_url":"https://api.github.com/users/jbdalido/repos","events_url":"https://api.github.com/users/jbdalido/events{/privacy}","received_events_url":"https://api.github.com/users/jbdalido/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T10:15:30Z","updated_at":"2016-03-22T10:15:30Z","body":":+1: "}}