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

[FEATURE] Add environment variable to override default location for cache and log files. #41

Open
tneer opened this issue Sep 22, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@tneer
Copy link

tneer commented Sep 22, 2020

  • Jake puts log and cache files in the ${HOME}/.ossindex directory. There are some cases where this isn't optimal. For example, in a CI environment with multiple executors on the same agent there may be multiple simultaneous jake invocations. It would be helpful in this situation if there was a JAKE_HOME or JAKE_WORKDIR environment variable that could be set to override the default location.

  • This is mostly useful for CI but there may be other automation cases where the home directory for a daemon user isn't writable.

  • Something like environ.get('JAKE_WORKDIR', Path.home()) should do the trick. I think there are a few places that change would need to be made. I don't quite know how to test it since my Python knowledge is not great.

cc @bhamail / @DarthHater

@tneer tneer added the enhancement New feature or request label Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant