Open asottile-sentry opened 8 months ago
Good point, and in fact there's a comment in the code that alludes to this:
I think the old fallback was kept for backwards compatibility.
The XDG spec says:
$XDG_DATA_HOME defines the base directory relative to which user-specific data files should be stored. If $XDG_DATA_HOME is either not set or empty, a default equal to $HOME/.local/share should be used.
So it should be falling back to .local/share/yarn/link
.
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:
getDataDir
falls back to~/.config