sillygod / cdp-cache

a caddy 2 proxy cache plugin
MIT License
119 stars 17 forks source link

Build error with xcaddy #39

Closed androidacy-user closed 3 years ago

androidacy-user commented 3 years ago
/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 3 years ago

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 3 years ago

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

androidacy-user commented 3 years ago

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

sillygod commented 3 years ago

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

sillygod commented 3 years ago

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