Skip to content

truncate -image-refs file#855

Merged
imjasonh merged 1 commit intoko-build:mainfrom
imjasonh:truncate-image-refs
Oct 18, 2022
Merged

truncate -image-refs file#855
imjasonh merged 1 commit intoko-build:mainfrom
imjasonh:truncate-image-refs

Conversation

@imjasonh
Copy link
Member

Before this change, the file at --image-refs would be opened, and written to from the beginning. If there were any existing contents in that file already, they would be potentially partially overwritten.

With this change, we open and truncate the file, so that any writes start from the beginning of a fresh new file.

This was reported via knative/serving#13408

@imjasonh imjasonh requested a review from jonjohnsonjr October 18, 2022 14:45
@imjasonh imjasonh merged commit 3f08dc2 into ko-build:main Oct 18, 2022
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