mirror of
https://github.com/coredns/coredns.git
synced 2025-12-04 17:35:13 -05:00
Fix main startup (#232)
Set version and name of the program. And then call coremain.Run(). The coremain split makes CoreDNS embeddable. Also see #189 for an old PR.
This commit is contained in:
@@ -51,10 +51,8 @@ Caddyfile when I forked it).
|
||||
|
||||
## Compilation
|
||||
|
||||
CoreDNS (as a servertype plugin for Caddy) has a dependency on Caddy - this is *almost* like
|
||||
the normal Go dependencies, but with a small twist: caddy (the source) need to know that CoreDNS
|
||||
exists and for this we need to add 1 line `_ "github.com/miekg/coredns/core"` to file in caddy.
|
||||
|
||||
CoreDNS (as a servertype plugin for Caddy) has a dependency on Caddy, but this is not different than
|
||||
any other Go dependency.
|
||||
You have the source of CoreDNS, this should preferably be downloaded under your `$GOPATH`. Get all
|
||||
dependencies:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user