diff --git a/.gitignore b/.gitignore index 33bb33a..b29219f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.coverprofile .idea/ -.coverage \ No newline at end of file +.coverage +.vscode \ No newline at end of file diff --git a/ctpm/init.go b/ctpm/init.go index 49deb95..efc2b2b 100644 --- a/ctpm/init.go +++ b/ctpm/init.go @@ -2,12 +2,13 @@ package ctpm import ( "fmt" - "github.com/mitchellh/go-spdx" "io/ioutil" "os" "path/filepath" "text/template" + "github.com/mitchellh/go-spdx" + "github.com/c3pm-labs/c3pm/config" ) @@ -46,12 +47,12 @@ func Init(pc *config.ProjectConfig, opt InitOptions) error { return err } } + err = Build(pc) + if err != nil { + return err + } } - err = Build(pc) - if err != nil { - return err - } return pc.Save() }