Skip to content

Update recorder to lazy create file.#1379

Merged
imjasonh merged 2 commits intoko-build:mainfrom
jeffmendoza:recorder-lazy-create
Oct 16, 2024
Merged

Update recorder to lazy create file.#1379
imjasonh merged 2 commits intoko-build:mainfrom
jeffmendoza:recorder-lazy-create

Conversation

@jeffmendoza
Copy link
Contributor

Currently the resolver command creates the image-refs file on initialization. This causes git to be dirty during builds. This change moves the file creation to be in the recorder itself and on the first time the Publish() method is called. This happens after the build so git is clean. This will mean that any errors on file creation will be reported after the build rather than before.

Fixes #1378

Currently the resolver command creates the image-refs file on
initilization. This causes git to be dirty during builds. This change moves the
file creation to be in the recorder itself and on the first time the Publish()
method is called. This happens after the build so git is clean. This will mean
that any errors on file creation will be reported after the build rather than
before.

Signed-off-by: Jeff Mendoza <jlm@jlm.name>
Signed-off-by: Jeff Mendoza <jlm@jlm.name>
@imjasonh imjasonh merged commit 87a19c6 into ko-build:main Oct 16, 2024
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.

Using --image-refs in ko build results in dirty git

2 participants