From 8b3633be3590e2d7ed10fdcc0e2efe1570b8cd7e Mon Sep 17 00:00:00 2001 From: Michael Sverdlov Date: Wed, 8 Jan 2025 15:02:35 +0200 Subject: [PATCH] Update buildtools/cli.go Co-authored-by: Yahav Itschak --- buildtools/cli.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/buildtools/cli.go b/buildtools/cli.go index 552c553af..79a046d4a 100644 --- a/buildtools/cli.go +++ b/buildtools/cli.go @@ -970,10 +970,9 @@ func setupCmd(c *cli.Context) (err error) { } func selectPackageManagerInteractively() (selectedPackageManager project.ProjectType, err error) { - allSupportedPackageManagers := setup.GetSupportedPackageManagersList() var selected string var selectableItems []ioutils.PromptItem - for _, packageManager := range allSupportedPackageManagers { + for _, packageManager := range setup.GetSupportedPackageManagersList() { selectableItems = append(selectableItems, ioutils.PromptItem{Option: packageManager.String(), TargetValue: &selected}) } err = ioutils.SelectString(selectableItems, "Please select a package manager to set up:", false, func(item ioutils.PromptItem) {