abiosoft / caddy-docker

Docker container for Caddy
https://hub.docker.com/r/abiosoft/caddy/
MIT License
768 stars 315 forks source link

Build fail with dns/dnspod imported #198

Open benzBrake opened 5 years ago

benzBrake commented 5 years ago

My build command

docker build --build-arg     plugins="cache,filter,nobots,ratelimit,realip,dns,dnspod"     github.com/abiosoft/caddy-docker.git

Error output

go: finding golang.org/x/time/rate latest
go: finding github.com/pquerna/cachecontrol latest
go: downloading github.com/pquerna/cachecontrol v0.0.0-20180517163645-1555304b9b35
go: extracting github.com/pquerna/cachecontrol v0.0.0-20180517163645-1555304b9b35
go: finding golang.org/x/time latest
go: downloading golang.org/x/time v0.0.0-20190308202827-9d24e82272b4
go: extracting golang.org/x/time v0.0.0-20190308202827-9d24e82272b4
# github.com/go-acme/lego/providers/dns/dnspod
/go/pkg/mod/github.com/go-acme/lego@v2.5.0+incompatible/providers/dns/dnspod/dnspod.go:140:19: cannot convert 0 (type untyped number) to type "encoding/json".Number
/go/pkg/mod/github.com/go-acme/lego@v2.5.0+incompatible/providers/dns/dnspod/dnspod.go:140:19: invalid operation: hostedZone.ID == 0 (mismatched types "encoding/json".Number and int)
error at 'building caddy'
ypwhs commented 5 years ago
starting stage: building caddy
go: downloading github.com/gorilla/websocket v1.4.0
go: downloading github.com/dustin/go-humanize v1.0.0
go: downloading gopkg.in/yaml.v2 v2.2.2
go: downloading github.com/jimstudt/http-authentication v0.0.0-20140401203705-3eca13d6893a
go: downloading github.com/naoina/toml v0.1.1
go: extracting github.com/dustin/go-humanize v1.0.0
go: extracting github.com/jimstudt/http-authentication v0.0.0-20140401203705-3eca13d6893a
go: extracting github.com/gorilla/websocket v1.4.0
go: extracting github.com/naoina/toml v0.1.1
go: downloading github.com/naoina/go-stringutil v0.1.0
go: extracting github.com/naoina/go-stringutil v0.1.0
go: extracting gopkg.in/yaml.v2 v2.2.2
# github.com/go-acme/lego/providers/dns/dnspod
/go/pkg/mod/github.com/go-acme/lego@v2.5.0+incompatible/providers/dns/dnspod/dnspod.go:140:19: cannot convert 0 (type untyped number) to type "encoding/json".Number
/go/pkg/mod/github.com/go-acme/lego@v2.5.0+incompatible/providers/dns/dnspod/dnspod.go:140:19: invalid operation: hostedZone.ID == 0 (mismatched types "encoding/json".Number and int)
error at 'building caddy'

same problem.

fjc0k commented 5 years ago

@abiosoft Lego does not support dnspod-go 0.2.0.

https://github.com/go-acme/lego/issues/827

https://github.com/caddyserver/dnsproviders/pull/53

image