Allow semver generator to run without configuration file present.

This commit is contained in:
2022-03-10 00:22:19 +00:00
parent 74b11f30c9
commit 4451f4b9b5
2 changed files with 23 additions and 9 deletions
+1 -2
View File
@@ -327,8 +327,7 @@ func main() {
if repo.Generate || params.varGenerateInTest {
err := repo.ReadConfig(repo.LocalConfigFile)
if err != nil {
fmt.Println("Unable to find config file", repo.LocalConfigFile)
os.Exit(1)
fmt.Println("Unable to find config file semver.yaml. Using defaults and flags.", repo.LocalConfigFile)
}
err = repo.Prepare()
if err != nil {