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

Skein staging directory should be configurable #237

Open
pkvprakash opened this issue Dec 21, 2021 · 0 comments · May be fixed by #238
Open

Skein staging directory should be configurable #237

pkvprakash opened this issue Dec 21, 2021 · 0 comments · May be fixed by #238

Comments

@pkvprakash
Copy link

pkvprakash commented Dec 21, 2021

Currently, skein staging directory defaults to $HOME/.skein . There can be situations where we have to configure the staging directory path to a different location. For example, if there is not enough space left in $HOME to accommodate the staging files, we may have to configure it to a different location.

The approach I am thinking is to use an environment variable SKEIN_STAGING_DIR for this purpose. If $SKEIN_STAGING_DIR is set, then $SKEIN_STAGING_DIR/.skein will be used as the staging directory. Otherwise, fallback to $HOME/.skein

pkvprakash pushed a commit to pkvprakash/skein that referenced this issue Dec 23, 2021
This change introduces an environment variable SKEIN_STAGING_DIR
to the Driver. If the variable is set, Driver will use the value
to create the staging directory. If the variable is not set, the
Driver falls back to fs.getHomeDir() to create the staging
directory.

Closes jcrist#237
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

Successfully merging a pull request may close this issue.

1 participant