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

Function without any home envirenment vars #60

Merged
merged 1 commit into from Mar 29, 2022

Conversation

alerque
Copy link
Member

@alerque alerque commented Mar 25, 2022

Closes #51

Previously even when --no-cache was set, we were trying to evaluate a default value for --cache based on $HOME or $XDG_CACHE_HOME. In the event neither was set (as happens for example in some hook environments) we were failing to even parse a default value.

This adds another fallback if those home environments done provide a hint about where to put the cache: we just put it in the current directory.

Notably having this as a fallback default also allows --no-cache to work, since we can reliably get past setting a default cache config option we also get to the point where we can disable it. If writing to the CWD is not desired (e.g. from SVN hooks) either set a preferred location or disable the cache.

@alerque alerque merged commit dad2393 into lunarmodules:master Mar 29, 2022
@alerque alerque deleted the cache-in-cwd branch March 29, 2022 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

An error occurs when the SVN is used
1 participant