Skip to content

Commit

Permalink
Merge pull request #5 from PackagrIO/configfile
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ authored Mar 17, 2022
2 parents 000c9e5 + 049fbe2 commit a08964e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit a08964e

Please sign in to comment.