Skip to content

Commit

Permalink
Sort suggestions (#204)
Browse files Browse the repository at this point in the history
Currently tests are flaky because these are in arbitrary order.
  • Loading branch information
illicitonion authored Sep 4, 2023
1 parent fa1fe87 commit 25eaad3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions java/gazelle/private/maven/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package maven

import (
"fmt"
"sort"

"github.com/bazel-contrib/rules_jvm/java/gazelle/private/bazel"
"github.com/bazel-contrib/rules_jvm/java/gazelle/private/maven/multiset"
Expand Down Expand Up @@ -82,6 +83,7 @@ func (r *resolver) Resolve(pkg types.PackageName, excludedArtifacts map[string]s
}
filtered = append(filtered, LabelFromArtifact(mavenRepositoryName, k).String())
}
sort.Strings(filtered)

switch len(filtered) {
case 0:
Expand Down

0 comments on commit 25eaad3

Please sign in to comment.