From fabf67ee34c041c22e72f36a660f2dcbc1d90931 Mon Sep 17 00:00:00 2001 From: kurochan Date: Mon, 5 Dec 2022 21:04:17 +0900 Subject: [PATCH] update comment --- pkg/yamlprocessor/yamlprocessor.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/yamlprocessor/yamlprocessor.go b/pkg/yamlprocessor/yamlprocessor.go index 1824a03df4..40060b0bcf 100644 --- a/pkg/yamlprocessor/yamlprocessor.go +++ b/pkg/yamlprocessor/yamlprocessor.go @@ -106,6 +106,12 @@ func (p *Processor) ReplaceString(path, value string) error { func (p *Processor) Bytes() []byte { str := p.file.String() + /* + TODO: Remove there when PR of go-yaml merged. + see also: + https://github.com/goccy/go-yaml/pull/329 + https://github.com/pipe-cd/pipecd/pull/4033#discussion_r1039300377 + */ if len(str) > 0 && str[len(str)-1] != '\n' { str += "\n" }