From 7057d5f21b262006040eb8be4b76402727613576 Mon Sep 17 00:00:00 2001 From: --global Date: Wed, 13 Nov 2024 16:16:43 +0100 Subject: [PATCH] fix(cli): resolve provider options after auto-upgrade in pro --- cmd/pro/update_provider.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/pro/update_provider.go b/cmd/pro/update_provider.go index d05a2cf56..db5a94ca5 100644 --- a/cmd/pro/update_provider.go +++ b/cmd/pro/update_provider.go @@ -6,6 +6,7 @@ import ( "strings" "github.com/loft-sh/devpod/cmd/pro/flags" + providercmd "github.com/loft-sh/devpod/cmd/provider" "github.com/loft-sh/devpod/pkg/config" "github.com/loft-sh/devpod/pkg/platform" "github.com/loft-sh/devpod/pkg/workspace" @@ -73,5 +74,10 @@ func (cmd *UpdateProviderCmd) Run(ctx context.Context, args []string) error { return fmt.Errorf("update provider %s: %w", provider.Name, err) } + err = providercmd.ConfigureProvider(ctx, provider, devPodConfig.DefaultContext, []string{}, false, false, nil, log.Discard) + if err != nil { + return fmt.Errorf("configure provider, please retry with 'devpod provider use %s --reconfigure': %w", provider.Name, err) + } + return nil }