Caddy add-package hangs indefinitely

You shouldn’t rely on that, we plan on getting rid of it anyway. See proposal: remove `{add,remove}-package` and `upgrade` commands from core · Issue #7010 · caddyserver/caddy · GitHub

You should build Caddy with xcaddy instead. See Build from source — Caddy Documentation