fix: allow version to be overwritten by build again (#4656)

This commit is contained in:
Livio Spring 2022-11-07 10:50:44 +01:00 committed by GitHub
parent 41c043bcd9
commit 5ac956b0f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -3,13 +3,17 @@ package build
import "time" import "time"
var ( var (
version = time.Now().Format(time.RFC3339) version = ""
commit = "" commit = ""
date = "" date = ""
dateTime time.Time dateTime time.Time
) )
func Version() string { func Version() string {
if version != "" {
return version
}
version = Date().Format(time.RFC3339)
return version return version
} }

View File

@ -203,7 +203,7 @@ func (h *StatementHandler) Init(ctx context.Context) error {
return err return err
} }
if !next { if !next {
logging.WithFields("projection", h.ProjectionName, "execute", i).Debug("skipping next check") logging.WithFields("projection", h.ProjectionName, "execute", i).Debug("projection set up")
break break
} }
} }