Remove dependency on semver package

Signed-off-by: Jan Tytgat <jan.tytgat@corelayer.eu>
This commit is contained in:
Jan Tytgat
2025-06-09 22:36:32 +02:00
parent fa641b06b2
commit ee7cb7e422
2 changed files with 18 additions and 10 deletions

View File

@ -8,8 +8,6 @@ import (
"time"
"github.com/spf13/cobra"
"git.flexabyte.io/flexabyte/go-kit/semver"
)
type Config struct {
@ -99,8 +97,7 @@ func (c Config) Validate() error {
return errors.New("logger is required")
}
var err error
if _, err = semver.Parse(c.Version.Full); err != nil {
if !c.Version.IsValid() {
return fmt.Errorf("invalid version: %s", c.Version)
}
return nil