Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make cache directory user-definable #519

Open
futile opened this issue Feb 10, 2023 · 2 comments
Open

Make cache directory user-definable #519

futile opened this issue Feb 10, 2023 · 2 comments

Comments

@futile
Copy link

futile commented Feb 10, 2023

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.

@oyvindberg
Copy link
Collaborator

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

@futile
Copy link
Author

futile commented Apr 12, 2023

All good, thanks for the reply! :) Oh, seems like I missed that option 🙈 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants