Skip to content

Conversation

@vito
Copy link
Owner

@vito vito commented Aug 16, 2022

this was obviously broken! we would check if the cache already existed
and return it, but then create the cache and start writing to it.

now we'll create a temporary file and then rename it over the cache
instead.

this will hopefully fix all the really weird errors hitting bass-loop
whenever hooks kick off concurrently.

@vito vito added the bugfix Fixes a regression or unintended behavior label Aug 16, 2022
this was obviously broken! we would check if the cache already existed
and return it, but then create the cache and start writing to it.

now we'll create a temporary file and then rename it over the cache
instead.

this should fix all the really weird errors hitting bass-loop whenever
hooks kick off concurrently.
@vito vito merged commit cc171ea into main Aug 16, 2022
@vito vito deleted the fix-cache-race branch August 16, 2022 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Fixes a regression or unintended behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants