scala-cli icon indicating copy to clipboard operation
scala-cli copied to clipboard

Scala-cli gets installed in XDG_CACHE_HOME

Open rusty-snake opened this issue 1 year ago • 1 comments
trafficstars

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.

rusty-snake avatar Jan 13 '24 13:01 rusty-snake

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.

Gedochao avatar Jan 15 '24 12:01 Gedochao