We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fca2154 + f13ffdc commit 2d9b428Copy full SHA for 2d9b428
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