-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Lock for the duration of tool commands #4720
Conversation
Ah this is a bit annoying because now we're locking the directory before we make sure it exists, which I preferred to have happen once we knew we wanted to mutate it so we weren't creating during inspection. I'm not sure how much this matters in practice. |
Where is this happening in the code? I think it's ok though. |
@charliermarsh you can see the CI failures are due to the lock being acquired without |
Ahh sorry yes, that makes sense. |
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.
My little nit here is to use a different word than "safe" in the comments, just to avoid it being confusable with the Rust concept of safety. Maybe, "correct" instead?
Feedback from #4501 (comment)