warnOnTwoConfigs is overzealous on Windows #9277
Labels
cabal-install: other
platform: windows
re: warnings
Concerning warnings printed by cabal
re: xdg
Concerning the XDG directory structure
regression in 3.10
regression on master
Regression that is unreleased and needs to be fixed before release
type: bug
cabal/cabal-install/src/Distribution/Client/Config.hs
Lines 729 to 744 in c4e1268
This is wrong on Windows:
getAppUserDataDirectory
"cabal"
returnsC:/Users/<user>/AppData/Roaming/cabal
.getXdgDirectory
XdgConfig ("cabal" </> "config")
, unless XDG environment variables are set (and they are not by default), returnsC:/Users/<user>/AppData/Roaming/cabal/config
, in the very same folder.Thus both paths exist and everyone is shown a very confusing warning:
I cannot remove one of them, they are the same location.
This is easy to fix, but I'm unpleasantly surprised that I'm the first person to test Cabal HEAD on Windows. If I may suggest, it would be nice to review that XDG business works outside of Linux paradise.
The text was updated successfully, but these errors were encountered: