bake: sort extra-hosts before generating build options

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2026-04-09 15:53:24 +02:00
parent 43fe71eaba
commit 09f288c71e
2 changed files with 24 additions and 1 deletions
+2 -1
View File
@@ -1513,7 +1513,8 @@ func toBuildOpt(t *Target, inp *Input) (*build.Options, error) {
}
var extraHosts []string
for k, v := range t.ExtraHosts {
for _, k := range slices.Sorted(maps.Keys(t.ExtraHosts)) {
v := t.ExtraHosts[k]
if v == nil {
continue
}