scala-cli
scala-cli copied to clipboard
Scala-cli gets installed in XDG_CACHE_HOME
Version(s)
scala-cli: 1.1.1 OS: Fedora 39
Describe the bug
Following the "official" commands from https://scala-cli.virtuslab.org/install/ installs scala-cli at ~/.cache/scalacli/local-repo/bin/scala-cli/scala-cli.
~/.cache aka. $XDG_CACHE_HOME is for "user-specific non-essential data files".
See https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html.
To Reproduce
curl -sSLf https://scala-cli.virtuslab.org/get | sh
bash -l
scala-cli --version # should work
exit
rm -r ~/.cache # Delete **non-essential data** files
bash -l
scala-cli --version # command not found
exit
Expected behaviour
- User-specific essential data files get written to
$XDG_DATA_HOME. - User-specific executable files get written to
$HOME/.local/bin.
Hey, thanks for raising this. We probably should look into where the installation/cache files go and at the very least get the docs in sync with reality... And then possibly move things around, since (if I understand correctly) it seems like we cache some stuff where we shouldn't.