Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

CoreDNS will not compile when using the ads plugin #18

Closed
@cbuijs

Description

Hi,

First: Thanks for this very cool plugin! Keep up the good work!

But...

When following the instructions to add the plugin and compile coredns, following errors occurr during the make:

# github.com/c-mueller/ads
coredns/go/src/github.com/c-mueller/ads/setup.go:51:24: cannot use c (type *"github.com/mholt/caddy".Controller) as type *"github.com/caddyserver/caddy".Controller in argument to metrics.MustRegister
coredns/go/src/github.com/c-mueller/ads/setup.go:52:24: cannot use c (type *"github.com/mholt/caddy".Controller) as type *"github.com/caddyserver/caddy".Controller in argument to metrics.MustRegister
coredns/go/src/github.com/c-mueller/ads/setup.go:53:24: cannot use c (type *"github.com/mholt/caddy".Controller) as type *"github.com/caddyserver/caddy".Controller in argument to metrics.MustRegister
coredns/go/src/github.com/c-mueller/ads/setup.go:54:24: cannot use c (type *"github.com/mholt/caddy".Controller) as type *"github.com/caddyserver/caddy".Controller in argument to metrics.MustRegister
coredns/go/src/github.com/c-mueller/ads/setup.go:67:21: cannot use c (type *"github.com/mholt/caddy".Controller) as type *"github.com/caddyserver/caddy".Controller in argument to dnsserver.GetConfig

I see this with many "external" plugins and I think something changed at one point with the go modules and they are always related to Caddy.

Could you provide info/documentation how to succesfull compile? E.g. how do you do it? Using the latest coredns v1.5.2 and go version go1.12.7 linux/amd64.

Cheers,
-Chris.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions