Skip to content

Commit

Permalink
fixes provider sort order
Browse files Browse the repository at this point in the history
  • Loading branch information
ATGardner committed Jul 15, 2021
1 parent 6e853fd commit 7201a64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/git/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package git
import (
"context"
"fmt"
"sort"
)

//go:generate mockery --name Provider --filename provider.go
Expand Down Expand Up @@ -70,5 +71,6 @@ func Providers() []string {
res = append(res, p)
}

sort.Strings(res) // must sort the providers by name, otherwise the codegen is not determenistic
return res
}

0 comments on commit 7201a64

Please sign in to comment.