We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e66e1b9 commit f13ffdcCopy full SHA for f13ffdc
1 file changed
pkg/cdi/spec.go
@@ -132,6 +132,7 @@ func (s *Spec) write(overwrite bool) error {
132
133
if filepath.Ext(s.path) == ".yaml" {
134
data, err = yaml.Marshal(s.Spec)
135
+ data = append([]byte("---\n"), data...)
136
} else {
137
data, err = json.Marshal(s.Spec)
138
}
0 commit comments