{"action":"created","issue":{"url":"https://api.github.com/repos/vimeo/psalm/issues/549","repository_url":"https://api.github.com/repos/vimeo/psalm","labels_url":"https://api.github.com/repos/vimeo/psalm/issues/549/labels{/name}","comments_url":"https://api.github.com/repos/vimeo/psalm/issues/549/comments","events_url":"https://api.github.com/repos/vimeo/psalm/issues/549/events","html_url":"https://github.com/vimeo/psalm/pull/549","id":301610957,"number":549,"title":"[wip] Build phar","user":{"login":"weirdan","id":57403,"avatar_url":"https://avatars3.githubusercontent.com/u/57403?v=4","gravatar_id":"","url":"https://api.github.com/users/weirdan","html_url":"https://github.com/weirdan","followers_url":"https://api.github.com/users/weirdan/followers","following_url":"https://api.github.com/users/weirdan/following{/other_user}","gists_url":"https://api.github.com/users/weirdan/gists{/gist_id}","starred_url":"https://api.github.com/users/weirdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weirdan/subscriptions","organizations_url":"https://api.github.com/users/weirdan/orgs","repos_url":"https://api.github.com/users/weirdan/repos","events_url":"https://api.github.com/users/weirdan/events{/privacy}","received_events_url":"https://api.github.com/users/weirdan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-02T00:30:29Z","updated_at":"2018-03-05T07:46:21Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/vimeo/psalm/pulls/549","html_url":"https://github.com/vimeo/psalm/pull/549","diff_url":"https://github.com/vimeo/psalm/pull/549.diff","patch_url":"https://github.com/vimeo/psalm/pull/549.patch"},"body":"This PR adds necessary changes to be able to build Psalm as .phar.\r\nResulting binary is ~1.6MB (as opposed to 28MB \"production\" (no-dev) composer install). \r\n\r\nBuild script is provided in `bin/build-phar.sh`.\r\n\r\nI considered adding `humbug/box` as a dev dependency, but if I did this I would need to filter out it (and it's dependencies, and psalm's other dev dependencies) when building the phar, so instead I opted for global composer install and producing phar from \"production\" build.\r\n\r\nSome of the `realpath()` calls were dropped because `realpath()` returns `false` on any (even existing) path inside the phar archive.\r\n\r\n~Notably the phar version reports issues (possibly false positives, I haven't checked) that regular version does not.~ (not anymore)."},"comment":{"url":"https://api.github.com/repos/vimeo/psalm/issues/comments/370335173","html_url":"https://github.com/vimeo/psalm/pull/549#issuecomment-370335173","issue_url":"https://api.github.com/repos/vimeo/psalm/issues/549","id":370335173,"user":{"login":"weirdan","id":57403,"avatar_url":"https://avatars3.githubusercontent.com/u/57403?v=4","gravatar_id":"","url":"https://api.github.com/users/weirdan","html_url":"https://github.com/weirdan","followers_url":"https://api.github.com/users/weirdan/followers","following_url":"https://api.github.com/users/weirdan/following{/other_user}","gists_url":"https://api.github.com/users/weirdan/gists{/gist_id}","starred_url":"https://api.github.com/users/weirdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weirdan/subscriptions","organizations_url":"https://api.github.com/users/weirdan/orgs","repos_url":"https://api.github.com/users/weirdan/repos","events_url":"https://api.github.com/users/weirdan/events{/privacy}","received_events_url":"https://api.github.com/users/weirdan/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T07:46:21Z","updated_at":"2018-03-05T07:46:21Z","author_association":"CONTRIBUTOR","body":"Resolved now."}}
{"actor":{"display_login":"weirdan"}}