-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yarn incorrectly uses $XDG_DATA_HOME for linkFolder
#9029
Comments
Good point, and in fact there's a comment in the code that alludes to this: Lines 19 to 21 in 158d96d
I think the old fallback was kept for backwards compatibility. The XDG spec says:
So it should be falling back to |
yarn's default for
linkFolder
is in the default for$XDG_CONFIG_HOME
:the default for
XDG_CONFIG_HOME
is~/.config
applying
XDG_DATA_HOME
changes the value oflinkFolder
even ifXDG_DATA_HOME
is set to the default:this appears to be two bugs -- fixing either would resolve this:
yarn/src/constants.js
Line 63 in 158d96d
yarn/src/util/user-dirs.js
Line 22 in 158d96d
getDataDir
falls back to~/.config
The text was updated successfully, but these errors were encountered: