{"action":"closed","number":806,"pull_request":{"url":"https://api.github.com/repos/prometheus/prometheus/pulls/806","id":37647784,"html_url":"https://github.com/prometheus/prometheus/pull/806","diff_url":"https://github.com/prometheus/prometheus/pull/806.diff","patch_url":"https://github.com/prometheus/prometheus/pull/806.patch","issue_url":"https://api.github.com/repos/prometheus/prometheus/issues/806","number":806,"state":"closed","locked":false,"title":"Handle building without git.","user":{"login":"metcalfc","id":31925,"avatar_url":"https://avatars.githubusercontent.com/u/31925?v=3","gravatar_id":"","url":"https://api.github.com/users/metcalfc","html_url":"https://github.com/metcalfc","followers_url":"https://api.github.com/users/metcalfc/followers","following_url":"https://api.github.com/users/metcalfc/following{/other_user}","gists_url":"https://api.github.com/users/metcalfc/gists{/gist_id}","starred_url":"https://api.github.com/users/metcalfc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metcalfc/subscriptions","organizations_url":"https://api.github.com/users/metcalfc/orgs","repos_url":"https://api.github.com/users/metcalfc/repos","events_url":"https://api.github.com/users/metcalfc/events{/privacy}","received_events_url":"https://api.github.com/users/metcalfc/received_events","type":"User","site_admin":false},"body":"Resolves #609 by removing two dependencies on git.\r\n  - Use the Makefile to find the current directory.\r\n  - In the case of building from an archive fall back to fixed REV\r\nand BRANCH values.\r\n\r\nRelated to #707.  @matthiasr and @juliusv I made a couple of assumptions I'm happy to change. \r\n- In the case of the current_path it seemed that finding the root was important (over just using say PWD or CURDIR). So I'm pulling that out of the Makefile. This would find the project root regardless of where make was called from.\r\n- For REV and BRANCH I picked 'archive' and 'none' respectively for the built from archive. This should allow folks to understand the provenance of these builds from  `--version` clearly. For example:\r\n\r\n```\r\n$ prometheus --version\r\nprometheus, version 0.14.0 (branch: none, revision: archive)\r\n  build user:       metcalfc@transtainer.local\r\n  build date:       20150614-13:01:10\r\n  go version:       1.4.2\r\n```","created_at":"2015-06-14T20:24:27Z","updated_at":"2015-06-15T19:38:05Z","closed_at":"2015-06-15T19:38:05Z","merged_at":"2015-06-15T19:38:05Z","merge_commit_sha":"99180ac6347b8ce987f7537b683f77d62fdb9cef","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/prometheus/prometheus/pulls/806/commits","review_comments_url":"https://api.github.com/repos/prometheus/prometheus/pulls/806/comments","review_comment_url":"https://api.github.com/repos/prometheus/prometheus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/prometheus/prometheus/issues/806/comments","statuses_url":"https://api.github.com/repos/prometheus/prometheus/statuses/af52579189f48c3f2c83d3a115f5873c7328291f","head":{"label":"metcalfc:fix_609","ref":"fix_609","sha":"af52579189f48c3f2c83d3a115f5873c7328291f","user":{"login":"metcalfc","id":31925,"avatar_url":"https://avatars.githubusercontent.com/u/31925?v=3","gravatar_id":"","url":"https://api.github.com/users/metcalfc","html_url":"https://github.com/metcalfc","followers_url":"https://api.github.com/users/metcalfc/followers","following_url":"https://api.github.com/users/metcalfc/following{/other_user}","gists_url":"https://api.github.com/users/metcalfc/gists{/gist_id}","starred_url":"https://api.github.com/users/metcalfc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metcalfc/subscriptions","organizations_url":"https://api.github.com/users/metcalfc/orgs","repos_url":"https://api.github.com/users/metcalfc/repos","events_url":"https://api.github.com/users/metcalfc/events{/privacy}","received_events_url":"https://api.github.com/users/metcalfc/received_events","type":"User","site_admin":false},"repo":{"id":37427921,"name":"prometheus","full_name":"metcalfc/prometheus","owner":{"login":"metcalfc","id":31925,"avatar_url":"https://avatars.githubusercontent.com/u/31925?v=3","gravatar_id":"","url":"https://api.github.com/users/metcalfc","html_url":"https://github.com/metcalfc","followers_url":"https://api.github.com/users/metcalfc/followers","following_url":"https://api.github.com/users/metcalfc/following{/other_user}","gists_url":"https://api.github.com/users/metcalfc/gists{/gist_id}","starred_url":"https://api.github.com/users/metcalfc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metcalfc/subscriptions","organizations_url":"https://api.github.com/users/metcalfc/orgs","repos_url":"https://api.github.com/users/metcalfc/repos","events_url":"https://api.github.com/users/metcalfc/events{/privacy}","received_events_url":"https://api.github.com/users/metcalfc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/metcalfc/prometheus","description":"The Prometheus monitoring system and time series database.","fork":true,"url":"https://api.github.com/repos/metcalfc/prometheus","forks_url":"https://api.github.com/repos/metcalfc/prometheus/forks","keys_url":"https://api.github.com/repos/metcalfc/prometheus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/metcalfc/prometheus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/metcalfc/prometheus/teams","hooks_url":"https://api.github.com/repos/metcalfc/prometheus/hooks","issue_events_url":"https://api.github.com/repos/metcalfc/prometheus/issues/events{/number}","events_url":"https://api.github.com/repos/metcalfc/prometheus/events","assignees_url":"https://api.github.com/repos/metcalfc/prometheus/assignees{/user}","branches_url":"https://api.github.com/repos/metcalfc/prometheus/branches{/branch}","tags_url":"https://api.github.com/repos/metcalfc/prometheus/tags","blobs_url":"https://api.github.com/repos/metcalfc/prometheus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/metcalfc/prometheus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/metcalfc/prometheus/git/refs{/sha}","trees_url":"https://api.github.com/repos/metcalfc/prometheus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/metcalfc/prometheus/statuses/{sha}","languages_url":"https://api.github.com/repos/metcalfc/prometheus/languages","stargazers_url":"https://api.github.com/repos/metcalfc/prometheus/stargazers","contributors_url":"https://api.github.com/repos/metcalfc/prometheus/contributors","subscribers_url":"https://api.github.com/repos/metcalfc/prometheus/subscribers","subscription_url":"https://api.github.com/repos/metcalfc/prometheus/subscription","commits_url":"https://api.github.com/repos/metcalfc/prometheus/commits{/sha}","git_commits_url":"https://api.github.com/repos/metcalfc/prometheus/git/commits{/sha}","comments_url":"https://api.github.com/repos/metcalfc/prometheus/comments{/number}","issue_comment_url":"https://api.github.com/repos/metcalfc/prometheus/issues/comments{/number}","contents_url":"https://api.github.com/repos/metcalfc/prometheus/contents/{+path}","compare_url":"https://api.github.com/repos/metcalfc/prometheus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/metcalfc/prometheus/merges","archive_url":"https://api.github.com/repos/metcalfc/prometheus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/metcalfc/prometheus/downloads","issues_url":"https://api.github.com/repos/metcalfc/prometheus/issues{/number}","pulls_url":"https://api.github.com/repos/metcalfc/prometheus/pulls{/number}","milestones_url":"https://api.github.com/repos/metcalfc/prometheus/milestones{/number}","notifications_url":"https://api.github.com/repos/metcalfc/prometheus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/metcalfc/prometheus/labels{/name}","releases_url":"https://api.github.com/repos/metcalfc/prometheus/releases{/id}","created_at":"2015-06-14T20:12:12Z","updated_at":"2015-06-14T20:12:13Z","pushed_at":"2015-06-15T19:20:41Z","git_url":"git://github.com/metcalfc/prometheus.git","ssh_url":"git@github.com:metcalfc/prometheus.git","clone_url":"https://github.com/metcalfc/prometheus.git","svn_url":"https://github.com/metcalfc/prometheus","homepage":"http://prometheus.io/","size":18769,"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":"prometheus:master","ref":"master","sha":"330ed7b9f25c10a7fee43c0ea62da9984de0e573","user":{"login":"prometheus","id":3380462,"avatar_url":"https://avatars.githubusercontent.com/u/3380462?v=3","gravatar_id":"","url":"https://api.github.com/users/prometheus","html_url":"https://github.com/prometheus","followers_url":"https://api.github.com/users/prometheus/followers","following_url":"https://api.github.com/users/prometheus/following{/other_user}","gists_url":"https://api.github.com/users/prometheus/gists{/gist_id}","starred_url":"https://api.github.com/users/prometheus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prometheus/subscriptions","organizations_url":"https://api.github.com/users/prometheus/orgs","repos_url":"https://api.github.com/users/prometheus/repos","events_url":"https://api.github.com/users/prometheus/events{/privacy}","received_events_url":"https://api.github.com/users/prometheus/received_events","type":"Organization","site_admin":false},"repo":{"id":6838921,"name":"prometheus","full_name":"prometheus/prometheus","owner":{"login":"prometheus","id":3380462,"avatar_url":"https://avatars.githubusercontent.com/u/3380462?v=3","gravatar_id":"","url":"https://api.github.com/users/prometheus","html_url":"https://github.com/prometheus","followers_url":"https://api.github.com/users/prometheus/followers","following_url":"https://api.github.com/users/prometheus/following{/other_user}","gists_url":"https://api.github.com/users/prometheus/gists{/gist_id}","starred_url":"https://api.github.com/users/prometheus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prometheus/subscriptions","organizations_url":"https://api.github.com/users/prometheus/orgs","repos_url":"https://api.github.com/users/prometheus/repos","events_url":"https://api.github.com/users/prometheus/events{/privacy}","received_events_url":"https://api.github.com/users/prometheus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/prometheus/prometheus","description":"The Prometheus monitoring system and time series database.","fork":false,"url":"https://api.github.com/repos/prometheus/prometheus","forks_url":"https://api.github.com/repos/prometheus/prometheus/forks","keys_url":"https://api.github.com/repos/prometheus/prometheus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prometheus/prometheus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prometheus/prometheus/teams","hooks_url":"https://api.github.com/repos/prometheus/prometheus/hooks","issue_events_url":"https://api.github.com/repos/prometheus/prometheus/issues/events{/number}","events_url":"https://api.github.com/repos/prometheus/prometheus/events","assignees_url":"https://api.github.com/repos/prometheus/prometheus/assignees{/user}","branches_url":"https://api.github.com/repos/prometheus/prometheus/branches{/branch}","tags_url":"https://api.github.com/repos/prometheus/prometheus/tags","blobs_url":"https://api.github.com/repos/prometheus/prometheus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prometheus/prometheus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prometheus/prometheus/git/refs{/sha}","trees_url":"https://api.github.com/repos/prometheus/prometheus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prometheus/prometheus/statuses/{sha}","languages_url":"https://api.github.com/repos/prometheus/prometheus/languages","stargazers_url":"https://api.github.com/repos/prometheus/prometheus/stargazers","contributors_url":"https://api.github.com/repos/prometheus/prometheus/contributors","subscribers_url":"https://api.github.com/repos/prometheus/prometheus/subscribers","subscription_url":"https://api.github.com/repos/prometheus/prometheus/subscription","commits_url":"https://api.github.com/repos/prometheus/prometheus/commits{/sha}","git_commits_url":"https://api.github.com/repos/prometheus/prometheus/git/commits{/sha}","comments_url":"https://api.github.com/repos/prometheus/prometheus/comments{/number}","issue_comment_url":"https://api.github.com/repos/prometheus/prometheus/issues/comments{/number}","contents_url":"https://api.github.com/repos/prometheus/prometheus/contents/{+path}","compare_url":"https://api.github.com/repos/prometheus/prometheus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prometheus/prometheus/merges","archive_url":"https://api.github.com/repos/prometheus/prometheus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prometheus/prometheus/downloads","issues_url":"https://api.github.com/repos/prometheus/prometheus/issues{/number}","pulls_url":"https://api.github.com/repos/prometheus/prometheus/pulls{/number}","milestones_url":"https://api.github.com/repos/prometheus/prometheus/milestones{/number}","notifications_url":"https://api.github.com/repos/prometheus/prometheus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prometheus/prometheus/labels{/name}","releases_url":"https://api.github.com/repos/prometheus/prometheus/releases{/id}","created_at":"2012-11-24T11:14:12Z","updated_at":"2015-06-15T17:30:32Z","pushed_at":"2015-06-15T19:38:05Z","git_url":"git://github.com/prometheus/prometheus.git","ssh_url":"git@github.com:prometheus/prometheus.git","clone_url":"https://github.com/prometheus/prometheus.git","svn_url":"https://github.com/prometheus/prometheus","homepage":"http://prometheus.io/","size":18769,"stargazers_count":2301,"watchers_count":2301,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":132,"mirror_url":null,"open_issues_count":80,"forks":132,"open_issues":80,"watchers":2301,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/prometheus/prometheus/pulls/806"},"html":{"href":"https://github.com/prometheus/prometheus/pull/806"},"issue":{"href":"https://api.github.com/repos/prometheus/prometheus/issues/806"},"comments":{"href":"https://api.github.com/repos/prometheus/prometheus/issues/806/comments"},"review_comments":{"href":"https://api.github.com/repos/prometheus/prometheus/pulls/806/comments"},"review_comment":{"href":"https://api.github.com/repos/prometheus/prometheus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/prometheus/prometheus/pulls/806/commits"},"statuses":{"href":"https://api.github.com/repos/prometheus/prometheus/statuses/af52579189f48c3f2c83d3a115f5873c7328291f"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"juliusv","id":538008,"avatar_url":"https://avatars.githubusercontent.com/u/538008?v=3","gravatar_id":"","url":"https://api.github.com/users/juliusv","html_url":"https://github.com/juliusv","followers_url":"https://api.github.com/users/juliusv/followers","following_url":"https://api.github.com/users/juliusv/following{/other_user}","gists_url":"https://api.github.com/users/juliusv/gists{/gist_id}","starred_url":"https://api.github.com/users/juliusv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliusv/subscriptions","organizations_url":"https://api.github.com/users/juliusv/orgs","repos_url":"https://api.github.com/users/juliusv/repos","events_url":"https://api.github.com/users/juliusv/events{/privacy}","received_events_url":"https://api.github.com/users/juliusv/received_events","type":"User","site_admin":false},"comments":8,"review_comments":0,"commits":1,"additions":5,"deletions":3,"changed_files":1}}