{"action":"created","comment":{"url":"https://api.github.com/repos/google/go-containerregistry/pulls/comments/195446001","pull_request_review_id":128816749,"id":195446001,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTQ0NjAwMQ==","diff_hunk":"@@ -90,12 +90,14 @@ func (gb *gobuild) IsSupportedReference(s string) bool {\n }\n \n func build(ip string) (string, error) {\n-\tfile, err := ioutil.TempFile(os.TempDir(), \"out\")\n+\ttmpDir, err := ioutil.TempDir(\"\", \"ko\")","path":"pkg/ko/build/gobuild.go","position":5,"original_position":5,"commit_id":"4613cce08edfd68c655d9765cb592dfb7f6dbad4","original_commit_id":"4613cce08edfd68c655d9765cb592dfb7f6dbad4","user":{"login":"mattmoor","id":2442466,"node_id":"MDQ6VXNlcjI0NDI0NjY=","avatar_url":"https://avatars3.githubusercontent.com/u/2442466?v=4","gravatar_id":"","url":"https://api.github.com/users/mattmoor","html_url":"https://github.com/mattmoor","followers_url":"https://api.github.com/users/mattmoor/followers","following_url":"https://api.github.com/users/mattmoor/following{/other_user}","gists_url":"https://api.github.com/users/mattmoor/gists{/gist_id}","starred_url":"https://api.github.com/users/mattmoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattmoor/subscriptions","organizations_url":"https://api.github.com/users/mattmoor/orgs","repos_url":"https://api.github.com/users/mattmoor/repos","events_url":"https://api.github.com/users/mattmoor/events{/privacy}","received_events_url":"https://api.github.com/users/mattmoor/received_events","type":"User","site_admin":false},"body":"that's a neat trick to avoid the `Open` :D","created_at":"2018-06-14T14:30:12Z","updated_at":"2018-06-14T14:30:42Z","html_url":"https://github.com/google/go-containerregistry/pull/214#discussion_r195446001","pull_request_url":"https://api.github.com/repos/google/go-containerregistry/pulls/214","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/google/go-containerregistry/pulls/comments/195446001"},"html":{"href":"https://github.com/google/go-containerregistry/pull/214#discussion_r195446001"},"pull_request":{"href":"https://api.github.com/repos/google/go-containerregistry/pulls/214"}}},"pull_request":{"url":"https://api.github.com/repos/google/go-containerregistry/pulls/214","id":194912839,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0OTEyODM5","html_url":"https://github.com/google/go-containerregistry/pull/214","diff_url":"https://github.com/google/go-containerregistry/pull/214.diff","patch_url":"https://github.com/google/go-containerregistry/pull/214.patch","issue_url":"https://api.github.com/repos/google/go-containerregistry/issues/214","number":214,"state":"open","locked":false,"title":"Avoid creating build output file","user":{"login":"glyn","id":94953,"node_id":"MDQ6VXNlcjk0OTUz","avatar_url":"https://avatars3.githubusercontent.com/u/94953?v=4","gravatar_id":"","url":"https://api.github.com/users/glyn","html_url":"https://github.com/glyn","followers_url":"https://api.github.com/users/glyn/followers","following_url":"https://api.github.com/users/glyn/following{/other_user}","gists_url":"https://api.github.com/users/glyn/gists{/gist_id}","starred_url":"https://api.github.com/users/glyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glyn/subscriptions","organizations_url":"https://api.github.com/users/glyn/orgs","repos_url":"https://api.github.com/users/glyn/repos","events_url":"https://api.github.com/users/glyn/events{/privacy}","received_events_url":"https://api.github.com/users/glyn/received_events","type":"User","site_admin":false},"body":"Create a new build directory for each file and use a fixed file name but don't\r\nopen the file (since that sometimes causes go build to fail).\r\n\r\nFixes https://github.com/google/go-containerregistry/issues/213","created_at":"2018-06-14T14:28:20Z","updated_at":"2018-06-14T14:30:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c9d675bdbb398bbb6cde8d76f4addd6f7d51f541","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/google/go-containerregistry/pulls/214/commits","review_comments_url":"https://api.github.com/repos/google/go-containerregistry/pulls/214/comments","review_comment_url":"https://api.github.com/repos/google/go-containerregistry/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/go-containerregistry/issues/214/comments","statuses_url":"https://api.github.com/repos/google/go-containerregistry/statuses/4613cce08edfd68c655d9765cb592dfb7f6dbad4","head":{"label":"glyn:file-appears-to-be-in-use","ref":"file-appears-to-be-in-use","sha":"4613cce08edfd68c655d9765cb592dfb7f6dbad4","user":{"login":"glyn","id":94953,"node_id":"MDQ6VXNlcjk0OTUz","avatar_url":"https://avatars3.githubusercontent.com/u/94953?v=4","gravatar_id":"","url":"https://api.github.com/users/glyn","html_url":"https://github.com/glyn","followers_url":"https://api.github.com/users/glyn/followers","following_url":"https://api.github.com/users/glyn/following{/other_user}","gists_url":"https://api.github.com/users/glyn/gists{/gist_id}","starred_url":"https://api.github.com/users/glyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glyn/subscriptions","organizations_url":"https://api.github.com/users/glyn/orgs","repos_url":"https://api.github.com/users/glyn/repos","events_url":"https://api.github.com/users/glyn/events{/privacy}","received_events_url":"https://api.github.com/users/glyn/received_events","type":"User","site_admin":false},"repo":{"id":134874119,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQ4NzQxMTk=","name":"go-containerregistry","full_name":"glyn/go-containerregistry","owner":{"login":"glyn","id":94953,"node_id":"MDQ6VXNlcjk0OTUz","avatar_url":"https://avatars3.githubusercontent.com/u/94953?v=4","gravatar_id":"","url":"https://api.github.com/users/glyn","html_url":"https://github.com/glyn","followers_url":"https://api.github.com/users/glyn/followers","following_url":"https://api.github.com/users/glyn/following{/other_user}","gists_url":"https://api.github.com/users/glyn/gists{/gist_id}","starred_url":"https://api.github.com/users/glyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glyn/subscriptions","organizations_url":"https://api.github.com/users/glyn/orgs","repos_url":"https://api.github.com/users/glyn/repos","events_url":"https://api.github.com/users/glyn/events{/privacy}","received_events_url":"https://api.github.com/users/glyn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/glyn/go-containerregistry","description":null,"fork":true,"url":"https://api.github.com/repos/glyn/go-containerregistry","forks_url":"https://api.github.com/repos/glyn/go-containerregistry/forks","keys_url":"https://api.github.com/repos/glyn/go-containerregistry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/glyn/go-containerregistry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/glyn/go-containerregistry/teams","hooks_url":"https://api.github.com/repos/glyn/go-containerregistry/hooks","issue_events_url":"https://api.github.com/repos/glyn/go-containerregistry/issues/events{/number}","events_url":"https://api.github.com/repos/glyn/go-containerregistry/events","assignees_url":"https://api.github.com/repos/glyn/go-containerregistry/assignees{/user}","branches_url":"https://api.github.com/repos/glyn/go-containerregistry/branches{/branch}","tags_url":"https://api.github.com/repos/glyn/go-containerregistry/tags","blobs_url":"https://api.github.com/repos/glyn/go-containerregistry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/glyn/go-containerregistry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/glyn/go-containerregistry/git/refs{/sha}","trees_url":"https://api.github.com/repos/glyn/go-containerregistry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/glyn/go-containerregistry/statuses/{sha}","languages_url":"https://api.github.com/repos/glyn/go-containerregistry/languages","stargazers_url":"https://api.github.com/repos/glyn/go-containerregistry/stargazers","contributors_url":"https://api.github.com/repos/glyn/go-containerregistry/contributors","subscribers_url":"https://api.github.com/repos/glyn/go-containerregistry/subscribers","subscription_url":"https://api.github.com/repos/glyn/go-containerregistry/subscription","commits_url":"https://api.github.com/repos/glyn/go-containerregistry/commits{/sha}","git_commits_url":"https://api.github.com/repos/glyn/go-containerregistry/git/commits{/sha}","comments_url":"https://api.github.com/repos/glyn/go-containerregistry/comments{/number}","issue_comment_url":"https://api.github.com/repos/glyn/go-containerregistry/issues/comments{/number}","contents_url":"https://api.github.com/repos/glyn/go-containerregistry/contents/{+path}","compare_url":"https://api.github.com/repos/glyn/go-containerregistry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/glyn/go-containerregistry/merges","archive_url":"https://api.github.com/repos/glyn/go-containerregistry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/glyn/go-containerregistry/downloads","issues_url":"https://api.github.com/repos/glyn/go-containerregistry/issues{/number}","pulls_url":"https://api.github.com/repos/glyn/go-containerregistry/pulls{/number}","milestones_url":"https://api.github.com/repos/glyn/go-containerregistry/milestones{/number}","notifications_url":"https://api.github.com/repos/glyn/go-containerregistry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/glyn/go-containerregistry/labels{/name}","releases_url":"https://api.github.com/repos/glyn/go-containerregistry/releases{/id}","deployments_url":"https://api.github.com/repos/glyn/go-containerregistry/deployments","created_at":"2018-05-25T15:29:36Z","updated_at":"2018-05-25T15:29:38Z","pushed_at":"2018-06-14T14:27:54Z","git_url":"git://github.com/glyn/go-containerregistry.git","ssh_url":"git@github.com:glyn/go-containerregistry.git","clone_url":"https://github.com/glyn/go-containerregistry.git","svn_url":"https://github.com/glyn/go-containerregistry","homepage":null,"size":2067,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"d5ae41de3d3c22d36b735f5d5e3fb42d1ba32f25","user":{"login":"google","id":1342004,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDIwMDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":125253663,"node_id":"MDEwOlJlcG9zaXRvcnkxMjUyNTM2NjM=","name":"go-containerregistry","full_name":"google/go-containerregistry","owner":{"login":"google","id":1342004,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDIwMDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/go-containerregistry","description":null,"fork":false,"url":"https://api.github.com/repos/google/go-containerregistry","forks_url":"https://api.github.com/repos/google/go-containerregistry/forks","keys_url":"https://api.github.com/repos/google/go-containerregistry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/go-containerregistry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/go-containerregistry/teams","hooks_url":"https://api.github.com/repos/google/go-containerregistry/hooks","issue_events_url":"https://api.github.com/repos/google/go-containerregistry/issues/events{/number}","events_url":"https://api.github.com/repos/google/go-containerregistry/events","assignees_url":"https://api.github.com/repos/google/go-containerregistry/assignees{/user}","branches_url":"https://api.github.com/repos/google/go-containerregistry/branches{/branch}","tags_url":"https://api.github.com/repos/google/go-containerregistry/tags","blobs_url":"https://api.github.com/repos/google/go-containerregistry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/go-containerregistry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/go-containerregistry/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/go-containerregistry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/go-containerregistry/statuses/{sha}","languages_url":"https://api.github.com/repos/google/go-containerregistry/languages","stargazers_url":"https://api.github.com/repos/google/go-containerregistry/stargazers","contributors_url":"https://api.github.com/repos/google/go-containerregistry/contributors","subscribers_url":"https://api.github.com/repos/google/go-containerregistry/subscribers","subscription_url":"https://api.github.com/repos/google/go-containerregistry/subscription","commits_url":"https://api.github.com/repos/google/go-containerregistry/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/go-containerregistry/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/go-containerregistry/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/go-containerregistry/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/go-containerregistry/contents/{+path}","compare_url":"https://api.github.com/repos/google/go-containerregistry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/go-containerregistry/merges","archive_url":"https://api.github.com/repos/google/go-containerregistry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/go-containerregistry/downloads","issues_url":"https://api.github.com/repos/google/go-containerregistry/issues{/number}","pulls_url":"https://api.github.com/repos/google/go-containerregistry/pulls{/number}","milestones_url":"https://api.github.com/repos/google/go-containerregistry/milestones{/number}","notifications_url":"https://api.github.com/repos/google/go-containerregistry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/go-containerregistry/labels{/name}","releases_url":"https://api.github.com/repos/google/go-containerregistry/releases{/id}","deployments_url":"https://api.github.com/repos/google/go-containerregistry/deployments","created_at":"2018-03-14T18:02:49Z","updated_at":"2018-06-13T18:36:03Z","pushed_at":"2018-06-14T14:28:21Z","git_url":"git://github.com/google/go-containerregistry.git","ssh_url":"git@github.com:google/go-containerregistry.git","clone_url":"https://github.com/google/go-containerregistry.git","svn_url":"https://github.com/google/go-containerregistry","homepage":null,"size":2474,"stargazers_count":71,"watchers_count":71,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":34,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":20,"open_issues":34,"watchers":71,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/go-containerregistry/pulls/214"},"html":{"href":"https://github.com/google/go-containerregistry/pull/214"},"issue":{"href":"https://api.github.com/repos/google/go-containerregistry/issues/214"},"comments":{"href":"https://api.github.com/repos/google/go-containerregistry/issues/214/comments"},"review_comments":{"href":"https://api.github.com/repos/google/go-containerregistry/pulls/214/comments"},"review_comment":{"href":"https://api.github.com/repos/google/go-containerregistry/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/go-containerregistry/pulls/214/commits"},"statuses":{"href":"https://api.github.com/repos/google/go-containerregistry/statuses/4613cce08edfd68c655d9765cb592dfb7f6dbad4"}},"author_association":"NONE"}}
{"actor":{"display_login":"mattmoor"}}