{"action":"created","comment":{"url":"https://api.github.com/repos/paultag/go-debian/pulls/comments/37135054","id":37135054,"diff_hunk":"@@ -66,8 +66,8 @@ func (d *DebianFileHash) Validate() (bool, error) {\n \tif err != nil {\n \t\treturn false, err\n \t}\n-\tif size := stat.Size(); size != int64(d.Size) {\n-\t\treturn false, fmt.Errorf(\"Error! Size mismatch! %d != %d\", size, d.Size)","path":"control/filehash.go","position":14,"original_position":14,"commit_id":"166c78d938ee7a57d21a67a9718e42520dbd6ecd","original_commit_id":"166c78d938ee7a57d21a67a9718e42520dbd6ecd","user":{"login":"tianon","id":161631,"avatar_url":"https://avatars.githubusercontent.com/u/161631?v=3","gravatar_id":"","url":"https://api.github.com/users/tianon","html_url":"https://github.com/tianon","followers_url":"https://api.github.com/users/tianon/followers","following_url":"https://api.github.com/users/tianon/following{/other_user}","gists_url":"https://api.github.com/users/tianon/gists{/gist_id}","starred_url":"https://api.github.com/users/tianon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianon/subscriptions","organizations_url":"https://api.github.com/users/tianon/orgs","repos_url":"https://api.github.com/users/tianon/repos","events_url":"https://api.github.com/users/tianon/events{/privacy}","received_events_url":"https://api.github.com/users/tianon/received_events","type":"User","site_admin":false},"body":"btw, I switched the message here to not include `Error` because that part of the text is already implied by the type, so usually this is displayed with something like `\"error doing %s: %v\\n\", \"some-task\", err`, so the extra `Error!` is kind of silly :smile:","created_at":"2015-08-15T10:00:28Z","updated_at":"2015-08-15T10:00:28Z","html_url":"https://github.com/paultag/go-debian/pull/15#discussion_r37135054","pull_request_url":"https://api.github.com/repos/paultag/go-debian/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/paultag/go-debian/pulls/comments/37135054"},"html":{"href":"https://github.com/paultag/go-debian/pull/15#discussion_r37135054"},"pull_request":{"href":"https://api.github.com/repos/paultag/go-debian/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/paultag/go-debian/pulls/15","id":42517018,"html_url":"https://github.com/paultag/go-debian/pull/15","diff_url":"https://github.com/paultag/go-debian/pull/15.diff","patch_url":"https://github.com/paultag/go-debian/pull/15.patch","issue_url":"https://api.github.com/repos/paultag/go-debian/issues/15","number":15,"state":"open","locked":false,"title":"Convert \"DebianFileHash.Size\" to int64 (just in case)","user":{"login":"tianon","id":161631,"avatar_url":"https://avatars.githubusercontent.com/u/161631?v=3","gravatar_id":"","url":"https://api.github.com/users/tianon","html_url":"https://github.com/tianon","followers_url":"https://api.github.com/users/tianon/followers","following_url":"https://api.github.com/users/tianon/following{/other_user}","gists_url":"https://api.github.com/users/tianon/gists{/gist_id}","starred_url":"https://api.github.com/users/tianon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianon/subscriptions","organizations_url":"https://api.github.com/users/tianon/orgs","repos_url":"https://api.github.com/users/tianon/repos","events_url":"https://api.github.com/users/tianon/events{/privacy}","received_events_url":"https://api.github.com/users/tianon/received_events","type":"User","site_admin":false},"body":"This makes it match the stdlib `FileInfo` struct's size. :+1:","created_at":"2015-08-15T09:54:57Z","updated_at":"2015-08-15T10:00:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7fbe3f5f8cf36271736e1a4338476c9de42404fb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/paultag/go-debian/pulls/15/commits","review_comments_url":"https://api.github.com/repos/paultag/go-debian/pulls/15/comments","review_comment_url":"https://api.github.com/repos/paultag/go-debian/pulls/comments{/number}","comments_url":"https://api.github.com/repos/paultag/go-debian/issues/15/comments","statuses_url":"https://api.github.com/repos/paultag/go-debian/statuses/166c78d938ee7a57d21a67a9718e42520dbd6ecd","head":{"label":"tianon:int64-file-size","ref":"int64-file-size","sha":"166c78d938ee7a57d21a67a9718e42520dbd6ecd","user":{"login":"tianon","id":161631,"avatar_url":"https://avatars.githubusercontent.com/u/161631?v=3","gravatar_id":"","url":"https://api.github.com/users/tianon","html_url":"https://github.com/tianon","followers_url":"https://api.github.com/users/tianon/followers","following_url":"https://api.github.com/users/tianon/following{/other_user}","gists_url":"https://api.github.com/users/tianon/gists{/gist_id}","starred_url":"https://api.github.com/users/tianon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianon/subscriptions","organizations_url":"https://api.github.com/users/tianon/orgs","repos_url":"https://api.github.com/users/tianon/repos","events_url":"https://api.github.com/users/tianon/events{/privacy}","received_events_url":"https://api.github.com/users/tianon/received_events","type":"User","site_admin":false},"repo":{"id":40670471,"name":"go-debian","full_name":"tianon/go-debian","owner":{"login":"tianon","id":161631,"avatar_url":"https://avatars.githubusercontent.com/u/161631?v=3","gravatar_id":"","url":"https://api.github.com/users/tianon","html_url":"https://github.com/tianon","followers_url":"https://api.github.com/users/tianon/followers","following_url":"https://api.github.com/users/tianon/following{/other_user}","gists_url":"https://api.github.com/users/tianon/gists{/gist_id}","starred_url":"https://api.github.com/users/tianon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianon/subscriptions","organizations_url":"https://api.github.com/users/tianon/orgs","repos_url":"https://api.github.com/users/tianon/repos","events_url":"https://api.github.com/users/tianon/events{/privacy}","received_events_url":"https://api.github.com/users/tianon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tianon/go-debian","description":"","fork":true,"url":"https://api.github.com/repos/tianon/go-debian","forks_url":"https://api.github.com/repos/tianon/go-debian/forks","keys_url":"https://api.github.com/repos/tianon/go-debian/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tianon/go-debian/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tianon/go-debian/teams","hooks_url":"https://api.github.com/repos/tianon/go-debian/hooks","issue_events_url":"https://api.github.com/repos/tianon/go-debian/issues/events{/number}","events_url":"https://api.github.com/repos/tianon/go-debian/events","assignees_url":"https://api.github.com/repos/tianon/go-debian/assignees{/user}","branches_url":"https://api.github.com/repos/tianon/go-debian/branches{/branch}","tags_url":"https://api.github.com/repos/tianon/go-debian/tags","blobs_url":"https://api.github.com/repos/tianon/go-debian/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tianon/go-debian/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tianon/go-debian/git/refs{/sha}","trees_url":"https://api.github.com/repos/tianon/go-debian/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tianon/go-debian/statuses/{sha}","languages_url":"https://api.github.com/repos/tianon/go-debian/languages","stargazers_url":"https://api.github.com/repos/tianon/go-debian/stargazers","contributors_url":"https://api.github.com/repos/tianon/go-debian/contributors","subscribers_url":"https://api.github.com/repos/tianon/go-debian/subscribers","subscription_url":"https://api.github.com/repos/tianon/go-debian/subscription","commits_url":"https://api.github.com/repos/tianon/go-debian/commits{/sha}","git_commits_url":"https://api.github.com/repos/tianon/go-debian/git/commits{/sha}","comments_url":"https://api.github.com/repos/tianon/go-debian/comments{/number}","issue_comment_url":"https://api.github.com/repos/tianon/go-debian/issues/comments{/number}","contents_url":"https://api.github.com/repos/tianon/go-debian/contents/{+path}","compare_url":"https://api.github.com/repos/tianon/go-debian/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tianon/go-debian/merges","archive_url":"https://api.github.com/repos/tianon/go-debian/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tianon/go-debian/downloads","issues_url":"https://api.github.com/repos/tianon/go-debian/issues{/number}","pulls_url":"https://api.github.com/repos/tianon/go-debian/pulls{/number}","milestones_url":"https://api.github.com/repos/tianon/go-debian/milestones{/number}","notifications_url":"https://api.github.com/repos/tianon/go-debian/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tianon/go-debian/labels{/name}","releases_url":"https://api.github.com/repos/tianon/go-debian/releases{/id}","created_at":"2015-08-13T16:47:14Z","updated_at":"2015-08-13T16:47:15Z","pushed_at":"2015-08-15T09:58:42Z","git_url":"git://github.com/tianon/go-debian.git","ssh_url":"git@github.com:tianon/go-debian.git","clone_url":"https://github.com/tianon/go-debian.git","svn_url":"https://github.com/tianon/go-debian","homepage":null,"size":456,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"paultag:master","ref":"master","sha":"b45fa060325a3942f4503154b73274718619d587","user":{"login":"paultag","id":132447,"avatar_url":"https://avatars.githubusercontent.com/u/132447?v=3","gravatar_id":"","url":"https://api.github.com/users/paultag","html_url":"https://github.com/paultag","followers_url":"https://api.github.com/users/paultag/followers","following_url":"https://api.github.com/users/paultag/following{/other_user}","gists_url":"https://api.github.com/users/paultag/gists{/gist_id}","starred_url":"https://api.github.com/users/paultag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paultag/subscriptions","organizations_url":"https://api.github.com/users/paultag/orgs","repos_url":"https://api.github.com/users/paultag/repos","events_url":"https://api.github.com/users/paultag/events{/privacy}","received_events_url":"https://api.github.com/users/paultag/received_events","type":"User","site_admin":false},"repo":{"id":35308669,"name":"go-debian","full_name":"paultag/go-debian","owner":{"login":"paultag","id":132447,"avatar_url":"https://avatars.githubusercontent.com/u/132447?v=3","gravatar_id":"","url":"https://api.github.com/users/paultag","html_url":"https://github.com/paultag","followers_url":"https://api.github.com/users/paultag/followers","following_url":"https://api.github.com/users/paultag/following{/other_user}","gists_url":"https://api.github.com/users/paultag/gists{/gist_id}","starred_url":"https://api.github.com/users/paultag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paultag/subscriptions","organizations_url":"https://api.github.com/users/paultag/orgs","repos_url":"https://api.github.com/users/paultag/repos","events_url":"https://api.github.com/users/paultag/events{/privacy}","received_events_url":"https://api.github.com/users/paultag/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paultag/go-debian","description":"","fork":false,"url":"https://api.github.com/repos/paultag/go-debian","forks_url":"https://api.github.com/repos/paultag/go-debian/forks","keys_url":"https://api.github.com/repos/paultag/go-debian/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paultag/go-debian/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paultag/go-debian/teams","hooks_url":"https://api.github.com/repos/paultag/go-debian/hooks","issue_events_url":"https://api.github.com/repos/paultag/go-debian/issues/events{/number}","events_url":"https://api.github.com/repos/paultag/go-debian/events","assignees_url":"https://api.github.com/repos/paultag/go-debian/assignees{/user}","branches_url":"https://api.github.com/repos/paultag/go-debian/branches{/branch}","tags_url":"https://api.github.com/repos/paultag/go-debian/tags","blobs_url":"https://api.github.com/repos/paultag/go-debian/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paultag/go-debian/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paultag/go-debian/git/refs{/sha}","trees_url":"https://api.github.com/repos/paultag/go-debian/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paultag/go-debian/statuses/{sha}","languages_url":"https://api.github.com/repos/paultag/go-debian/languages","stargazers_url":"https://api.github.com/repos/paultag/go-debian/stargazers","contributors_url":"https://api.github.com/repos/paultag/go-debian/contributors","subscribers_url":"https://api.github.com/repos/paultag/go-debian/subscribers","subscription_url":"https://api.github.com/repos/paultag/go-debian/subscription","commits_url":"https://api.github.com/repos/paultag/go-debian/commits{/sha}","git_commits_url":"https://api.github.com/repos/paultag/go-debian/git/commits{/sha}","comments_url":"https://api.github.com/repos/paultag/go-debian/comments{/number}","issue_comment_url":"https://api.github.com/repos/paultag/go-debian/issues/comments{/number}","contents_url":"https://api.github.com/repos/paultag/go-debian/contents/{+path}","compare_url":"https://api.github.com/repos/paultag/go-debian/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paultag/go-debian/merges","archive_url":"https://api.github.com/repos/paultag/go-debian/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paultag/go-debian/downloads","issues_url":"https://api.github.com/repos/paultag/go-debian/issues{/number}","pulls_url":"https://api.github.com/repos/paultag/go-debian/pulls{/number}","milestones_url":"https://api.github.com/repos/paultag/go-debian/milestones{/number}","notifications_url":"https://api.github.com/repos/paultag/go-debian/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paultag/go-debian/labels{/name}","releases_url":"https://api.github.com/repos/paultag/go-debian/releases{/id}","created_at":"2015-05-09T00:44:27Z","updated_at":"2015-05-10T19:55:32Z","pushed_at":"2015-08-15T09:56:56Z","git_url":"git://github.com/paultag/go-debian.git","ssh_url":"git@github.com:paultag/go-debian.git","clone_url":"https://github.com/paultag/go-debian.git","svn_url":"https://github.com/paultag/go-debian","homepage":null,"size":456,"stargazers_count":1,"watchers_count":1,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":6,"forks":1,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/paultag/go-debian/pulls/15"},"html":{"href":"https://github.com/paultag/go-debian/pull/15"},"issue":{"href":"https://api.github.com/repos/paultag/go-debian/issues/15"},"comments":{"href":"https://api.github.com/repos/paultag/go-debian/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/paultag/go-debian/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/paultag/go-debian/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/paultag/go-debian/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/paultag/go-debian/statuses/166c78d938ee7a57d21a67a9718e42520dbd6ecd"}}}}