-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
saveCache does not use lock #11
Comments
Do you have an idea how to solve it? |
Any of the following should work
|
Unfortunately, it still does not seem to work reliably. To replicate it's enough to run the following scripts multiple time in parallel after
Occasionally it fails with error
(I tried using |
Can you fix it somehow? |
I'm experiencing this often when implementing parallel analysis in PHPStan. But only on Windows. I think it might be because the system only allows one process to write to a file at a time, so the rename() sometimes isn't successful. |
It seems that file cannot be deleted / renamed on Windows if it is open. So when PHP is reading it ( So I'll use read lock. |
Sadly, on our projects, robot-loader stopped working in gitlab CI pipeline after updating package to 3.2.2:
I will provide further details if needed. |
😐😣😫😭😭😭 |
In my case issue is with dg/bypass finals:
|
@dakorpar on Windows or Linux? |
doesn't really matter I get it everywhere...
also same thing with dev-master, for now I locked versions to 3.2.1 |
I tried to change the implementation, it should not do it anymore. |
I'll use RobotLoader's dev-master in the next release again and we'll see. |
saveCache does not use lock and therefore it may fail on this line with following error
The text was updated successfully, but these errors were encountered: