1. My Caddy version (caddy version
):
Not successfully installed,I followed README.md to build caddy.
2. How I run Caddy:
run go get github.com/caddyserver/caddy/caddy to install caddy
a. System environment:
Ubuntu 16.04 and Debian 9, both of them get the same error after I type the command above
b. Command:
go get github.com/caddyserver/caddy/caddy
c. Service/unit/compose file:
Not have
d. My complete Caddyfile or JSON config:
Not have
3. The problem I’m having:
I have followed every steps from README.md and tried it in my other server.However, the following error still occurs
4. Error messages and/or full log output:
root@molitei:~# go get github.com/caddyserver/caddy/caddy
github.com/caddyserver/caddy/caddytls
go/src/github.com/caddyserver/caddy/caddytls/config.go:119:4: cannot use func literal (type func(certmagic.Certificate) (certmagic.Config, error)) as type certmagic.ConfigGetter in field value
go/src/github.com/caddyserver/caddy/caddytls/setup.go:135:19: config.Manager.Email undefined (type *certmagic.Config has no field or method Email)
go/src/github.com/caddyserver/caddy/caddytls/setup.go:153:19: config.Manager.CA undefined (type *certmagic.Config has no field or method CA)
go/src/github.com/caddyserver/caddy/caddytls/setup.go:160:19: config.Manager.KeyType undefined (type *certmagic.Config has no field or method KeyType)
go/src/github.com/caddyserver/caddy/caddytls/setup.go:257:19: config.Manager.DNSProvider undefined (type *certmagic.Config has no field or method DNSProvider)
go/src/github.com/caddyserver/caddy/caddytls/setup.go:269:9: undefined: certmagic.HostQualifies
go/src/github.com/caddyserver/caddy/caddytls/setup.go:361:27: config.Manager.KeyType undefined (type *certmagic.Config has no field or method KeyType)
go/src/github.com/caddyserver/caddy/caddytls/tls.go:74:4: undefined: certmagic.HostQualifies
go/src/github.com/caddyserver/caddy/caddytls/tls.go:80:42: not enough arguments in call to certmagic.NewDefault().RevokeCert
have (string, bool)
want (context.Context, string, bool)
5. What I already tried:
I tried it in my other server Debian 9 and install the old go version 1.13 but still give me the error