Skip to content

Commit

Permalink
truncate -image-refs file (ko-build#855)
Browse files Browse the repository at this point in the history
  • Loading branch information
imjasonh authored Oct 18, 2022
1 parent 54258ef commit 3f08dc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commands/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func makePublisher(po *options.PublishOptions) (publish.Interface, error) {
}

if po.ImageRefsFile != "" {
f, err := os.OpenFile(po.ImageRefsFile, os.O_RDWR|os.O_CREATE, 0644)
f, err := os.OpenFile(po.ImageRefsFile, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0644)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 3f08dc2

Please sign in to comment.