This commit is contained in:
Andreas Wachter
2022-09-24 18:14:07 +02:00
parent 6461754630
commit 81136acfbe
2 changed files with 12 additions and 4 deletions
+9 -1
View File
@@ -82,8 +82,16 @@ func Locally(repo types.Repo, l types.Local, dry bool) {
err := cloneRepository(repo, auth, dry)
if err != nil {
if err.Error() == "repository not found" {
log.Warn().
Str("stage", "locally").
Str("path", l.Path).
Str("repo", repo.Name).
Msg(err.Error())
break
}
if x == tries {
log.Fatal().
log.Warn().
Str("stage", "locally").
Str("path", l.Path).
Str("repo", repo.Name).
+3 -3
View File
@@ -17,10 +17,10 @@ import (
// Get TODO.
func Get(conf *types.Conf) []types.Repo {
repos := []types.Repo{}
log.Info().
Str("stage", "whatever").
Msgf("adding repos")
for _, repo := range conf.Source.Any {
log.Info().
Str("stage", "whatever").
Msgf("adding repos")
if repo.URL == "" {
log.Error().
Str("stage", "whatever").