{"action":"created","issue":{"url":"https://api.github.com/repos/cask/cask/issues/351","repository_url":"https://api.github.com/repos/cask/cask","labels_url":"https://api.github.com/repos/cask/cask/issues/351/labels{/name}","comments_url":"https://api.github.com/repos/cask/cask/issues/351/comments","events_url":"https://api.github.com/repos/cask/cask/issues/351/events","html_url":"https://github.com/cask/cask/pull/351","id":153674663,"number":351,"title":"Exit build command with proper status code","user":{"login":"rejeep","id":20277,"avatar_url":"https://avatars.githubusercontent.com/u/20277?v=3","gravatar_id":"","url":"https://api.github.com/users/rejeep","html_url":"https://github.com/rejeep","followers_url":"https://api.github.com/users/rejeep/followers","following_url":"https://api.github.com/users/rejeep/following{/other_user}","gists_url":"https://api.github.com/users/rejeep/gists{/gist_id}","starred_url":"https://api.github.com/users/rejeep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rejeep/subscriptions","organizations_url":"https://api.github.com/users/rejeep/orgs","repos_url":"https://api.github.com/users/rejeep/repos","events_url":"https://api.github.com/users/rejeep/events{/privacy}","received_events_url":"https://api.github.com/users/rejeep/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-08T20:03:03Z","updated_at":"2016-05-08T21:06:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cask/cask/pulls/351","html_url":"https://github.com/cask/cask/pull/351","diff_url":"https://github.com/cask/cask/pull/351.diff","patch_url":"https://github.com/cask/cask/pull/351.patch"},"body":"If any of the files contained a compiler error, exit with status code 1, otherwise 0.\r\n\r\nAlso add the option `--warn-as-error` that will consider compiler warnings as errors, which means if any of the files contained any warning, exit with status code 1."},"comment":{"url":"https://api.github.com/repos/cask/cask/issues/comments/217746078","html_url":"https://github.com/cask/cask/pull/351#issuecomment-217746078","issue_url":"https://api.github.com/repos/cask/cask/issues/351","id":217746078,"user":{"login":"yuutayamada","id":1082473,"avatar_url":"https://avatars.githubusercontent.com/u/1082473?v=3","gravatar_id":"","url":"https://api.github.com/users/yuutayamada","html_url":"https://github.com/yuutayamada","followers_url":"https://api.github.com/users/yuutayamada/followers","following_url":"https://api.github.com/users/yuutayamada/following{/other_user}","gists_url":"https://api.github.com/users/yuutayamada/gists{/gist_id}","starred_url":"https://api.github.com/users/yuutayamada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuutayamada/subscriptions","organizations_url":"https://api.github.com/users/yuutayamada/orgs","repos_url":"https://api.github.com/users/yuutayamada/repos","events_url":"https://api.github.com/users/yuutayamada/events{/privacy}","received_events_url":"https://api.github.com/users/yuutayamada/received_events","type":"User","site_admin":false},"created_at":"2016-05-08T21:06:02Z","updated_at":"2016-05-08T21:06:02Z","body":"Thank you for your quick implement.\r\n\r\nI could make sure warnings become error and returning status code 1, but\r\nwhen there is only an error, cask still returns status code 0.\r\n\r\nI tried following file foo.el\r\n(I tried both `cask build` and `cask build --warn-as-error`. and\r\nresult was same)\r\n\r\n```el\r\n;; -*- lexical-binding: t; -*-\r\n\r\n;;; Code:\r\n\r\n(defun foo ()\r\n  (let* ((a nil))\r\n    (add-to-list 'a \"foo\")))\r\n\r\n(provide 'foo)\r\n\r\n;; Local Variables:\r\n;; coding: utf-8\r\n;; mode: emacs-lisp\r\n;; End:\r\n\r\n;;; foo.el ends here\r\n```\r\n\r\nit output:\r\n```sh\r\n§~/local/vcs/github.com/yuutayamada/emacs.d/elisp/self/hoge§\r\nλ cask build\r\nCompiling /home/uta/local/vcs/github.com/yuutayamada/emacs.d/elisp/self/hoge/foo.el...\r\n\r\nIn foo:\r\nfoo.el:6:13:Error: `add-to-list' can't use lexical var `a'; use `push' or\r\n    `cl-pushnew'\r\n```\r\n\r\nand return code was:\r\n```sh\r\n§uta@Penguin§☁|origin/master§2016/05/08 14:01§\r\n§~/local/vcs/github.com/yuutayamada/emacs.d/elisp/self/hoge§\r\nλ echo $?\r\n0\r\n```"}}