{"action":"created","comment":{"url":"https://api.github.com/repos/chen3feng/typhoon-blade/pulls/comments/69447186","id":69447186,"diff_hunk":"@@ -241,14 +241,35 @@ def _proto_go_rules(self):\n         \"\"\"Generate go files. \"\"\"\n         env_name = self._env_name()\n         var_name = self._var_name('go')\n+        go_home = configparse.blade_config.get_config('go_config')['go_home']\n+        if not go_home:\n+            console.error_exit('%s: go_home is not configured in BLADE_ROOT.' % self.fullname)\n+        proto_config = configparse.blade_config.get_config('proto_library_config')\n+        self._write_rule('%s.Replace(PROTOC=\"%s\")' % (env_name, proto_config['protoc']))","path":"src/blade/proto_library_target.py","position":8,"original_position":8,"commit_id":"82539b65026cda525ff9ec311e8157a4d79c7670","original_commit_id":"82539b65026cda525ff9ec311e8157a4d79c7670","user":{"login":"chen3feng","id":1998410,"avatar_url":"https://avatars.githubusercontent.com/u/1998410?v=3","gravatar_id":"","url":"https://api.github.com/users/chen3feng","html_url":"https://github.com/chen3feng","followers_url":"https://api.github.com/users/chen3feng/followers","following_url":"https://api.github.com/users/chen3feng/following{/other_user}","gists_url":"https://api.github.com/users/chen3feng/gists{/gist_id}","starred_url":"https://api.github.com/users/chen3feng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chen3feng/subscriptions","organizations_url":"https://api.github.com/users/chen3feng/orgs","repos_url":"https://api.github.com/users/chen3feng/repos","events_url":"https://api.github.com/users/chen3feng/events{/privacy}","received_events_url":"https://api.github.com/users/chen3feng/received_events","type":"User","site_admin":false},"body":"就是scons_helper里","created_at":"2016-07-04T11:53:35Z","updated_at":"2016-07-04T11:53:35Z","html_url":"https://github.com/chen3feng/typhoon-blade/pull/230#discussion_r69447186","pull_request_url":"https://api.github.com/repos/chen3feng/typhoon-blade/pulls/230","_links":{"self":{"href":"https://api.github.com/repos/chen3feng/typhoon-blade/pulls/comments/69447186"},"html":{"href":"https://github.com/chen3feng/typhoon-blade/pull/230#discussion_r69447186"},"pull_request":{"href":"https://api.github.com/repos/chen3feng/typhoon-blade/pulls/230"}}},"pull_request":{"url":"https://api.github.com/repos/chen3feng/typhoon-blade/pulls/230","id":76121434,"html_url":"https://github.com/chen3feng/typhoon-blade/pull/230","diff_url":"https://github.com/chen3feng/typhoon-blade/pull/230.diff","patch_url":"https://github.com/chen3feng/typhoon-blade/pull/230.patch","issue_url":"https://api.github.com/repos/chen3feng/typhoon-blade/issues/230","number":230,"state":"open","locked":false,"title":"Protobuf support go","user":{"login":"WindLeeWT","id":14238472,"avatar_url":"https://avatars.githubusercontent.com/u/14238472?v=3","gravatar_id":"","url":"https://api.github.com/users/WindLeeWT","html_url":"https://github.com/WindLeeWT","followers_url":"https://api.github.com/users/WindLeeWT/followers","following_url":"https://api.github.com/users/WindLeeWT/following{/other_user}","gists_url":"https://api.github.com/users/WindLeeWT/gists{/gist_id}","starred_url":"https://api.github.com/users/WindLeeWT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WindLeeWT/subscriptions","organizations_url":"https://api.github.com/users/WindLeeWT/orgs","repos_url":"https://api.github.com/users/WindLeeWT/repos","events_url":"https://api.github.com/users/WindLeeWT/events{/privacy}","received_events_url":"https://api.github.com/users/WindLeeWT/received_events","type":"User","site_admin":false},"body":"- Move the generated go source files to GOPATH/src to be consistent with standard directory layout\r\n- Add protobuf_go_path in BLADE_ROOT and the related parameters to protobuf go plugin.\r\n  See: https://github.com/golang/protobuf","created_at":"2016-07-04T07:16:29Z","updated_at":"2016-07-04T11:53:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"30f2e2e0f313ed06bd2b3b6bfa0abf7b587f6718","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/chen3feng/typhoon-blade/pulls/230/commits","review_comments_url":"https://api.github.com/repos/chen3feng/typhoon-blade/pulls/230/comments","review_comment_url":"https://api.github.com/repos/chen3feng/typhoon-blade/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chen3feng/typhoon-blade/issues/230/comments","statuses_url":"https://api.github.com/repos/chen3feng/typhoon-blade/statuses/82539b65026cda525ff9ec311e8157a4d79c7670","head":{"label":"WindLeeWT:develop","ref":"develop","sha":"82539b65026cda525ff9ec311e8157a4d79c7670","user":{"login":"WindLeeWT","id":14238472,"avatar_url":"https://avatars.githubusercontent.com/u/14238472?v=3","gravatar_id":"","url":"https://api.github.com/users/WindLeeWT","html_url":"https://github.com/WindLeeWT","followers_url":"https://api.github.com/users/WindLeeWT/followers","following_url":"https://api.github.com/users/WindLeeWT/following{/other_user}","gists_url":"https://api.github.com/users/WindLeeWT/gists{/gist_id}","starred_url":"https://api.github.com/users/WindLeeWT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WindLeeWT/subscriptions","organizations_url":"https://api.github.com/users/WindLeeWT/orgs","repos_url":"https://api.github.com/users/WindLeeWT/repos","events_url":"https://api.github.com/users/WindLeeWT/events{/privacy}","received_events_url":"https://api.github.com/users/WindLeeWT/received_events","type":"User","site_admin":false},"repo":{"id":42647518,"name":"typhoon-blade","full_name":"WindLeeWT/typhoon-blade","owner":{"login":"WindLeeWT","id":14238472,"avatar_url":"https://avatars.githubusercontent.com/u/14238472?v=3","gravatar_id":"","url":"https://api.github.com/users/WindLeeWT","html_url":"https://github.com/WindLeeWT","followers_url":"https://api.github.com/users/WindLeeWT/followers","following_url":"https://api.github.com/users/WindLeeWT/following{/other_user}","gists_url":"https://api.github.com/users/WindLeeWT/gists{/gist_id}","starred_url":"https://api.github.com/users/WindLeeWT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WindLeeWT/subscriptions","organizations_url":"https://api.github.com/users/WindLeeWT/orgs","repos_url":"https://api.github.com/users/WindLeeWT/repos","events_url":"https://api.github.com/users/WindLeeWT/events{/privacy}","received_events_url":"https://api.github.com/users/WindLeeWT/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/WindLeeWT/typhoon-blade","description":"Building system of typhoon cloud computing platform of tencent, support C/C++/protobuf/thrift/lex/yacc/swig.","fork":true,"url":"https://api.github.com/repos/WindLeeWT/typhoon-blade","forks_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/forks","keys_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/teams","hooks_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/hooks","issue_events_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/issues/events{/number}","events_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/events","assignees_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/assignees{/user}","branches_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/branches{/branch}","tags_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/tags","blobs_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/git/refs{/sha}","trees_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/statuses/{sha}","languages_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/languages","stargazers_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/stargazers","contributors_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/contributors","subscribers_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/subscribers","subscription_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/subscription","commits_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/commits{/sha}","git_commits_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/git/commits{/sha}","comments_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/comments{/number}","issue_comment_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/issues/comments{/number}","contents_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/contents/{+path}","compare_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/merges","archive_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/downloads","issues_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/issues{/number}","pulls_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/pulls{/number}","milestones_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/milestones{/number}","notifications_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/labels{/name}","releases_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/releases{/id}","deployments_url":"https://api.github.com/repos/WindLeeWT/typhoon-blade/deployments","created_at":"2015-09-17T09:31:32Z","updated_at":"2015-09-17T09:31:32Z","pushed_at":"2016-07-04T07:12:36Z","git_url":"git://github.com/WindLeeWT/typhoon-blade.git","ssh_url":"git@github.com:WindLeeWT/typhoon-blade.git","clone_url":"https://github.com/WindLeeWT/typhoon-blade.git","svn_url":"https://github.com/WindLeeWT/typhoon-blade","homepage":"","size":5129,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"chen3feng:develop","ref":"develop","sha":"68aa479ee9e15072208b295b2e74d3e2ac713667","user":{"login":"chen3feng","id":1998410,"avatar_url":"https://avatars.githubusercontent.com/u/1998410?v=3","gravatar_id":"","url":"https://api.github.com/users/chen3feng","html_url":"https://github.com/chen3feng","followers_url":"https://api.github.com/users/chen3feng/followers","following_url":"https://api.github.com/users/chen3feng/following{/other_user}","gists_url":"https://api.github.com/users/chen3feng/gists{/gist_id}","starred_url":"https://api.github.com/users/chen3feng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chen3feng/subscriptions","organizations_url":"https://api.github.com/users/chen3feng/orgs","repos_url":"https://api.github.com/users/chen3feng/repos","events_url":"https://api.github.com/users/chen3feng/events{/privacy}","received_events_url":"https://api.github.com/users/chen3feng/received_events","type":"User","site_admin":false},"repo":{"id":5512937,"name":"typhoon-blade","full_name":"chen3feng/typhoon-blade","owner":{"login":"chen3feng","id":1998410,"avatar_url":"https://avatars.githubusercontent.com/u/1998410?v=3","gravatar_id":"","url":"https://api.github.com/users/chen3feng","html_url":"https://github.com/chen3feng","followers_url":"https://api.github.com/users/chen3feng/followers","following_url":"https://api.github.com/users/chen3feng/following{/other_user}","gists_url":"https://api.github.com/users/chen3feng/gists{/gist_id}","starred_url":"https://api.github.com/users/chen3feng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chen3feng/subscriptions","organizations_url":"https://api.github.com/users/chen3feng/orgs","repos_url":"https://api.github.com/users/chen3feng/repos","events_url":"https://api.github.com/users/chen3feng/events{/privacy}","received_events_url":"https://api.github.com/users/chen3feng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chen3feng/typhoon-blade","description":"Building system of typhoon cloud computing platform of tencent, support C/C++/protobuf/thrift/lex/yacc/swig.","fork":false,"url":"https://api.github.com/repos/chen3feng/typhoon-blade","forks_url":"https://api.github.com/repos/chen3feng/typhoon-blade/forks","keys_url":"https://api.github.com/repos/chen3feng/typhoon-blade/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chen3feng/typhoon-blade/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chen3feng/typhoon-blade/teams","hooks_url":"https://api.github.com/repos/chen3feng/typhoon-blade/hooks","issue_events_url":"https://api.github.com/repos/chen3feng/typhoon-blade/issues/events{/number}","events_url":"https://api.github.com/repos/chen3feng/typhoon-blade/events","assignees_url":"https://api.github.com/repos/chen3feng/typhoon-blade/assignees{/user}","branches_url":"https://api.github.com/repos/chen3feng/typhoon-blade/branches{/branch}","tags_url":"https://api.github.com/repos/chen3feng/typhoon-blade/tags","blobs_url":"https://api.github.com/repos/chen3feng/typhoon-blade/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chen3feng/typhoon-blade/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chen3feng/typhoon-blade/git/refs{/sha}","trees_url":"https://api.github.com/repos/chen3feng/typhoon-blade/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chen3feng/typhoon-blade/statuses/{sha}","languages_url":"https://api.github.com/repos/chen3feng/typhoon-blade/languages","stargazers_url":"https://api.github.com/repos/chen3feng/typhoon-blade/stargazers","contributors_url":"https://api.github.com/repos/chen3feng/typhoon-blade/contributors","subscribers_url":"https://api.github.com/repos/chen3feng/typhoon-blade/subscribers","subscription_url":"https://api.github.com/repos/chen3feng/typhoon-blade/subscription","commits_url":"https://api.github.com/repos/chen3feng/typhoon-blade/commits{/sha}","git_commits_url":"https://api.github.com/repos/chen3feng/typhoon-blade/git/commits{/sha}","comments_url":"https://api.github.com/repos/chen3feng/typhoon-blade/comments{/number}","issue_comment_url":"https://api.github.com/repos/chen3feng/typhoon-blade/issues/comments{/number}","contents_url":"https://api.github.com/repos/chen3feng/typhoon-blade/contents/{+path}","compare_url":"https://api.github.com/repos/chen3feng/typhoon-blade/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chen3feng/typhoon-blade/merges","archive_url":"https://api.github.com/repos/chen3feng/typhoon-blade/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chen3feng/typhoon-blade/downloads","issues_url":"https://api.github.com/repos/chen3feng/typhoon-blade/issues{/number}","pulls_url":"https://api.github.com/repos/chen3feng/typhoon-blade/pulls{/number}","milestones_url":"https://api.github.com/repos/chen3feng/typhoon-blade/milestones{/number}","notifications_url":"https://api.github.com/repos/chen3feng/typhoon-blade/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chen3feng/typhoon-blade/labels{/name}","releases_url":"https://api.github.com/repos/chen3feng/typhoon-blade/releases{/id}","deployments_url":"https://api.github.com/repos/chen3feng/typhoon-blade/deployments","created_at":"2012-08-22T17:35:13Z","updated_at":"2016-07-01T21:07:42Z","pushed_at":"2016-07-04T07:16:29Z","git_url":"git://github.com/chen3feng/typhoon-blade.git","ssh_url":"git@github.com:chen3feng/typhoon-blade.git","clone_url":"https://github.com/chen3feng/typhoon-blade.git","svn_url":"https://github.com/chen3feng/typhoon-blade","homepage":"","size":5511,"stargazers_count":474,"watchers_count":474,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":184,"mirror_url":null,"open_issues_count":38,"forks":184,"open_issues":38,"watchers":474,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chen3feng/typhoon-blade/pulls/230"},"html":{"href":"https://github.com/chen3feng/typhoon-blade/pull/230"},"issue":{"href":"https://api.github.com/repos/chen3feng/typhoon-blade/issues/230"},"comments":{"href":"https://api.github.com/repos/chen3feng/typhoon-blade/issues/230/comments"},"review_comments":{"href":"https://api.github.com/repos/chen3feng/typhoon-blade/pulls/230/comments"},"review_comment":{"href":"https://api.github.com/repos/chen3feng/typhoon-blade/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chen3feng/typhoon-blade/pulls/230/commits"},"statuses":{"href":"https://api.github.com/repos/chen3feng/typhoon-blade/statuses/82539b65026cda525ff9ec311e8157a4d79c7670"}}}}
{"actor":{"display_login":"chen3feng"}}