Skip to content

Commit

Permalink
chore(cli): add version verification skip environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbreuninger committed May 24, 2024
1 parent f272463 commit 2e090b6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkg/loft/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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" {

Check failure on line 357 in pkg/loft/client/client.go

View workflow job for this annotation

GitHub Actions / lint

undefined: os.GetEnv (typecheck)

Check failure on line 357 in pkg/loft/client/client.go

View workflow job for this annotation

GitHub Actions / lint

undefined: os.GetEnv) (typecheck)

Check failure on line 357 in pkg/loft/client/client.go

View workflow job for this annotation

GitHub Actions / lint

undefined: os.GetEnv) (typecheck)

Check failure on line 357 in pkg/loft/client/client.go

View workflow job for this annotation

GitHub Actions / lint

undefined: os.GetEnv (typecheck)

Check failure on line 357 in pkg/loft/client/client.go

View workflow job for this annotation

GitHub Actions / lint

undefined: os.GetEnv) (typecheck)

Check failure on line 357 in pkg/loft/client/client.go

View workflow job for this annotation

GitHub Actions / lint

undefined: os.GetEnv) (typecheck)

Check failure on line 357 in pkg/loft/client/client.go

View workflow job for this annotation

GitHub Actions / aarch64-unknown-linux-gnu

undefined: os.GetEnv

Check failure on line 357 in pkg/loft/client/client.go

View workflow job for this annotation

GitHub Actions / aarch64-apple-darwin

undefined: os.GetEnv

Check failure on line 357 in pkg/loft/client/client.go

View workflow job for this annotation

GitHub Actions / x86_64-apple-darwin

undefined: os.GetEnv

Check failure on line 357 in pkg/loft/client/client.go

View workflow job for this annotation

GitHub Actions / x86_64-unknown-linux-gnu

undefined: os.GetEnv

Check failure on line 357 in pkg/loft/client/client.go

View workflow job for this annotation

GitHub Actions / x86_64-unknown-linux-gnu

undefined: os.GetEnv

Check failure on line 357 in pkg/loft/client/client.go

View workflow job for this annotation

GitHub Actions / test-e2e-windows (build)

undefined: os.GetEnv

Check failure on line 357 in pkg/loft/client/client.go

View workflow job for this annotation

GitHub Actions / test-e2e-windows (build)

undefined: os.GetEnv

Check failure on line 357 in pkg/loft/client/client.go

View workflow job for this annotation

GitHub Actions / x86_64-pc-windows-msvc

undefined: os.GetEnv
// verify version
err = VerifyVersion(c)
if err != nil {
return perrors.Wrap(err, "verify version")
}
}

// verify the connection works
Expand Down

0 comments on commit 2e090b6

Please sign in to comment.