{"action":"created","issue":{"url":"https://api.github.com/repos/ninja-build/ninja/issues/1048","labels_url":"https://api.github.com/repos/ninja-build/ninja/issues/1048/labels{/name}","comments_url":"https://api.github.com/repos/ninja-build/ninja/issues/1048/comments","events_url":"https://api.github.com/repos/ninja-build/ninja/issues/1048/events","html_url":"https://github.com/ninja-build/ninja/issues/1048","id":115523692,"number":1048,"title":"Ninja does not allow comments in depfiles","user":{"login":"ilyapopov","id":1054514,"avatar_url":"https://avatars.githubusercontent.com/u/1054514?v=3","gravatar_id":"","url":"https://api.github.com/users/ilyapopov","html_url":"https://github.com/ilyapopov","followers_url":"https://api.github.com/users/ilyapopov/followers","following_url":"https://api.github.com/users/ilyapopov/following{/other_user}","gists_url":"https://api.github.com/users/ilyapopov/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyapopov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyapopov/subscriptions","organizations_url":"https://api.github.com/users/ilyapopov/orgs","repos_url":"https://api.github.com/users/ilyapopov/repos","events_url":"https://api.github.com/users/ilyapopov/events{/privacy}","received_events_url":"https://api.github.com/users/ilyapopov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-06T15:16:30Z","updated_at":"2015-11-13T07:37:13Z","closed_at":null,"body":"Some tools (for example, latexmk) generate depfiles with comments (starting with `#`). Currently, Ninja does not handle such depfiles with an error about multiple outputs.\r\n\r\nDepfile:\r\n\r\n    # comment here\r\n    doc.pdf  :\\\r\n        /etc/texmf/web2c/texmf.cnf\\\r\n        /usr/share/texlive/texmf-dist/fonts/enc/dvips/base/8r.enc\r\n\r\nOutput:\r\n\r\n    ninja: error: doc.pdf.d: depfile has multiple output paths.\r\n\r\nCurrently, I workaround this using `sed` to remove comments from depfiles. "},"comment":{"url":"https://api.github.com/repos/ninja-build/ninja/issues/comments/156354640","html_url":"https://github.com/ninja-build/ninja/issues/1048#issuecomment-156354640","issue_url":"https://api.github.com/repos/ninja-build/ninja/issues/1048","id":156354640,"user":{"login":"nico","id":3487,"avatar_url":"https://avatars.githubusercontent.com/u/3487?v=3","gravatar_id":"","url":"https://api.github.com/users/nico","html_url":"https://github.com/nico","followers_url":"https://api.github.com/users/nico/followers","following_url":"https://api.github.com/users/nico/following{/other_user}","gists_url":"https://api.github.com/users/nico/gists{/gist_id}","starred_url":"https://api.github.com/users/nico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nico/subscriptions","organizations_url":"https://api.github.com/users/nico/orgs","repos_url":"https://api.github.com/users/nico/repos","events_url":"https://api.github.com/users/nico/events{/privacy}","received_events_url":"https://api.github.com/users/nico/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T07:37:13Z","updated_at":"2015-11-13T07:37:13Z","body":"Thanks for posting the example!"}}