Skip to content

Commit

Permalink
ensure glob results are sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
pcj committed Dec 14, 2023
1 parent 50e7cff commit efd4719
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/glob/glob.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"io/fs"
"log"
"sort"

"github.com/bazelbuild/bazel-gazelle/rule"
"github.com/bazelbuild/buildtools/build"
Expand Down Expand Up @@ -85,6 +86,8 @@ func Apply(glob rule.GlobValue, fs fs.FS) (srcs []string) {
srcs = append(srcs, includes...)
}

sort.Strings(srcs)

return
}

Expand Down

0 comments on commit efd4719

Please sign in to comment.