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

Fallback for cache directories #346

Merged
merged 5 commits into from
Dec 15, 2016
Merged

Fallback for cache directories #346

merged 5 commits into from
Dec 15, 2016

Conversation

danez
Copy link
Member

@danez danez commented Dec 11, 2016

Follow up of #338
Fixes #327

@frontsideair I took your commit and modified it. It now correctly falls back if the directory already exists but is not writable. (Before it was only doing the fallback if the directory did not yet exist, as mkdirp is only running into an error if it tries to create the directory.) Is this okay, does it work for your usecase?

@danez danez added the bug label Dec 11, 2016
@codecov-io
Copy link

codecov-io commented Dec 11, 2016

Current coverage is 84.86% (diff: 83.33%)

Merging #346 into master will increase coverage by 3.78%

@@             master       #346   diff @@
==========================================
  Files             6          6          
  Lines           148        152     +4   
  Methods          22         23     +1   
  Messages          0          0          
  Branches         31         33     +2   
==========================================
+ Hits            120        129     +9   
+ Misses           13         11     -2   
+ Partials         15         12     -3   

Powered by Codecov. Last update 35272ef...60001e8

Fatih Altinok and others added 3 commits December 15, 2016 12:54
Only fallback for non custom directories
Also fallback if writing fails
@frontsideair
Copy link

Hi, sorry for late feedback. I'm trying this now.

@frontsideair
Copy link

Seems to be working for me.

I cannot manage to get that reliably working, somehow mock-fs
is messing up ava/mkdirp/rimraf and makes ava hang forever on error
@danez danez merged commit 3bbfbf5 into master Dec 15, 2016
@danez danez deleted the check-writeable branch December 15, 2016 13:19
@danez danez mentioned this pull request Dec 15, 2016
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants