{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/2954","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2954/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2954/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2954/events","html_url":"https://github.com/yarnpkg/yarn/pull/2954","id":215480128,"number":2954,"title":"yarnrc: respect XDG_CONFIG_HOME setting","user":{"login":"kevinburke","id":234019,"avatar_url":"https://avatars2.githubusercontent.com/u/234019?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinburke","html_url":"https://github.com/kevinburke","followers_url":"https://api.github.com/users/kevinburke/followers","following_url":"https://api.github.com/users/kevinburke/following{/other_user}","gists_url":"https://api.github.com/users/kevinburke/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinburke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinburke/subscriptions","organizations_url":"https://api.github.com/users/kevinburke/orgs","repos_url":"https://api.github.com/users/kevinburke/repos","events_url":"https://api.github.com/users/kevinburke/events{/privacy}","received_events_url":"https://api.github.com/users/kevinburke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"arcanis","id":1037931,"avatar_url":"https://avatars1.githubusercontent.com/u/1037931?v=3","gravatar_id":"","url":"https://api.github.com/users/arcanis","html_url":"https://github.com/arcanis","followers_url":"https://api.github.com/users/arcanis/followers","following_url":"https://api.github.com/users/arcanis/following{/other_user}","gists_url":"https://api.github.com/users/arcanis/gists{/gist_id}","starred_url":"https://api.github.com/users/arcanis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arcanis/subscriptions","organizations_url":"https://api.github.com/users/arcanis/orgs","repos_url":"https://api.github.com/users/arcanis/repos","events_url":"https://api.github.com/users/arcanis/events{/privacy}","received_events_url":"https://api.github.com/users/arcanis/received_events","type":"User","site_admin":false},"assignees":[{"login":"arcanis","id":1037931,"avatar_url":"https://avatars1.githubusercontent.com/u/1037931?v=3","gravatar_id":"","url":"https://api.github.com/users/arcanis","html_url":"https://github.com/arcanis","followers_url":"https://api.github.com/users/arcanis/followers","following_url":"https://api.github.com/users/arcanis/following{/other_user}","gists_url":"https://api.github.com/users/arcanis/gists{/gist_id}","starred_url":"https://api.github.com/users/arcanis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arcanis/subscriptions","organizations_url":"https://api.github.com/users/arcanis/orgs","repos_url":"https://api.github.com/users/arcanis/repos","events_url":"https://api.github.com/users/arcanis/events{/privacy}","received_events_url":"https://api.github.com/users/arcanis/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2017-03-20T16:37:31Z","updated_at":"2017-04-21T14:18:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/yarnpkg/yarn/pulls/2954","html_url":"https://github.com/yarnpkg/yarn/pull/2954","diff_url":"https://github.com/yarnpkg/yarn/pull/2954.diff","patch_url":"https://github.com/yarnpkg/yarn/pull/2954.patch"},"body":"If a user has a XDG_CONFIG_HOME environment variable, read and write\nthe yarnrc file from XDG_CONFIG_HOME/.yarnrc, not from $HOME/.yarnrc.\n\nThe specification can be found here:\nhttps://wiki.archlinux.org/index.php/XDG_Base_Directory_support\n\nFixes #2334."},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/296203212","html_url":"https://github.com/yarnpkg/yarn/pull/2954#issuecomment-296203212","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/2954","id":296203212,"user":{"login":"jasonkarns","id":119972,"avatar_url":"https://avatars1.githubusercontent.com/u/119972?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonkarns","html_url":"https://github.com/jasonkarns","followers_url":"https://api.github.com/users/jasonkarns/followers","following_url":"https://api.github.com/users/jasonkarns/following{/other_user}","gists_url":"https://api.github.com/users/jasonkarns/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonkarns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonkarns/subscriptions","organizations_url":"https://api.github.com/users/jasonkarns/orgs","repos_url":"https://api.github.com/users/jasonkarns/repos","events_url":"https://api.github.com/users/jasonkarns/events{/privacy}","received_events_url":"https://api.github.com/users/jasonkarns/received_events","type":"User","site_admin":false},"created_at":"2017-04-21T14:18:30Z","updated_at":"2017-04-21T14:18:30Z","body":"This PR, while an improvement, does not bring yarn into compliance with XDG. The XDG spec defines a default value for `XDG_CONFIG_HOME` as `~/.config`. This means XDG compliance would require `~/.config/yarn` be used when `XDG_CONFIG_HOME` is not set.\r\n\r\nAlso, I would recommend not using a hidden file within the XDG location. Part of the reason for leveraging XDG is to not require the files be hidden individually. I would suggest:\r\n\r\n`$XDG_CONFIG_HOME/yarnrc` or more conventionally: `$XDG_CONFIG_HOME/yarn/config`"}}
{"actor":{"display_login":"jasonkarns"}}