summaryrefslogtreecommitdiff
path: root/caddyconfig
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2023-05-17 13:50:32 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2023-05-17 13:50:32 -0600
commitca14b6edd95671e7f0731eea91c138cdca760577 (patch)
tree8d17ba2e69dfa689adbd5606d9977e9341a56b77 /caddyconfig
parentcbf16f6d9eb77f37d6eb588ff3e54cfdfddecc21 (diff)
httpcaddyfile: Sort Caddyfile slice
Makes list deterministic. See #5538
Diffstat (limited to 'caddyconfig')
-rw-r--r--caddyconfig/httpcaddyfile/directives.go1
1 files changed, 1 insertions, 0 deletions
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
}