Skip to content

Add more locking around on-disk image cache#1176

Merged
cpanato merged 1 commit intoko-build:mainfrom
jonjohnsonjr:lock-bases
Nov 7, 2023
Merged

Add more locking around on-disk image cache#1176
cpanato merged 1 commit intoko-build:mainfrom
jonjohnsonjr:lock-bases

Conversation

@jonjohnsonjr
Copy link
Collaborator

Concurrent writes/reads to the cache might result in partially written files, which we'd like to avoid.

On top of that, we generally don't want builds to fail if something goes wrong with the cache, so now we just log any cache errors and do a fallback.

Concurrent writes/reads to the cache might result in partially written
files, which we'd like to avoid.

On top of that, we generally don't want builds to fail if something goes
wrong with the cache, so now we just log any cache errors and do a
fallback.

Signed-off-by: Jon Johnson <jon.johnson@chainguard.dev>
Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@cpanato cpanato merged commit e9db1b0 into ko-build:main Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants