SIGN IN SIGN UP
caddyserver / caddy UNCLAIMED

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

0 0 103 Go

caddyfile: Improve import/global options UX for imports before global options (#7642)

* caddyfile: improve import/global options UX

Keep standalone global-options braces stable in fmt when they follow import lines.

Also improve validate output for imports before the global options block with a clearer error message.

Add focused formatter and parser regression coverage

* caddyfile: satisfy staticcheck in formatter
Z
Zen Dodd committed
8e2dd5079c27af50a3288502b3a82f683e3737fe
Parent: 5f44ea0
Committed by GitHub <noreply@github.com> on 4/10/2026, 11:17:55 PM