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

Add fallback for global cache directory #314

Merged
merged 2 commits into from Jul 13, 2019

Conversation

@f-f
Copy link
Member

commented Jul 12, 2019

Fix #312

Sometimes on Windows it was not possible to get a directory to put a global cache, so here we fix that by:

  • if all previous check fail, we try reading the directory in the HomePath environment variable
  • if that fails we just make a .spago-global-cache folder in the current directory
  • if we decide to get rid of the previous option because it's not good for some reason, I made the error message nice anyways

@f-f f-f merged commit f824776 into master Jul 13, 2019

2 checks passed

Travis CI - Pull Request Build Passed
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details

@f-f f-f deleted the fallback-global-cache branch Jul 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.