Converter icon indicating copy to clipboard operation
Converter copied to clipboard

Make cache directory user-definable

Open futile opened this issue 2 years ago • 2 comments

Currently the cache-directory location seems to be hardcoded, i.e., ~/.cache/scalablytyped/ on linux.

I would like to be able to choose my own cache location. In the end, I want to use an environment variable for this, but if it's a setting that can also be set using JAVA_OPTS or SBT_OPTS that would work just as well.

Awesome project, thanks a lot! :)

Edit: Just noticed that results are actually published to the configured ivy-home (which I already changed), so that's already very useful! :) My main use-case for this is to keep caches project-specific, so it's easier to get a completely clean build, without user-/system-wide cache-directories being involved.

futile avatar Feb 10 '23 09:02 futile

Hey, sorry I missed the notification for this issue.

If you use the sbt plugin you can set stDir. If you use CLI I'd welcome a PR against https://github.com/ScalablyTyped/Converter/blob/master/cli/src/main/scala/org/scalablytyped/converter/cli/Main.scala

oyvindberg avatar Mar 15 '23 21:03 oyvindberg

All good, thanks for the reply! :) Oh, seems like I missed that option :see_no_evil: Yep, I'm using the sbt plugin, so that works well for me!

From my side the issue can be closed, feel free to close it if it's done!

futile avatar Apr 12 '23 17:04 futile