Add CoreDNS build
This adds CoreDNS and all relevant dependencies. Unused plugins are patched out
to prevent excessive dependencies and binary size.
Test Plan: `bazel build @com_github_coredns_coredns//:coredns`
X-Origin-Diff: phab/D614
GitOrigin-RevId: a897bc0e9f908218fd2f414d7e3b902c14e0a374
diff --git a/build/fietsje/main.go b/build/fietsje/main.go
index c62d6c7..acc5548 100644
--- a/build/fietsje/main.go
+++ b/build/fietsje/main.go
@@ -117,6 +117,18 @@
"github.com/sbezverk/nftableslib",
)
+ p.collect("github.com/coredns/coredns", "v1.7.0",
+ prePatches("coredns-remove-unused-plugins.patch"),
+ ).use(
+ "github.com/caddyserver/caddy",
+ "github.com/dnstap/golang-dnstap",
+ "github.com/farsightsec/golang-framestream",
+ "github.com/infobloxopen/go-trees",
+ "github.com/opentracing/opentracing-go",
+ "github.com/grpc-ecosystem/grpc-opentracing",
+ "github.com/flynn/go-shlex",
+ )
+
// First generate the repositories starlark rule into memory. This is because rendering will lock all unlocked
// dependencies, which might take a while. If a use were to interrupt it now, they would end up with an incomplete
// repositories.bzl and would have to restore from git.