From ca14b6edd95671e7f0731eea91c138cdca760577 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 17 May 2023 13:50:32 -0600 Subject: httpcaddyfile: Sort Caddyfile slice Makes list deterministic. See #5538 --- caddyconfig/httpcaddyfile/directives.go | 1 + 1 file changed, 1 insertion(+) (limited to 'caddyconfig/httpcaddyfile') diff --git a/caddyconfig/httpcaddyfile/directives.go b/caddyconfig/httpcaddyfile/directives.go index 1223013..9c86a22 100644 --- a/caddyconfig/httpcaddyfile/directives.go +++ b/caddyconfig/httpcaddyfile/directives.go @@ -173,6 +173,7 @@ func (h Helper) Caddyfiles() []string { for file := range files { filesSlice = append(filesSlice, file) } + sort.Strings(filesSlice) return filesSlice } -- cgit v1.2.3