{"action":"created","comment":{"url":"https://api.github.com/repos/input-output-hk/iohk-ops/pulls/comments/201334556","pull_request_review_id":135813320,"id":201334556,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTMzNDU1Ng==","diff_hunk":"@@ -14,8 +14,16 @@\n     openssh.publicKeyPath  = \"/run/keys/buildkite-ssh-public\";\n     tokenPath              = \"/run/keys/buildkite-token\";\n     meta-data              = \"system=x86_64-linux\";\n-    hooksPath              = \"/var/lib/buildkite-agent/hooks\";\n     runtimePackages        = with pkgs; [ gnutar gzip bzip2 xz ];\n+    hooks.pre-command = ''\n+      NIX_PROFILE_BINPATH=/run/current-system/sw/bin\n+      NIX_BUILD=\"$NIX_PROFILE_BINPATH/nix-build\"\n+      NIX_PATH=\"nixpkgs=$(''${NIX_BUILD} fetch-nixpkgs.nix -o nixpkgs)\"\n+      export NIX_REMOTE=daemon\n+      export PATH=\"$NIX_PROFILE_BINPATH:$PATH\"\n+      export NIX_PATH\n+      source /var/lib/buildkite-agent/hooks/pre-command","path":"modules/buildkite-agent.nix","position":13,"original_position":13,"commit_id":"76c9dfb52d1513543c066fc93b93b212be3a7f6f","original_commit_id":"76c9dfb52d1513543c066fc93b93b212be3a7f6f","user":{"login":"rvl","id":1019641,"node_id":"MDQ6VXNlcjEwMTk2NDE=","avatar_url":"https://avatars3.githubusercontent.com/u/1019641?v=4","gravatar_id":"","url":"https://api.github.com/users/rvl","html_url":"https://github.com/rvl","followers_url":"https://api.github.com/users/rvl/followers","following_url":"https://api.github.com/users/rvl/following{/other_user}","gists_url":"https://api.github.com/users/rvl/gists{/gist_id}","starred_url":"https://api.github.com/users/rvl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvl/subscriptions","organizations_url":"https://api.github.com/users/rvl/orgs","repos_url":"https://api.github.com/users/rvl/repos","events_url":"https://api.github.com/users/rvl/events{/privacy}","received_events_url":"https://api.github.com/users/rvl/received_events","type":"User","site_admin":false},"body":"This seems unlikely to continue to work because it relies on state that's not set up by nixos configuration.","created_at":"2018-07-10T13:09:07Z","updated_at":"2018-07-10T13:11:29Z","html_url":"https://github.com/input-output-hk/iohk-ops/pull/370#discussion_r201334556","pull_request_url":"https://api.github.com/repos/input-output-hk/iohk-ops/pulls/370","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/input-output-hk/iohk-ops/pulls/comments/201334556"},"html":{"href":"https://github.com/input-output-hk/iohk-ops/pull/370#discussion_r201334556"},"pull_request":{"href":"https://api.github.com/repos/input-output-hk/iohk-ops/pulls/370"}}},"pull_request":{"url":"https://api.github.com/repos/input-output-hk/iohk-ops/pulls/370","id":199481770,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5NDgxNzcw","html_url":"https://github.com/input-output-hk/iohk-ops/pull/370","diff_url":"https://github.com/input-output-hk/iohk-ops/pull/370.diff","patch_url":"https://github.com/input-output-hk/iohk-ops/pull/370.patch","issue_url":"https://api.github.com/repos/input-output-hk/iohk-ops/issues/370","number":370,"state":"open","locked":false,"title":"[DEVOPS-779] simplify CI setup with buildkite hooks","user":{"login":"disassembler","id":651205,"node_id":"MDQ6VXNlcjY1MTIwNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/651205?v=4","gravatar_id":"","url":"https://api.github.com/users/disassembler","html_url":"https://github.com/disassembler","followers_url":"https://api.github.com/users/disassembler/followers","following_url":"https://api.github.com/users/disassembler/following{/other_user}","gists_url":"https://api.github.com/users/disassembler/gists{/gist_id}","starred_url":"https://api.github.com/users/disassembler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/disassembler/subscriptions","organizations_url":"https://api.github.com/users/disassembler/orgs","repos_url":"https://api.github.com/users/disassembler/repos","events_url":"https://api.github.com/users/disassembler/events{/privacy}","received_events_url":"https://api.github.com/users/disassembler/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-05T14:05:14Z","updated_at":"2018-07-10T13:11:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d4c1287dc474fec0bd87feb01ddc57549cf23bb4","assignee":null,"assignees":[],"requested_reviewers":[{"login":"jmitchell","id":77286,"node_id":"MDQ6VXNlcjc3Mjg2","avatar_url":"https://avatars2.githubusercontent.com/u/77286?v=4","gravatar_id":"","url":"https://api.github.com/users/jmitchell","html_url":"https://github.com/jmitchell","followers_url":"https://api.github.com/users/jmitchell/followers","following_url":"https://api.github.com/users/jmitchell/following{/other_user}","gists_url":"https://api.github.com/users/jmitchell/gists{/gist_id}","starred_url":"https://api.github.com/users/jmitchell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmitchell/subscriptions","organizations_url":"https://api.github.com/users/jmitchell/orgs","repos_url":"https://api.github.com/users/jmitchell/repos","events_url":"https://api.github.com/users/jmitchell/events{/privacy}","received_events_url":"https://api.github.com/users/jmitchell/received_events","type":"User","site_admin":false},{"login":"cleverca22","id":848609,"node_id":"MDQ6VXNlcjg0ODYwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/848609?v=4","gravatar_id":"","url":"https://api.github.com/users/cleverca22","html_url":"https://github.com/cleverca22","followers_url":"https://api.github.com/users/cleverca22/followers","following_url":"https://api.github.com/users/cleverca22/following{/other_user}","gists_url":"https://api.github.com/users/cleverca22/gists{/gist_id}","starred_url":"https://api.github.com/users/cleverca22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cleverca22/subscriptions","organizations_url":"https://api.github.com/users/cleverca22/orgs","repos_url":"https://api.github.com/users/cleverca22/repos","events_url":"https://api.github.com/users/cleverca22/events{/privacy}","received_events_url":"https://api.github.com/users/cleverca22/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/input-output-hk/iohk-ops/pulls/370/commits","review_comments_url":"https://api.github.com/repos/input-output-hk/iohk-ops/pulls/370/comments","review_comment_url":"https://api.github.com/repos/input-output-hk/iohk-ops/pulls/comments{/number}","comments_url":"https://api.github.com/repos/input-output-hk/iohk-ops/issues/370/comments","statuses_url":"https://api.github.com/repos/input-output-hk/iohk-ops/statuses/76c9dfb52d1513543c066fc93b93b212be3a7f6f","head":{"label":"input-output-hk:devops-779-buildkite-hooks","ref":"devops-779-buildkite-hooks","sha":"76c9dfb52d1513543c066fc93b93b212be3a7f6f","user":{"login":"input-output-hk","id":12909177,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTA5MTc3","avatar_url":"https://avatars3.githubusercontent.com/u/12909177?v=4","gravatar_id":"","url":"https://api.github.com/users/input-output-hk","html_url":"https://github.com/input-output-hk","followers_url":"https://api.github.com/users/input-output-hk/followers","following_url":"https://api.github.com/users/input-output-hk/following{/other_user}","gists_url":"https://api.github.com/users/input-output-hk/gists{/gist_id}","starred_url":"https://api.github.com/users/input-output-hk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/input-output-hk/subscriptions","organizations_url":"https://api.github.com/users/input-output-hk/orgs","repos_url":"https://api.github.com/users/input-output-hk/repos","events_url":"https://api.github.com/users/input-output-hk/events{/privacy}","received_events_url":"https://api.github.com/users/input-output-hk/received_events","type":"Organization","site_admin":false},"repo":{"id":72148261,"node_id":"MDEwOlJlcG9zaXRvcnk3MjE0ODI2MQ==","name":"iohk-ops","full_name":"input-output-hk/iohk-ops","owner":{"login":"input-output-hk","id":12909177,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTA5MTc3","avatar_url":"https://avatars3.githubusercontent.com/u/12909177?v=4","gravatar_id":"","url":"https://api.github.com/users/input-output-hk","html_url":"https://github.com/input-output-hk","followers_url":"https://api.github.com/users/input-output-hk/followers","following_url":"https://api.github.com/users/input-output-hk/following{/other_user}","gists_url":"https://api.github.com/users/input-output-hk/gists{/gist_id}","starred_url":"https://api.github.com/users/input-output-hk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/input-output-hk/subscriptions","organizations_url":"https://api.github.com/users/input-output-hk/orgs","repos_url":"https://api.github.com/users/input-output-hk/repos","events_url":"https://api.github.com/users/input-output-hk/events{/privacy}","received_events_url":"https://api.github.com/users/input-output-hk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/input-output-hk/iohk-ops","description":"NixOps deployment configuration for IOHK devops","fork":false,"url":"https://api.github.com/repos/input-output-hk/iohk-ops","forks_url":"https://api.github.com/repos/input-output-hk/iohk-ops/forks","keys_url":"https://api.github.com/repos/input-output-hk/iohk-ops/keys{/key_id}","collaborators_url":"https://api.github.com/repos/input-output-hk/iohk-ops/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/input-output-hk/iohk-ops/teams","hooks_url":"https://api.github.com/repos/input-output-hk/iohk-ops/hooks","issue_events_url":"https://api.github.com/repos/input-output-hk/iohk-ops/issues/events{/number}","events_url":"https://api.github.com/repos/input-output-hk/iohk-ops/events","assignees_url":"https://api.github.com/repos/input-output-hk/iohk-ops/assignees{/user}","branches_url":"https://api.github.com/repos/input-output-hk/iohk-ops/branches{/branch}","tags_url":"https://api.github.com/repos/input-output-hk/iohk-ops/tags","blobs_url":"https://api.github.com/repos/input-output-hk/iohk-ops/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/input-output-hk/iohk-ops/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/input-output-hk/iohk-ops/git/refs{/sha}","trees_url":"https://api.github.com/repos/input-output-hk/iohk-ops/git/trees{/sha}","statuses_url":"https://api.github.com/repos/input-output-hk/iohk-ops/statuses/{sha}","languages_url":"https://api.github.com/repos/input-output-hk/iohk-ops/languages","stargazers_url":"https://api.github.com/repos/input-output-hk/iohk-ops/stargazers","contributors_url":"https://api.github.com/repos/input-output-hk/iohk-ops/contributors","subscribers_url":"https://api.github.com/repos/input-output-hk/iohk-ops/subscribers","subscription_url":"https://api.github.com/repos/input-output-hk/iohk-ops/subscription","commits_url":"https://api.github.com/repos/input-output-hk/iohk-ops/commits{/sha}","git_commits_url":"https://api.github.com/repos/input-output-hk/iohk-ops/git/commits{/sha}","comments_url":"https://api.github.com/repos/input-output-hk/iohk-ops/comments{/number}","issue_comment_url":"https://api.github.com/repos/input-output-hk/iohk-ops/issues/comments{/number}","contents_url":"https://api.github.com/repos/input-output-hk/iohk-ops/contents/{+path}","compare_url":"https://api.github.com/repos/input-output-hk/iohk-ops/compare/{base}...{head}","merges_url":"https://api.github.com/repos/input-output-hk/iohk-ops/merges","archive_url":"https://api.github.com/repos/input-output-hk/iohk-ops/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/input-output-hk/iohk-ops/downloads","issues_url":"https://api.github.com/repos/input-output-hk/iohk-ops/issues{/number}","pulls_url":"https://api.github.com/repos/input-output-hk/iohk-ops/pulls{/number}","milestones_url":"https://api.github.com/repos/input-output-hk/iohk-ops/milestones{/number}","notifications_url":"https://api.github.com/repos/input-output-hk/iohk-ops/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/input-output-hk/iohk-ops/labels{/name}","releases_url":"https://api.github.com/repos/input-output-hk/iohk-ops/releases{/id}","deployments_url":"https://api.github.com/repos/input-output-hk/iohk-ops/deployments","created_at":"2016-10-27T21:05:29Z","updated_at":"2018-07-06T12:35:51Z","pushed_at":"2018-07-09T16:22:54Z","git_url":"git://github.com/input-output-hk/iohk-ops.git","ssh_url":"git@github.com:input-output-hk/iohk-ops.git","clone_url":"https://github.com/input-output-hk/iohk-ops.git","svn_url":"https://github.com/input-output-hk/iohk-ops","homepage":"","size":5749,"stargazers_count":68,"watchers_count":68,"language":"Haskell","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":24,"mirror_url":null,"archived":false,"open_issues_count":14,"license":null,"forks":24,"open_issues":14,"watchers":68,"default_branch":"master"}},"base":{"label":"input-output-hk:master","ref":"master","sha":"d8e86ba15b8094d3fcdf69ad2438d7bd2fb55f9d","user":{"login":"input-output-hk","id":12909177,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTA5MTc3","avatar_url":"https://avatars3.githubusercontent.com/u/12909177?v=4","gravatar_id":"","url":"https://api.github.com/users/input-output-hk","html_url":"https://github.com/input-output-hk","followers_url":"https://api.github.com/users/input-output-hk/followers","following_url":"https://api.github.com/users/input-output-hk/following{/other_user}","gists_url":"https://api.github.com/users/input-output-hk/gists{/gist_id}","starred_url":"https://api.github.com/users/input-output-hk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/input-output-hk/subscriptions","organizations_url":"https://api.github.com/users/input-output-hk/orgs","repos_url":"https://api.github.com/users/input-output-hk/repos","events_url":"https://api.github.com/users/input-output-hk/events{/privacy}","received_events_url":"https://api.github.com/users/input-output-hk/received_events","type":"Organization","site_admin":false},"repo":{"id":72148261,"node_id":"MDEwOlJlcG9zaXRvcnk3MjE0ODI2MQ==","name":"iohk-ops","full_name":"input-output-hk/iohk-ops","owner":{"login":"input-output-hk","id":12909177,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyOTA5MTc3","avatar_url":"https://avatars3.githubusercontent.com/u/12909177?v=4","gravatar_id":"","url":"https://api.github.com/users/input-output-hk","html_url":"https://github.com/input-output-hk","followers_url":"https://api.github.com/users/input-output-hk/followers","following_url":"https://api.github.com/users/input-output-hk/following{/other_user}","gists_url":"https://api.github.com/users/input-output-hk/gists{/gist_id}","starred_url":"https://api.github.com/users/input-output-hk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/input-output-hk/subscriptions","organizations_url":"https://api.github.com/users/input-output-hk/orgs","repos_url":"https://api.github.com/users/input-output-hk/repos","events_url":"https://api.github.com/users/input-output-hk/events{/privacy}","received_events_url":"https://api.github.com/users/input-output-hk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/input-output-hk/iohk-ops","description":"NixOps deployment configuration for IOHK devops","fork":false,"url":"https://api.github.com/repos/input-output-hk/iohk-ops","forks_url":"https://api.github.com/repos/input-output-hk/iohk-ops/forks","keys_url":"https://api.github.com/repos/input-output-hk/iohk-ops/keys{/key_id}","collaborators_url":"https://api.github.com/repos/input-output-hk/iohk-ops/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/input-output-hk/iohk-ops/teams","hooks_url":"https://api.github.com/repos/input-output-hk/iohk-ops/hooks","issue_events_url":"https://api.github.com/repos/input-output-hk/iohk-ops/issues/events{/number}","events_url":"https://api.github.com/repos/input-output-hk/iohk-ops/events","assignees_url":"https://api.github.com/repos/input-output-hk/iohk-ops/assignees{/user}","branches_url":"https://api.github.com/repos/input-output-hk/iohk-ops/branches{/branch}","tags_url":"https://api.github.com/repos/input-output-hk/iohk-ops/tags","blobs_url":"https://api.github.com/repos/input-output-hk/iohk-ops/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/input-output-hk/iohk-ops/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/input-output-hk/iohk-ops/git/refs{/sha}","trees_url":"https://api.github.com/repos/input-output-hk/iohk-ops/git/trees{/sha}","statuses_url":"https://api.github.com/repos/input-output-hk/iohk-ops/statuses/{sha}","languages_url":"https://api.github.com/repos/input-output-hk/iohk-ops/languages","stargazers_url":"https://api.github.com/repos/input-output-hk/iohk-ops/stargazers","contributors_url":"https://api.github.com/repos/input-output-hk/iohk-ops/contributors","subscribers_url":"https://api.github.com/repos/input-output-hk/iohk-ops/subscribers","subscription_url":"https://api.github.com/repos/input-output-hk/iohk-ops/subscription","commits_url":"https://api.github.com/repos/input-output-hk/iohk-ops/commits{/sha}","git_commits_url":"https://api.github.com/repos/input-output-hk/iohk-ops/git/commits{/sha}","comments_url":"https://api.github.com/repos/input-output-hk/iohk-ops/comments{/number}","issue_comment_url":"https://api.github.com/repos/input-output-hk/iohk-ops/issues/comments{/number}","contents_url":"https://api.github.com/repos/input-output-hk/iohk-ops/contents/{+path}","compare_url":"https://api.github.com/repos/input-output-hk/iohk-ops/compare/{base}...{head}","merges_url":"https://api.github.com/repos/input-output-hk/iohk-ops/merges","archive_url":"https://api.github.com/repos/input-output-hk/iohk-ops/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/input-output-hk/iohk-ops/downloads","issues_url":"https://api.github.com/repos/input-output-hk/iohk-ops/issues{/number}","pulls_url":"https://api.github.com/repos/input-output-hk/iohk-ops/pulls{/number}","milestones_url":"https://api.github.com/repos/input-output-hk/iohk-ops/milestones{/number}","notifications_url":"https://api.github.com/repos/input-output-hk/iohk-ops/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/input-output-hk/iohk-ops/labels{/name}","releases_url":"https://api.github.com/repos/input-output-hk/iohk-ops/releases{/id}","deployments_url":"https://api.github.com/repos/input-output-hk/iohk-ops/deployments","created_at":"2016-10-27T21:05:29Z","updated_at":"2018-07-06T12:35:51Z","pushed_at":"2018-07-09T16:22:54Z","git_url":"git://github.com/input-output-hk/iohk-ops.git","ssh_url":"git@github.com:input-output-hk/iohk-ops.git","clone_url":"https://github.com/input-output-hk/iohk-ops.git","svn_url":"https://github.com/input-output-hk/iohk-ops","homepage":"","size":5749,"stargazers_count":68,"watchers_count":68,"language":"Haskell","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":24,"mirror_url":null,"archived":false,"open_issues_count":14,"license":null,"forks":24,"open_issues":14,"watchers":68,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/input-output-hk/iohk-ops/pulls/370"},"html":{"href":"https://github.com/input-output-hk/iohk-ops/pull/370"},"issue":{"href":"https://api.github.com/repos/input-output-hk/iohk-ops/issues/370"},"comments":{"href":"https://api.github.com/repos/input-output-hk/iohk-ops/issues/370/comments"},"review_comments":{"href":"https://api.github.com/repos/input-output-hk/iohk-ops/pulls/370/comments"},"review_comment":{"href":"https://api.github.com/repos/input-output-hk/iohk-ops/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/input-output-hk/iohk-ops/pulls/370/commits"},"statuses":{"href":"https://api.github.com/repos/input-output-hk/iohk-ops/statuses/76c9dfb52d1513543c066fc93b93b212be3a7f6f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"rvl"}}