{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/2046","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2046/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2046/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2046/events","html_url":"https://github.com/yarnpkg/yarn/pull/2046","id":191852517,"number":2046,"title":"add cache-folder config option for setting cache folder location","user":{"login":"superxp1412","id":6717522,"avatar_url":"https://avatars.githubusercontent.com/u/6717522?v=3","gravatar_id":"","url":"https://api.github.com/users/superxp1412","html_url":"https://github.com/superxp1412","followers_url":"https://api.github.com/users/superxp1412/followers","following_url":"https://api.github.com/users/superxp1412/following{/other_user}","gists_url":"https://api.github.com/users/superxp1412/gists{/gist_id}","starred_url":"https://api.github.com/users/superxp1412/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superxp1412/subscriptions","organizations_url":"https://api.github.com/users/superxp1412/orgs","repos_url":"https://api.github.com/users/superxp1412/repos","events_url":"https://api.github.com/users/superxp1412/events{/privacy}","received_events_url":"https://api.github.com/users/superxp1412/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"bestander","id":2121048,"avatar_url":"https://avatars.githubusercontent.com/u/2121048?v=3","gravatar_id":"","url":"https://api.github.com/users/bestander","html_url":"https://github.com/bestander","followers_url":"https://api.github.com/users/bestander/followers","following_url":"https://api.github.com/users/bestander/following{/other_user}","gists_url":"https://api.github.com/users/bestander/gists{/gist_id}","starred_url":"https://api.github.com/users/bestander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bestander/subscriptions","organizations_url":"https://api.github.com/users/bestander/orgs","repos_url":"https://api.github.com/users/bestander/repos","events_url":"https://api.github.com/users/bestander/events{/privacy}","received_events_url":"https://api.github.com/users/bestander/received_events","type":"User","site_admin":false},"assignees":[{"login":"bestander","id":2121048,"avatar_url":"https://avatars.githubusercontent.com/u/2121048?v=3","gravatar_id":"","url":"https://api.github.com/users/bestander","html_url":"https://github.com/bestander","followers_url":"https://api.github.com/users/bestander/followers","following_url":"https://api.github.com/users/bestander/following{/other_user}","gists_url":"https://api.github.com/users/bestander/gists{/gist_id}","starred_url":"https://api.github.com/users/bestander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bestander/subscriptions","organizations_url":"https://api.github.com/users/bestander/orgs","repos_url":"https://api.github.com/users/bestander/repos","events_url":"https://api.github.com/users/bestander/events{/privacy}","received_events_url":"https://api.github.com/users/bestander/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-11-27T09:48:31Z","updated_at":"2016-12-04T17:52:13Z","closed_at":"2016-12-04T14:27:41Z","pull_request":{"url":"https://api.github.com/repos/yarnpkg/yarn/pulls/2046","html_url":"https://github.com/yarnpkg/yarn/pull/2046","diff_url":"https://github.com/yarnpkg/yarn/pull/2046.diff","patch_url":"https://github.com/yarnpkg/yarn/pull/2046.patch"},"body":"<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. The two fields below are mandatory. -->\r\n\r\n**Summary**\r\n\r\nYarn need a elegant way to config cache folder's directory.   \r\nThis pull request is an answer to: [#1316](https://github.com/yarnpkg/yarn/issues/1316) & [#1211](https://github.com/yarnpkg/yarn/issues/1211)\r\n\r\nWith this feature we can define the location of yarn's cache folder:\r\ne.g.\r\n`yarn config set cache-folder ${path}` \r\n\r\nAnd the settings would be defined inside of .yarnrc file like:\r\n`cache-folder \"${path}\"`\r\n\r\nBesides, new configurations for cache-folder can also been verified by command:\r\n`yarn cache dir`\r\n\r\n@samccone \r\n"},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/264718867","html_url":"https://github.com/yarnpkg/yarn/pull/2046#issuecomment-264718867","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2046","id":264718867,"user":{"login":"mvestergaard","id":2027834,"avatar_url":"https://avatars.githubusercontent.com/u/2027834?v=3","gravatar_id":"","url":"https://api.github.com/users/mvestergaard","html_url":"https://github.com/mvestergaard","followers_url":"https://api.github.com/users/mvestergaard/followers","following_url":"https://api.github.com/users/mvestergaard/following{/other_user}","gists_url":"https://api.github.com/users/mvestergaard/gists{/gist_id}","starred_url":"https://api.github.com/users/mvestergaard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvestergaard/subscriptions","organizations_url":"https://api.github.com/users/mvestergaard/orgs","repos_url":"https://api.github.com/users/mvestergaard/repos","events_url":"https://api.github.com/users/mvestergaard/events{/privacy}","received_events_url":"https://api.github.com/users/mvestergaard/received_events","type":"User","site_admin":false},"created_at":"2016-12-04T17:52:13Z","updated_at":"2016-12-04T17:52:13Z","body":"This seems fairly broken atm.\r\nThis line in `src/config.js@205`: `this.cacheFolder = String(opts.cacheFolder || this.getOption('cache-folder') || constants.MODULE_CACHE_DIRECTORY);`\r\n\r\nSets `cacheFolder` to `set_config_folder_dir` because of `this.getOption('cache-folder')`. I'm not entirely sure where that value comes from, but it ends up creating that folder in your working directory, and using that folder as cache."}}
{"actor":{"display_login":"mvestergaard"}}