Don't try to download a new client binary if the server version matches
@@ -4,6 +4,7 @@ import (
"runtime"
"github.com/epinio/epinio/internal/selfupdater"
+ "github.com/epinio/epinio/internal/version"
"github.com/pkg/errors"
)
@@ -19,6 +20,12 @@ func (c *EpinioClient) ClientSync() error {
return err
}
+ if version.Version == v.Version {
+ c.ui.Success().Msgf("Client and server version are the same (%s). Nothing to do!", v.Version)
+
+ return nil
+ }
+
updater, err := getUpdater()
if err != nil {
return errors.Wrap(err, "getting an updater")
