From 2e090b6c156655dcd4940d63e16b1a77f7322d64 Mon Sep 17 00:00:00 2001 From: Pascal Breuninger Date: Fri, 24 May 2024 13:05:44 +0200 Subject: [PATCH] chore(cli): add version verification skip environment variable --- pkg/loft/client/client.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkg/loft/client/client.go b/pkg/loft/client/client.go index fd8bebaf5..94b05b85d 100644 --- a/pkg/loft/client/client.go +++ b/pkg/loft/client/client.go @@ -354,10 +354,12 @@ func (c *client) LoginWithAccessKey(host, accessKey string, insecure bool) error c.config.Insecure = insecure c.config.AccessKey = accessKey - // verify version - err = VerifyVersion(c) - if err != nil { - return perrors.Wrap(err, "verify version") + if os.GetEnv("DEVPOD_SKIP_VERSION_CHECK") != "true" { + // verify version + err = VerifyVersion(c) + if err != nil { + return perrors.Wrap(err, "verify version") + } } // verify the connection works