sillygod/cdp-cache

Build error with xcaddy

Closed this issue · 5 comments

/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

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.

I build 2.4.x, not 2.0.0 (I don't specify caddy version)

I have no reason to run an outdated version of caddy, as even stable is 2.3.x

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

I will close this issue because it's not a bug. I create another issue as a wishlist. #41