{"action":"created","comment":{"url":"https://api.github.com/repos/gravitational/version/pulls/comments/57070547","id":57070547,"diff_hunk":"@@ -54,7 +57,11 @@ func run() error {\n \tlog.SetFlags(0)\n \tflag.Parse()\n \tif *pkg == \"\" {\n-\t\treturn fmt.Errorf(\"-pkg required\")\n+\t\tdir, err := filepath.Abs(filepath.Dir(os.Args[0]))","path":"cmd/linkflags/main.go","position":22,"original_position":22,"commit_id":"8e040b18c66128ea7df80923894f1eaeab6f4268","original_commit_id":"8e040b18c66128ea7df80923894f1eaeab6f4268","user":{"login":"a-palchikov","id":965809,"avatar_url":"https://avatars.githubusercontent.com/u/965809?v=3","gravatar_id":"","url":"https://api.github.com/users/a-palchikov","html_url":"https://github.com/a-palchikov","followers_url":"https://api.github.com/users/a-palchikov/followers","following_url":"https://api.github.com/users/a-palchikov/following{/other_user}","gists_url":"https://api.github.com/users/a-palchikov/gists{/gist_id}","starred_url":"https://api.github.com/users/a-palchikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-palchikov/subscriptions","organizations_url":"https://api.github.com/users/a-palchikov/orgs","repos_url":"https://api.github.com/users/a-palchikov/repos","events_url":"https://api.github.com/users/a-palchikov/events{/privacy}","received_events_url":"https://api.github.com/users/a-palchikov/received_events","type":"User","site_admin":false},"body":"I was wondering if any intermediate symlinks will interfere? Will it still work from a symlinked location? ","created_at":"2016-03-22T21:16:30Z","updated_at":"2016-03-22T21:16:30Z","html_url":"https://github.com/gravitational/version/pull/2#discussion_r57070547","pull_request_url":"https://api.github.com/repos/gravitational/version/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/gravitational/version/pulls/comments/57070547"},"html":{"href":"https://github.com/gravitational/version/pull/2#discussion_r57070547"},"pull_request":{"href":"https://api.github.com/repos/gravitational/version/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/gravitational/version/pulls/2","id":63792622,"html_url":"https://github.com/gravitational/version/pull/2","diff_url":"https://github.com/gravitational/version/pull/2.diff","patch_url":"https://github.com/gravitational/version/pull/2.patch","issue_url":"https://api.github.com/repos/gravitational/version/issues/2","number":2,"state":"open","locked":false,"title":"add option to print just tag, set current directory for package flag","user":{"login":"klizhentas","id":13717,"avatar_url":"https://avatars.githubusercontent.com/u/13717?v=3","gravatar_id":"","url":"https://api.github.com/users/klizhentas","html_url":"https://github.com/klizhentas","followers_url":"https://api.github.com/users/klizhentas/followers","following_url":"https://api.github.com/users/klizhentas/following{/other_user}","gists_url":"https://api.github.com/users/klizhentas/gists{/gist_id}","starred_url":"https://api.github.com/users/klizhentas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klizhentas/subscriptions","organizations_url":"https://api.github.com/users/klizhentas/orgs","repos_url":"https://api.github.com/users/klizhentas/repos","events_url":"https://api.github.com/users/klizhentas/events{/privacy}","received_events_url":"https://api.github.com/users/klizhentas/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-22T21:03:54Z","updated_at":"2016-03-22T21:16:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7005271420326c2c54c75ddd07f52187fd173e09","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gravitational/version/pulls/2/commits","review_comments_url":"https://api.github.com/repos/gravitational/version/pulls/2/comments","review_comment_url":"https://api.github.com/repos/gravitational/version/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gravitational/version/issues/2/comments","statuses_url":"https://api.github.com/repos/gravitational/version/statuses/8e040b18c66128ea7df80923894f1eaeab6f4268","head":{"label":"gravitational:alexander/tag","ref":"alexander/tag","sha":"8e040b18c66128ea7df80923894f1eaeab6f4268","user":{"login":"gravitational","id":10781132,"avatar_url":"https://avatars.githubusercontent.com/u/10781132?v=3","gravatar_id":"","url":"https://api.github.com/users/gravitational","html_url":"https://github.com/gravitational","followers_url":"https://api.github.com/users/gravitational/followers","following_url":"https://api.github.com/users/gravitational/following{/other_user}","gists_url":"https://api.github.com/users/gravitational/gists{/gist_id}","starred_url":"https://api.github.com/users/gravitational/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravitational/subscriptions","organizations_url":"https://api.github.com/users/gravitational/orgs","repos_url":"https://api.github.com/users/gravitational/repos","events_url":"https://api.github.com/users/gravitational/events{/privacy}","received_events_url":"https://api.github.com/users/gravitational/received_events","type":"Organization","site_admin":false},"repo":{"id":48129516,"name":"version","full_name":"gravitational/version","owner":{"login":"gravitational","id":10781132,"avatar_url":"https://avatars.githubusercontent.com/u/10781132?v=3","gravatar_id":"","url":"https://api.github.com/users/gravitational","html_url":"https://github.com/gravitational","followers_url":"https://api.github.com/users/gravitational/followers","following_url":"https://api.github.com/users/gravitational/following{/other_user}","gists_url":"https://api.github.com/users/gravitational/gists{/gist_id}","starred_url":"https://api.github.com/users/gravitational/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravitational/subscriptions","organizations_url":"https://api.github.com/users/gravitational/orgs","repos_url":"https://api.github.com/users/gravitational/repos","events_url":"https://api.github.com/users/gravitational/events{/privacy}","received_events_url":"https://api.github.com/users/gravitational/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gravitational/version","description":"version is a library that automates the task of adding build version information to any Go package","fork":false,"url":"https://api.github.com/repos/gravitational/version","forks_url":"https://api.github.com/repos/gravitational/version/forks","keys_url":"https://api.github.com/repos/gravitational/version/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gravitational/version/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gravitational/version/teams","hooks_url":"https://api.github.com/repos/gravitational/version/hooks","issue_events_url":"https://api.github.com/repos/gravitational/version/issues/events{/number}","events_url":"https://api.github.com/repos/gravitational/version/events","assignees_url":"https://api.github.com/repos/gravitational/version/assignees{/user}","branches_url":"https://api.github.com/repos/gravitational/version/branches{/branch}","tags_url":"https://api.github.com/repos/gravitational/version/tags","blobs_url":"https://api.github.com/repos/gravitational/version/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gravitational/version/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gravitational/version/git/refs{/sha}","trees_url":"https://api.github.com/repos/gravitational/version/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gravitational/version/statuses/{sha}","languages_url":"https://api.github.com/repos/gravitational/version/languages","stargazers_url":"https://api.github.com/repos/gravitational/version/stargazers","contributors_url":"https://api.github.com/repos/gravitational/version/contributors","subscribers_url":"https://api.github.com/repos/gravitational/version/subscribers","subscription_url":"https://api.github.com/repos/gravitational/version/subscription","commits_url":"https://api.github.com/repos/gravitational/version/commits{/sha}","git_commits_url":"https://api.github.com/repos/gravitational/version/git/commits{/sha}","comments_url":"https://api.github.com/repos/gravitational/version/comments{/number}","issue_comment_url":"https://api.github.com/repos/gravitational/version/issues/comments{/number}","contents_url":"https://api.github.com/repos/gravitational/version/contents/{+path}","compare_url":"https://api.github.com/repos/gravitational/version/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gravitational/version/merges","archive_url":"https://api.github.com/repos/gravitational/version/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gravitational/version/downloads","issues_url":"https://api.github.com/repos/gravitational/version/issues{/number}","pulls_url":"https://api.github.com/repos/gravitational/version/pulls{/number}","milestones_url":"https://api.github.com/repos/gravitational/version/milestones{/number}","notifications_url":"https://api.github.com/repos/gravitational/version/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gravitational/version/labels{/name}","releases_url":"https://api.github.com/repos/gravitational/version/releases{/id}","deployments_url":"https://api.github.com/repos/gravitational/version/deployments","created_at":"2015-12-16T19:07:13Z","updated_at":"2016-02-20T12:06:21Z","pushed_at":"2016-03-22T21:09:08Z","git_url":"git://github.com/gravitational/version.git","ssh_url":"git@github.com:gravitational/version.git","clone_url":"https://github.com/gravitational/version.git","svn_url":"https://github.com/gravitational/version","homepage":null,"size":17,"stargazers_count":5,"watchers_count":5,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":5,"default_branch":"master"}},"base":{"label":"gravitational:master","ref":"master","sha":"cfc6250a884a833eed6ac0417a6f245f5ac49d7a","user":{"login":"gravitational","id":10781132,"avatar_url":"https://avatars.githubusercontent.com/u/10781132?v=3","gravatar_id":"","url":"https://api.github.com/users/gravitational","html_url":"https://github.com/gravitational","followers_url":"https://api.github.com/users/gravitational/followers","following_url":"https://api.github.com/users/gravitational/following{/other_user}","gists_url":"https://api.github.com/users/gravitational/gists{/gist_id}","starred_url":"https://api.github.com/users/gravitational/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravitational/subscriptions","organizations_url":"https://api.github.com/users/gravitational/orgs","repos_url":"https://api.github.com/users/gravitational/repos","events_url":"https://api.github.com/users/gravitational/events{/privacy}","received_events_url":"https://api.github.com/users/gravitational/received_events","type":"Organization","site_admin":false},"repo":{"id":48129516,"name":"version","full_name":"gravitational/version","owner":{"login":"gravitational","id":10781132,"avatar_url":"https://avatars.githubusercontent.com/u/10781132?v=3","gravatar_id":"","url":"https://api.github.com/users/gravitational","html_url":"https://github.com/gravitational","followers_url":"https://api.github.com/users/gravitational/followers","following_url":"https://api.github.com/users/gravitational/following{/other_user}","gists_url":"https://api.github.com/users/gravitational/gists{/gist_id}","starred_url":"https://api.github.com/users/gravitational/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gravitational/subscriptions","organizations_url":"https://api.github.com/users/gravitational/orgs","repos_url":"https://api.github.com/users/gravitational/repos","events_url":"https://api.github.com/users/gravitational/events{/privacy}","received_events_url":"https://api.github.com/users/gravitational/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gravitational/version","description":"version is a library that automates the task of adding build version information to any Go package","fork":false,"url":"https://api.github.com/repos/gravitational/version","forks_url":"https://api.github.com/repos/gravitational/version/forks","keys_url":"https://api.github.com/repos/gravitational/version/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gravitational/version/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gravitational/version/teams","hooks_url":"https://api.github.com/repos/gravitational/version/hooks","issue_events_url":"https://api.github.com/repos/gravitational/version/issues/events{/number}","events_url":"https://api.github.com/repos/gravitational/version/events","assignees_url":"https://api.github.com/repos/gravitational/version/assignees{/user}","branches_url":"https://api.github.com/repos/gravitational/version/branches{/branch}","tags_url":"https://api.github.com/repos/gravitational/version/tags","blobs_url":"https://api.github.com/repos/gravitational/version/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gravitational/version/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gravitational/version/git/refs{/sha}","trees_url":"https://api.github.com/repos/gravitational/version/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gravitational/version/statuses/{sha}","languages_url":"https://api.github.com/repos/gravitational/version/languages","stargazers_url":"https://api.github.com/repos/gravitational/version/stargazers","contributors_url":"https://api.github.com/repos/gravitational/version/contributors","subscribers_url":"https://api.github.com/repos/gravitational/version/subscribers","subscription_url":"https://api.github.com/repos/gravitational/version/subscription","commits_url":"https://api.github.com/repos/gravitational/version/commits{/sha}","git_commits_url":"https://api.github.com/repos/gravitational/version/git/commits{/sha}","comments_url":"https://api.github.com/repos/gravitational/version/comments{/number}","issue_comment_url":"https://api.github.com/repos/gravitational/version/issues/comments{/number}","contents_url":"https://api.github.com/repos/gravitational/version/contents/{+path}","compare_url":"https://api.github.com/repos/gravitational/version/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gravitational/version/merges","archive_url":"https://api.github.com/repos/gravitational/version/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gravitational/version/downloads","issues_url":"https://api.github.com/repos/gravitational/version/issues{/number}","pulls_url":"https://api.github.com/repos/gravitational/version/pulls{/number}","milestones_url":"https://api.github.com/repos/gravitational/version/milestones{/number}","notifications_url":"https://api.github.com/repos/gravitational/version/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gravitational/version/labels{/name}","releases_url":"https://api.github.com/repos/gravitational/version/releases{/id}","deployments_url":"https://api.github.com/repos/gravitational/version/deployments","created_at":"2015-12-16T19:07:13Z","updated_at":"2016-02-20T12:06:21Z","pushed_at":"2016-03-22T21:09:08Z","git_url":"git://github.com/gravitational/version.git","ssh_url":"git@github.com:gravitational/version.git","clone_url":"https://github.com/gravitational/version.git","svn_url":"https://github.com/gravitational/version","homepage":null,"size":17,"stargazers_count":5,"watchers_count":5,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gravitational/version/pulls/2"},"html":{"href":"https://github.com/gravitational/version/pull/2"},"issue":{"href":"https://api.github.com/repos/gravitational/version/issues/2"},"comments":{"href":"https://api.github.com/repos/gravitational/version/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/gravitational/version/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/gravitational/version/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gravitational/version/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/gravitational/version/statuses/8e040b18c66128ea7df80923894f1eaeab6f4268"}}}}