fix: check out default branch from tags
continuous-integration/drone/push Build is passing Details

Also fix error handling to match function signatures.
This commit is contained in:
decentral1se 2022-02-18 11:17:43 +01:00
parent 5da4afa0ec
commit 09ac74d205
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
2 changed files with 4 additions and 4 deletions

View File

@ -138,7 +138,7 @@ keys configured on your account.
internal.RegistryPassword,
)
if err != nil {
logrus.Fatal(err)
logrus.Warn(err)
}
features, category, err := recipe.GetRecipeFeaturesAndCategory(recipeMeta.Name)

View File

@ -355,7 +355,7 @@ func EnsureLatest(recipeName string) error {
return err
}
branch, err := gitPkg.GetCurrentBranch(repo)
branch, err := GetDefaultBranch(repo, recipeName)
if err != nil {
return err
}
@ -935,7 +935,7 @@ func GetRecipeVersions(recipeName, registryUsername, registryPassword string) (R
worktree, err := repo.Worktree()
if err != nil {
logrus.Fatal(err)
return versions, err
}
gitTags, err := repo.Tags()
@ -967,7 +967,7 @@ func GetRecipeVersions(recipeName, registryUsername, registryPassword string) (R
cl, err := client.New("default") // only required for docker.io registry calls
if err != nil {
logrus.Fatal(err)
return err
}
queryCache := make(map[reference.Named]string)