Skip to content

Commit 7c29ebe

Browse files
committed
refactor: only sort orion plugins loaded by glob, not explicit list
1 parent 34415bf commit 7c29ebe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

language/orion/host.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,16 @@ func (h *GazelleHost) loadEnvStarzellePlugins() {
122122
BazelLog.Warnf("No orion plugins found in %q", builtinPluginDir)
123123
}
124124

125+
// Sort to ensure a consistent order not dependent on the fs or glob ordering.
126+
sort.Strings(builtinDirPlugins)
127+
125128
builtinPlugins = append(builtinPlugins, builtinDirPlugins...)
126129
}
127130

128131
if len(builtinPlugins) == 0 {
129132
return
130133
}
131134

132-
// Sort to ensure a consistent order not dependent on the fs or glob ordering.
133-
sort.Strings(builtinPlugins)
134-
135135
// Split the plugin paths to dir + rel for better logging and load API
136136
// Only relativize if builtinPluginDir is not absolute
137137
for i, p := range builtinPlugins {

0 commit comments

Comments
 (0)