From ee0ccf91c61e3cf3399a9d61b0ed88ac86def632 Mon Sep 17 00:00:00 2001 From: Jacob Gillespie Date: Thu, 24 Mar 2022 12:09:39 +0000 Subject: [PATCH] Add final newline to config file --- pkg/project/config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/project/config.go b/pkg/project/config.go index 0f9ca2cf..108b72d6 100644 --- a/pkg/project/config.go +++ b/pkg/project/config.go @@ -55,6 +55,8 @@ func WriteConfig(filename string, config *ProjectConfig) error { return fmt.Errorf("Unsupported config file extension: %s", ext) } + data = append(data, '\n') + return os.WriteFile(filename, data, 0644) }