mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-04 23:45:07 +00:00
fix: allow version to be overwritten by build again (#4656)
This commit is contained in:
parent
41c043bcd9
commit
5ac956b0f1
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user