From a7afdd5d23b56d9c025e09b917e5047d3a946a33 Mon Sep 17 00:00:00 2001 From: Gabriele Gerbino Date: Wed, 13 Mar 2024 08:11:58 +0100 Subject: [PATCH] fix: use correct workspace for online validation --- cmd/gateway_validate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/gateway_validate.go b/cmd/gateway_validate.go index d81eb8a99..c7051e439 100644 --- a/cmd/gateway_validate.go +++ b/cmd/gateway_validate.go @@ -216,7 +216,7 @@ this command unless --online flag is used. func validateWithKong(ctx context.Context, kongClient *kong.Client, ks *state.KongState) []error { // make sure we are able to connect to Kong - kongVersion, err := fetchKongVersion(ctx, rootConfig) + kongVersion, err := fetchKongVersion(ctx, rootConfig.ForWorkspace(validateWorkspace)) if err != nil { return []error{fmt.Errorf("couldn't fetch Kong version: %w", err)} }