I am trying to build caddy with a few custom plugins using xcaddy. My build command is this:
xcaddy build \
--with github.com/mholt/caddy-ratelimit \
--with github.com/greenpau/caddy-trace \
--with github.com/caddy-dns/cloudflare \
--with github.com/abiosoft/caddy-json-parse \
--with github.com/iamd3vil/caddy_yaml_adapter \
--with github.com/abiosoft/caddy-json-schema \
--output caddy
I have been trying to do this on clean golang containers. First I tried 1.18.1-alpine3.15
then 1.17.9-alpine3.15
. In both cases the result is the same, it errors out with the following:
2022/04/28 03:47:53 [INFO] exec (timeout=0s): /usr/local/go/bin/go build -o /go/caddy -ldflags -w -s -trimpath
# github.com/caddyserver/caddy/v2
/go/pkg/mod/github.com/caddyserver/caddy/[email protected]/listeners.go:187:68: undefined: quic.EarlySession
2022/04/28 03:50:08 [INFO] Cleaning up temporary folder: /tmp/buildenv_2022-04-28-0346.3700484307
2022/04/28 03:50:08 [FATAL] exit status 2
I tried adding XCADDY_DEBUG=1
but that didn't change the output at all so no further insight. Not really sure what to do at this point so brought it here.
Hm looks like github.com/mholt/caddy-ratelimit does. It also says it requires 2.5.0 though which is confusing since it sounds like it doesn't actually work with 2.5.0 given that requirement. I guess its a bug with that plugin then?
EDIT: Oh wait, nvm, it replaces it with v0.26.0 after. I missed it at the bottom:
https://github.com/mholt/caddy-ratelimit/blob/73efe0ba63c955bd2190312ffdebf7497018dcfb/go.mod#L112
So still stumped again I suppose...
Owner Name | caddyserver |
Repo Name | xcaddy |
Full Name | caddyserver/xcaddy |
Language | Go |
Created Date | 2020-03-21 |
Updated Date | 2022-06-29 |
Star Count | 337 |
Watcher Count | 13 |
Fork Count | 66 |
Issue Count | 2 |