Build error with xcaddy
Closed this issue · 5 comments
androidacy-user commented
/home/unixandria/go/pkg/mod/github.com/sillygod/cdp-cache@v0.4.3/endpoint.go:141:4: unknown field 'Code' in struct literal of type caddy.APIError
This prevents building with xcaddy
sillygod commented
Hi @Androidacy,
Could you show what command you've entered to build the executable?
I've tried this
xcaddy build v2.0.0 --with github.com/sillygod/cdp-cache
It works well.
I guess you didn't specify the caddy's version.
androidacy-user commented
I build 2.4.x, not 2.0.0 (I don't specify caddy version)
androidacy-user commented
I have no reason to run an outdated version of caddy, as even stable is 2.3.x
sillygod commented
Currently, this plugin supports caddy's version up to 2.1.1 because I develop this at that time. There are some breaking changes in the newer caddy's version.
I have to spend efforts to upgrade the caddy's version