{"action":"created","issue":{"url":"https://api.github.com/repos/deis/deis/issues/3164","labels_url":"https://api.github.com/repos/deis/deis/issues/3164/labels{/name}","comments_url":"https://api.github.com/repos/deis/deis/issues/3164/comments","events_url":"https://api.github.com/repos/deis/deis/issues/3164/events","html_url":"https://github.com/deis/deis/pull/3164","id":59417362,"number":3164,"title":"ref(Makefile): break build stage up into build and compile","user":{"login":"Joshua-Anderson","id":3526404,"avatar_url":"https://avatars.githubusercontent.com/u/3526404?v=3","gravatar_id":"","url":"https://api.github.com/users/Joshua-Anderson","html_url":"https://github.com/Joshua-Anderson","followers_url":"https://api.github.com/users/Joshua-Anderson/followers","following_url":"https://api.github.com/users/Joshua-Anderson/following{/other_user}","gists_url":"https://api.github.com/users/Joshua-Anderson/gists{/gist_id}","starred_url":"https://api.github.com/users/Joshua-Anderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Joshua-Anderson/subscriptions","organizations_url":"https://api.github.com/users/Joshua-Anderson/orgs","repos_url":"https://api.github.com/users/Joshua-Anderson/repos","events_url":"https://api.github.com/users/Joshua-Anderson/events{/privacy}","received_events_url":"https://api.github.com/users/Joshua-Anderson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/deis/deis/labels/all-components","name":"all-components","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-01T21:04:36Z","updated_at":"2015-03-05T19:22:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/deis/deis/pulls/3164","html_url":"https://github.com/deis/deis/pull/3164","diff_url":"https://github.com/deis/deis/pull/3164.diff","patch_url":"https://github.com/deis/deis/pull/3164.patch"},"body":"This can be really useful if you need to build the go components using nonstandard methods.\r\n\r\nFor example:\r\n\r\nI use gvm, a go version switcher. It manages go and `$GOPATH` for me locally. This make it impossible to run `make build` because if I run with root I don't have go in my `$PATH` and for security reasons you can't pass it, and if I run without root than I can't create docker images.\r\n\r\nNow, I can run `make compile` to build the go components and then `sudo make build` to create the docker images.\r\n\r\nThis can also make cross compiling go easier as well. You can compile go however you want and then run `make build` to create the docker image.\r\n\r\nSince build go binaries and building a docker image are two fairly separate steps anyway, I think it makes a lot of sense to separate them. "},"comment":{"url":"https://api.github.com/repos/deis/deis/issues/comments/77432237","html_url":"https://github.com/deis/deis/pull/3164#issuecomment-77432237","issue_url":"https://api.github.com/repos/deis/deis/issues/3164","id":77432237,"user":{"login":"carmstrong","id":536009,"avatar_url":"https://avatars.githubusercontent.com/u/536009?v=3","gravatar_id":"","url":"https://api.github.com/users/carmstrong","html_url":"https://github.com/carmstrong","followers_url":"https://api.github.com/users/carmstrong/followers","following_url":"https://api.github.com/users/carmstrong/following{/other_user}","gists_url":"https://api.github.com/users/carmstrong/gists{/gist_id}","starred_url":"https://api.github.com/users/carmstrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carmstrong/subscriptions","organizations_url":"https://api.github.com/users/carmstrong/orgs","repos_url":"https://api.github.com/users/carmstrong/repos","events_url":"https://api.github.com/users/carmstrong/events{/privacy}","received_events_url":"https://api.github.com/users/carmstrong/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T19:22:03Z","updated_at":"2015-03-05T19:22:03Z","body":"Code LGTM."}}