You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Instead, use our prior fallback. Some day this could be
// path.join(userHome, '.local', 'share', 'yarn')
// or return path.join(WIN32_APPDATA_DIR, 'Data') on win32
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:
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: