fix: version info nil on version api endpoint
@@ -32,6 +32,7 @@ type Registry interface {
Init(ctx context.Context) error
+ WithBuildInfo(v, h, d string) Registry
WithConfig(c *config.Provider) Registry
WithLogger(l *logrusx.Logger) Registry
@@ -70,7 +71,7 @@ func NewRegistryFromDSN(ctx context.Context, c *config.Provider, l *logrusx.Logg
return nil, errors.Errorf("driver of type %T does not implement interface Registry", driver)
}
- registry = registry.WithLogger(l).WithConfig(c)
+ registry = registry.WithLogger(l).WithConfig(c).WithBuildInfo(config.Version, config.Commit, config.Date)
if err := registry.Init(ctx); err != nil {
return nil, err
