-
Notifications
You must be signed in to change notification settings - Fork 11
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
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?
|
outDir
outDir
. Closes #465
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
outDir
when the download failed. I don't know why this fixes it, or whether this introduces regressions.Closes #465