modules: fix lstat error on outDir. Closes #465#461
Conversation
It's easy to tell GitHub to ignore whitespaces and fortunately, your PR is very easy to understand that way. https://github.com/filecoin-station/core/pull/461/files?diff=unified&w=1
|
Awesome!
I guess I found the following GH issues mentioning
They all are caused by Regarding regressions: I think your change is going to break the logic detecting when it's safe to skip downloading the version because we have already downloaded it before; see here: |
Isn't this going to break #336?
|
outDiroutDir. Closes #465
bajtos
left a comment
There was a problem hiding this comment.
Other than the comment above, the change LGTM 👍🏻
I am fine with shipping it and seeing how it works in practice.
Which comment above? Do you mean my comment that you edited? 😅 |
It isn't going to break #336, because in the case of an ENOENT, there is no directory to clean up in the first place. Let's ship it and see 👍 |
😱 I wanted to copy the content from your comment to quote it in my comment. Apparently, I modified your comment instead. Sorry for that! 🙈
Ah, I was under the assumption that |

@bajtos I have finally been able to reproduce the lstat errors that are reported so often. And for me, the only way to recover was this quick fix. I didn't have time to look into it more properly.
Since the diff is indentation heavy, the gist is this: Remove the try/catch that removes
outDirwhen the download failed. I don't know why this fixes it, or whether this introduces regressions.Closes #465