{"action":"created","comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/53566865","id":53566865,"diff_hunk":"@@ -50,7 +50,11 @@ def mkpath\n HOMEBREW_TEMP = Pathname.new(ENV.fetch(\"HOMEBREW_TEMP\", \"/tmp\"))\n \n unless defined? HOMEBREW_LIBRARY_PATH\n-  HOMEBREW_LIBRARY_PATH = Pathname.new(__FILE__).realpath.parent.join(\"Homebrew\")\n+  HOMEBREW_LIBRARY_PATH = Pathname.new(__FILE__).realpath.parent\n+end\n+\n+unless defined? HOMEBREW_CABAL_CONFIG_PATH","path":"Library/Homebrew/config.rb","position":8,"original_position":8,"commit_id":"b263b4a4dc7bf85baed2139c275b6db28126a6cd","original_commit_id":"b263b4a4dc7bf85baed2139c275b6db28126a6cd","user":{"login":"DomT4","id":6998367,"avatar_url":"https://avatars.githubusercontent.com/u/6998367?v=3","gravatar_id":"","url":"https://api.github.com/users/DomT4","html_url":"https://github.com/DomT4","followers_url":"https://api.github.com/users/DomT4/followers","following_url":"https://api.github.com/users/DomT4/following{/other_user}","gists_url":"https://api.github.com/users/DomT4/gists{/gist_id}","starred_url":"https://api.github.com/users/DomT4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DomT4/subscriptions","organizations_url":"https://api.github.com/users/DomT4/orgs","repos_url":"https://api.github.com/users/DomT4/repos","events_url":"https://api.github.com/users/DomT4/events{/privacy}","received_events_url":"https://api.github.com/users/DomT4/received_events","type":"User","site_admin":false},"body":"IMO this is better placed in `utils` if we include it. `config` is almost the exclusive province of functions and elements that influence how `brew` _itself_ behaves.","created_at":"2016-02-21T14:06:42Z","updated_at":"2016-02-21T14:06:42Z","html_url":"https://github.com/Homebrew/homebrew/pull/49387#discussion_r53566865","pull_request_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/49387","_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/53566865"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/49387#discussion_r53566865"},"pull_request":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/49387"}}},"pull_request":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/49387","id":60083476,"html_url":"https://github.com/Homebrew/homebrew/pull/49387","diff_url":"https://github.com/Homebrew/homebrew/pull/49387.diff","patch_url":"https://github.com/Homebrew/homebrew/pull/49387.patch","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/49387","number":49387,"state":"open","locked":false,"title":"haskell: option to use a stackage lts cabal.config","user":{"login":"ilovezfs","id":5268928,"avatar_url":"https://avatars.githubusercontent.com/u/5268928?v=3","gravatar_id":"","url":"https://api.github.com/users/ilovezfs","html_url":"https://github.com/ilovezfs","followers_url":"https://api.github.com/users/ilovezfs/followers","following_url":"https://api.github.com/users/ilovezfs/following{/other_user}","gists_url":"https://api.github.com/users/ilovezfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ilovezfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilovezfs/subscriptions","organizations_url":"https://api.github.com/users/ilovezfs/orgs","repos_url":"https://api.github.com/users/ilovezfs/repos","events_url":"https://api.github.com/users/ilovezfs/events{/privacy}","received_events_url":"https://api.github.com/users/ilovezfs/received_events","type":"User","site_admin":false},"body":"The options hash passed to install_cabal_package can now include a\r\n:config key, which specifies the cabal.config file that should be used.\r\n\r\nIf :config is specified, the corresponding file will be copied to the\r\ncabal sandbox.  If no config is specified, the standard dependency\r\nresolution is used.\r\n\r\nHOMEBREW_CABAL_CONFIG_PATH = HOMEBREW_LIBRARY_PATH/language unless\r\noveridden in the environment.\r\n\r\n:config => \"lts\"\r\nHOMEBREW_CABAL_CONFIG_PATH/cabal.config\r\n\r\n:config => \"lts-x.y\"\r\nHOMEBREW_CABAL_CONFIG_PATH/stackage-lts-x.y-cabal.config\r\n\r\nThe config files can be downloaded from\r\nhttps://www.stackage.org/lts-x.y/cabal.config\r\n\r\nHOMEBREW_CABAL_CONFIG_PATH/cabal.config should be a symlink to the\r\nlatest HOMEBREW_CABAL_CONFIG_PATH/stackage-lts-x.y-cabal.config, which\r\nshould be kept up to date with the latest stackage lts once it is\r\nverified that all formulae using \"lts\" build against the latest, or are\r\ntransitioned to a specific \"lts-x.y\" because they don't build yet\r\nagainst the latest.\r\n\r\nThanks to Zhiming Wang for suggesting this as the simplest approach.","created_at":"2016-02-21T11:06:58Z","updated_at":"2016-02-21T14:06:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"43979b58dff6906247365d63bc10db2deb78d313","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/49387/commits","review_comments_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/49387/comments","review_comment_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/49387/comments","statuses_url":"https://api.github.com/repos/Homebrew/homebrew/statuses/b263b4a4dc7bf85baed2139c275b6db28126a6cd","head":{"label":"ilovezfs:haskell-stackage-lts-config","ref":"haskell-stackage-lts-config","sha":"b263b4a4dc7bf85baed2139c275b6db28126a6cd","user":{"login":"ilovezfs","id":5268928,"avatar_url":"https://avatars.githubusercontent.com/u/5268928?v=3","gravatar_id":"","url":"https://api.github.com/users/ilovezfs","html_url":"https://github.com/ilovezfs","followers_url":"https://api.github.com/users/ilovezfs/followers","following_url":"https://api.github.com/users/ilovezfs/following{/other_user}","gists_url":"https://api.github.com/users/ilovezfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ilovezfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilovezfs/subscriptions","organizations_url":"https://api.github.com/users/ilovezfs/orgs","repos_url":"https://api.github.com/users/ilovezfs/repos","events_url":"https://api.github.com/users/ilovezfs/events{/privacy}","received_events_url":"https://api.github.com/users/ilovezfs/received_events","type":"User","site_admin":false},"repo":{"id":19671767,"name":"homebrew","full_name":"ilovezfs/homebrew","owner":{"login":"ilovezfs","id":5268928,"avatar_url":"https://avatars.githubusercontent.com/u/5268928?v=3","gravatar_id":"","url":"https://api.github.com/users/ilovezfs","html_url":"https://github.com/ilovezfs","followers_url":"https://api.github.com/users/ilovezfs/followers","following_url":"https://api.github.com/users/ilovezfs/following{/other_user}","gists_url":"https://api.github.com/users/ilovezfs/gists{/gist_id}","starred_url":"https://api.github.com/users/ilovezfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilovezfs/subscriptions","organizations_url":"https://api.github.com/users/ilovezfs/orgs","repos_url":"https://api.github.com/users/ilovezfs/repos","events_url":"https://api.github.com/users/ilovezfs/events{/privacy}","received_events_url":"https://api.github.com/users/ilovezfs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ilovezfs/homebrew","description":"The missing package manager for OS X.","fork":true,"url":"https://api.github.com/repos/ilovezfs/homebrew","forks_url":"https://api.github.com/repos/ilovezfs/homebrew/forks","keys_url":"https://api.github.com/repos/ilovezfs/homebrew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ilovezfs/homebrew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ilovezfs/homebrew/teams","hooks_url":"https://api.github.com/repos/ilovezfs/homebrew/hooks","issue_events_url":"https://api.github.com/repos/ilovezfs/homebrew/issues/events{/number}","events_url":"https://api.github.com/repos/ilovezfs/homebrew/events","assignees_url":"https://api.github.com/repos/ilovezfs/homebrew/assignees{/user}","branches_url":"https://api.github.com/repos/ilovezfs/homebrew/branches{/branch}","tags_url":"https://api.github.com/repos/ilovezfs/homebrew/tags","blobs_url":"https://api.github.com/repos/ilovezfs/homebrew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ilovezfs/homebrew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ilovezfs/homebrew/git/refs{/sha}","trees_url":"https://api.github.com/repos/ilovezfs/homebrew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ilovezfs/homebrew/statuses/{sha}","languages_url":"https://api.github.com/repos/ilovezfs/homebrew/languages","stargazers_url":"https://api.github.com/repos/ilovezfs/homebrew/stargazers","contributors_url":"https://api.github.com/repos/ilovezfs/homebrew/contributors","subscribers_url":"https://api.github.com/repos/ilovezfs/homebrew/subscribers","subscription_url":"https://api.github.com/repos/ilovezfs/homebrew/subscription","commits_url":"https://api.github.com/repos/ilovezfs/homebrew/commits{/sha}","git_commits_url":"https://api.github.com/repos/ilovezfs/homebrew/git/commits{/sha}","comments_url":"https://api.github.com/repos/ilovezfs/homebrew/comments{/number}","issue_comment_url":"https://api.github.com/repos/ilovezfs/homebrew/issues/comments{/number}","contents_url":"https://api.github.com/repos/ilovezfs/homebrew/contents/{+path}","compare_url":"https://api.github.com/repos/ilovezfs/homebrew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ilovezfs/homebrew/merges","archive_url":"https://api.github.com/repos/ilovezfs/homebrew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ilovezfs/homebrew/downloads","issues_url":"https://api.github.com/repos/ilovezfs/homebrew/issues{/number}","pulls_url":"https://api.github.com/repos/ilovezfs/homebrew/pulls{/number}","milestones_url":"https://api.github.com/repos/ilovezfs/homebrew/milestones{/number}","notifications_url":"https://api.github.com/repos/ilovezfs/homebrew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ilovezfs/homebrew/labels{/name}","releases_url":"https://api.github.com/repos/ilovezfs/homebrew/releases{/id}","deployments_url":"https://api.github.com/repos/ilovezfs/homebrew/deployments","created_at":"2014-05-11T16:55:59Z","updated_at":"2016-01-18T05:43:57Z","pushed_at":"2016-02-21T13:44:44Z","git_url":"git://github.com/ilovezfs/homebrew.git","ssh_url":"git@github.com:ilovezfs/homebrew.git","clone_url":"https://github.com/ilovezfs/homebrew.git","svn_url":"https://github.com/ilovezfs/homebrew","homepage":"http://brew.sh","size":74441,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"Homebrew:master","ref":"master","sha":"cff0c73f0c25023e9a4b621103ae638f60a216c6","user":{"login":"Homebrew","id":1503512,"avatar_url":"https://avatars.githubusercontent.com/u/1503512?v=3","gravatar_id":"","url":"https://api.github.com/users/Homebrew","html_url":"https://github.com/Homebrew","followers_url":"https://api.github.com/users/Homebrew/followers","following_url":"https://api.github.com/users/Homebrew/following{/other_user}","gists_url":"https://api.github.com/users/Homebrew/gists{/gist_id}","starred_url":"https://api.github.com/users/Homebrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Homebrew/subscriptions","organizations_url":"https://api.github.com/users/Homebrew/orgs","repos_url":"https://api.github.com/users/Homebrew/repos","events_url":"https://api.github.com/users/Homebrew/events{/privacy}","received_events_url":"https://api.github.com/users/Homebrew/received_events","type":"Organization","site_admin":false},"repo":{"id":206084,"name":"homebrew","full_name":"Homebrew/homebrew","owner":{"login":"Homebrew","id":1503512,"avatar_url":"https://avatars.githubusercontent.com/u/1503512?v=3","gravatar_id":"","url":"https://api.github.com/users/Homebrew","html_url":"https://github.com/Homebrew","followers_url":"https://api.github.com/users/Homebrew/followers","following_url":"https://api.github.com/users/Homebrew/following{/other_user}","gists_url":"https://api.github.com/users/Homebrew/gists{/gist_id}","starred_url":"https://api.github.com/users/Homebrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Homebrew/subscriptions","organizations_url":"https://api.github.com/users/Homebrew/orgs","repos_url":"https://api.github.com/users/Homebrew/repos","events_url":"https://api.github.com/users/Homebrew/events{/privacy}","received_events_url":"https://api.github.com/users/Homebrew/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Homebrew/homebrew","description":":beer: The missing package manager for OS X.","fork":false,"url":"https://api.github.com/repos/Homebrew/homebrew","forks_url":"https://api.github.com/repos/Homebrew/homebrew/forks","keys_url":"https://api.github.com/repos/Homebrew/homebrew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Homebrew/homebrew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Homebrew/homebrew/teams","hooks_url":"https://api.github.com/repos/Homebrew/homebrew/hooks","issue_events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/events{/number}","events_url":"https://api.github.com/repos/Homebrew/homebrew/events","assignees_url":"https://api.github.com/repos/Homebrew/homebrew/assignees{/user}","branches_url":"https://api.github.com/repos/Homebrew/homebrew/branches{/branch}","tags_url":"https://api.github.com/repos/Homebrew/homebrew/tags","blobs_url":"https://api.github.com/repos/Homebrew/homebrew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Homebrew/homebrew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Homebrew/homebrew/git/refs{/sha}","trees_url":"https://api.github.com/repos/Homebrew/homebrew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Homebrew/homebrew/statuses/{sha}","languages_url":"https://api.github.com/repos/Homebrew/homebrew/languages","stargazers_url":"https://api.github.com/repos/Homebrew/homebrew/stargazers","contributors_url":"https://api.github.com/repos/Homebrew/homebrew/contributors","subscribers_url":"https://api.github.com/repos/Homebrew/homebrew/subscribers","subscription_url":"https://api.github.com/repos/Homebrew/homebrew/subscription","commits_url":"https://api.github.com/repos/Homebrew/homebrew/commits{/sha}","git_commits_url":"https://api.github.com/repos/Homebrew/homebrew/git/commits{/sha}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/comments{/number}","issue_comment_url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments{/number}","contents_url":"https://api.github.com/repos/Homebrew/homebrew/contents/{+path}","compare_url":"https://api.github.com/repos/Homebrew/homebrew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Homebrew/homebrew/merges","archive_url":"https://api.github.com/repos/Homebrew/homebrew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Homebrew/homebrew/downloads","issues_url":"https://api.github.com/repos/Homebrew/homebrew/issues{/number}","pulls_url":"https://api.github.com/repos/Homebrew/homebrew/pulls{/number}","milestones_url":"https://api.github.com/repos/Homebrew/homebrew/milestones{/number}","notifications_url":"https://api.github.com/repos/Homebrew/homebrew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Homebrew/homebrew/labels{/name}","releases_url":"https://api.github.com/repos/Homebrew/homebrew/releases{/id}","deployments_url":"https://api.github.com/repos/Homebrew/homebrew/deployments","created_at":"2009-05-20T19:38:37Z","updated_at":"2016-02-21T13:51:30Z","pushed_at":"2016-02-21T13:04:55Z","git_url":"git://github.com/Homebrew/homebrew.git","ssh_url":"git@github.com:Homebrew/homebrew.git","clone_url":"https://github.com/Homebrew/homebrew.git","svn_url":"https://github.com/Homebrew/homebrew","homepage":"http://brew.sh","size":1426810,"stargazers_count":29232,"watchers_count":29232,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":14406,"mirror_url":null,"open_issues_count":451,"forks":14406,"open_issues":451,"watchers":29232,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/49387"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/49387"},"issue":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/49387"},"comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/49387/comments"},"review_comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/49387/comments"},"review_comment":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/49387/commits"},"statuses":{"href":"https://api.github.com/repos/Homebrew/homebrew/statuses/b263b4a4dc7bf85baed2139c275b6db28126a6cd"}}}}