Using the caddy add-package command hangs indefinitely. I’ve tried with multiple different packages and they all hang the same way. (One of my tests has been sitting there for >30m, with no additional feedback about what’s going on.)
2. Error messages and/or full log output:
$ docker run --rm caddy:2 caddy add-package github.com/caddy-dns/cloudflare
{"level":"info","ts":1678247248.6178856,"msg":"this executable will be replaced","path":"/usr/bin/caddy"}
{"level":"info","ts":1678247248.618044,"msg":"requesting build","os":"linux","arch":"amd64","packages":["github.com/caddy-dns/cloudflare"]}
There is no further output, no errors, no indication that anything at all is happening.
3. Caddy version:
$ docker run --rm caddy:2 caddy version
v2.6.4 h1:2hwYqiRwk1tf3VruhMpLcYTg+11fCdr8S3jhNAdnPy8=
That’s understandable, and pretty much what I figured was happening (after reading the other thread about the website not working either) but thought it was worth reporting anyhow.
The docs for add-package do specify that it’s experimental, which is fair enough, but it does seem like there could be some benefit to building in a timeout on caddy add-package so that this kind of thing doesn’t create hung processes.
In order to verify this issue, I visited Download Caddy and added a few packages for download. The build process also took a very long time, and it did not complete even after I closed the page.