Skip to content

Don't AppendDescriptor until we've written config#1175

Merged
imjasonh merged 1 commit intoko-build:mainfrom
jonjohnsonjr:image-cache-config
Nov 6, 2023
Merged

Don't AppendDescriptor until we've written config#1175
imjasonh merged 1 commit intoko-build:mainfrom
jonjohnsonjr:image-cache-config

Conversation

@jonjohnsonjr
Copy link
Collaborator

I have a suspicion that this is causing a race where we modify the cache's index.json file before we actually write out the image's config file, so if we call RawConfigFile before we finish caching it, we'll just fail to find that file.

I have a suspicion that this is causing a race where we modify the
cache's index.json file before we actually write out the image's config
file, so if we call RawConfigFile before we finish caching it, we'll
just fail to find that file.

Signed-off-by: Jon Johnson <jon.johnson@chainguard.dev>
@imjasonh imjasonh merged commit 93d195e into ko-build:main Nov 6, 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.

2 participants