We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b599ed commit 0ad9bfeCopy full SHA for 0ad9bfe
1 file changed
tools/update-manifest/main.go
@@ -116,11 +116,12 @@ func main() {
116
117
manifest.Plugins[cfg.Plugin] = plugin
118
119
- data, err := json.Marshal(manifest)
+ data, err := json.MarshalIndent(manifest, "", " ")
120
if err != nil {
121
_, _ = fmt.Fprintf(os.Stderr, "Error serializing manifest: %v\n", err)
122
os.Exit(1)
123
}
124
+ data = append(data, '\n')
125
126
if err := os.MkdirAll(filepath.Dir(cfg.Target), 0750); err != nil {
127
_, _ = fmt.Fprintf(os.Stderr, "Error creating directory: %v\n", err)
0 commit comments