bootstrap-haskell: XDG: set proper GHCUP_DIR & create it
Fixes XDG install mode.
Without XDG - GHCUP_BIN
was creating ~/.ghcup/bin
recursively before GHCUP_DIR
~/.ghcup
was used.
XDG setting exposed that case, because now GHCUP_BIN
does not include GHCUP_DIR
.
Makes sure that the directory exists before putting a file into it.
Merge request reports
Activity
- Resolved by Anton Latukha
True.
Fixed that.
Edited by Anton LatukhaWait a second...
GHCUP_DIR
currently is~/.local/ghcup
. WhileXDG_DATA_HOME
is~/.local/share
.In
~/.local
there is allowed only 2 directories:-
bin
- for executables. -
share
- for everything else that is not config and not a cache.
Edited by Anton Latukha-
Fixed that.
Looked into
~/.local/share/ghcup
- looks good.Edited by Anton LatukhaThe savior of this situation is that in the XDG mode the script had the
~/.local/ghcup
directory creation bug - so XDG installation was falling on that.So XDG installs had a blocker bug, so upstream migration from the
~/.local/ghcup
to proper~/.local/share/ghcup
is light, because people were blocked from using it before.IDK how surrounding things hook-up into
$GHCUP_DIR
, a line for migration in the changelog/disclaimer in the readme may be still needed, I would just contribute the line into the changelog.Before all of this, I read the GHCUP changelog and populated the XDG info on the Arch Wiki, so the flow of people using XDG should increase soon. And that nobody opened a bug report is a great marker that people still not started using the feature.
Edited by Anton Latukhaadded 1 commit
- bbe2e876 - CHANGELOG.md: add note about `ghcup` directory fix`
I wrote down some of my thoughts here #96