Skip to content

Commit

Permalink
fix: randomization of daytona provider install (#1336)
Browse files Browse the repository at this point in the history
Signed-off-by: Ansuman Sahoo <[email protected]>
  • Loading branch information
unsuman authored Nov 14, 2024
1 parent 75cf898 commit d5f75b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/cmd/provider/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"errors"
"fmt"
"slices"
"strings"

"github.com/charmbracelet/huh"
apiclient_util "github.com/daytonaio/daytona/internal/util/apiclient"
Expand Down Expand Up @@ -188,6 +189,10 @@ func GetProviderListFromManifest(manifest *manager.ProvidersManifest) []apiclien
}
}

slices.SortFunc(providerList, func(a, b apiclient.Provider) int {
return strings.Compare(a.Name, b.Name)
})

return providerList
}

Expand Down

0 comments on commit d5f75b7

Please sign in to comment.