Skip to content

building from external repo doesn't work #253

Open
@marten-seemann

Description

@marten-seemann

What happened:

In preparation for adding my own plugin as described in https://coredns.io/2017/07/25/compile-time-enabling-or-disabling-plugins/#build-with-external-golang-source-code I build coredns from an external repo (see code below). There's no Corefile in the directory.

❯ go run main.go
no action found for directive 'log' with server type 'dns' (missing a plugin?)
exit status 1

What you expected to happen:

I expected coredns to start.

How to reproduce it (as minimally and precisely as possible):

package main

import (
	"github.com/coredns/coredns/coremain"
)

func main() {
	coremain.Run()
}

Using coredns v1.9.0.

Anything else we need to know?:

Environment:

  • the version of CoreDNS: v1.9.0
  • Corefile: n/a
  • logs, if applicable: see above
  • OS (e.g: cat /etc/os-release): OSX (m1 mbp)
  • Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions