From 099f633a1ba53ace4a853505e2aac0dfc253c35a Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Wed, 16 Mar 2022 20:56:26 -0700 Subject: [PATCH 1/2] fixing packagr config file. --- pkg/config/config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/config/config.go b/pkg/config/config.go index 7b7285e..625b731 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -32,6 +32,7 @@ func (c *configuration) Init() error { //set defaults c.SetDefault(PACKAGR_PACKAGE_TYPE, "generic") c.SetDefault(PACKAGR_SCM, "default") + c.SetDefault(PACKAGR_ENGINE_REPO_CONFIG_PATH, "packagr.yml") //set the default system config file search path. //if you want to load a non-standard location system config file (~/capsule.yml), use ReadConfig From 049fbe22b4a5a0a059560bade8dc379f8595e73b Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Wed, 16 Mar 2022 20:58:46 -0700 Subject: [PATCH 2/2] fixing packagr config file. --- pkg/pipeline.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/pipeline.go b/pkg/pipeline.go index 8673447..d173891 100644 --- a/pkg/pipeline.go +++ b/pkg/pipeline.go @@ -125,7 +125,7 @@ func (p *Pipeline) ParseRepoConfig() error { repoConfig := path.Join(p.Data.GitLocalPath, p.Config.GetString(config.PACKAGR_ENGINE_REPO_CONFIG_PATH)) if utils.FileExists(repoConfig) { if err := p.Config.ReadConfig(repoConfig); err != nil { - return errors.New("An error occured while parsing repository capsule.yml file") + return errors.New("An error occured while parsing repository packagr.yml file") } } else { log.Println("No repo capsule.yml file found, using existing config.")