|
|
|
Index: src/github.com/coredns/coredns/Makefile
|
|
|
|
--- src/github.com/coredns/coredns/Makefile.orig 2019-02-23 00:41:29.000000000 +0100
|
|
|
|
+++ src/github.com/coredns/coredns/Makefile 2019-02-23 00:50:02.746577000 +0100
|
|
|
|
@@ -1,8 +1,8 @@
|
|
|
|
# Makefile for building CoreDNS
|
|
|
|
-GITCOMMIT:=$(shell git describe --dirty --always)
|
|
|
|
+GITCOMMIT:=000000
|
|
|
|
BINARY:=coredns
|
|
|
|
SYSTEM:=
|
|
|
|
-CHECKS:=check godeps
|
|
|
|
+CHECKS:=check
|
|
|
|
BUILDOPTS:=-v
|
|
|
|
GOPATH?=$(HOME)/go
|
|
|
|
PRESUBMIT:=core coremain plugin test request
|
|
|
|
@@ -17,23 +17,10 @@
|
|
|
|
CGO_ENABLED=$(CGO_ENABLED) $(SYSTEM) go build $(BUILDOPTS) -ldflags="-s -w -X github.com/coredns/coredns/coremain.GitCommit=$(GITCOMMIT)" -o $(BINARY)
|
|
|
|
|
|
|
|
.PHONY: check
|
|
|
|
-check: presubmit core/plugin/zplugin.go core/dnsserver/zdirectives.go godeps
|
|
|
|
+check: core/plugin/zplugin.go core/dnsserver/zdirectives.go
|
|
|
|
|
|
|
|
.PHONY: godeps
|
|
|
|
godeps:
|
|
|
|
- @ # Not vendoring these, so external plugins compile, avoiding:
|
|
|
|
- @ # cannot use c (type *"github.com/mholt/caddy".Controller) as type
|
|
|
|
- @ # *"github.com/coredns/coredns/vendor/github.com/mholt/caddy".Controller like errors.
|
|
|
|
- (cd $(GOPATH)/src/github.com/mholt/caddy 2>/dev/null && git checkout -q master 2>/dev/null || true)
|
|
|
|
- (cd $(GOPATH)/src/github.com/miekg/dns 2>/dev/null && git checkout -q master 2>/dev/null || true)
|
|
|
|
- (cd $(GOPATH)/src/github.com/prometheus/client_golang 2>/dev/null && git checkout -q master 2>/dev/null || true)
|
|
|
|
- go get -u github.com/mholt/caddy
|
|
|
|
- go get -u github.com/miekg/dns
|
|
|
|
- go get -u github.com/prometheus/client_golang/prometheus/promhttp
|
|
|
|
- go get -u github.com/prometheus/client_golang/prometheus
|
|
|
|
- (cd $(GOPATH)/src/github.com/mholt/caddy && git checkout -q v0.11.4)
|
|
|
|
- (cd $(GOPATH)/src/github.com/miekg/dns && git checkout -q v1.1.4)
|
|
|
|
- (cd $(GOPATH)/src/github.com/prometheus/client_golang && git checkout -q v0.9.1)
|
|
|
|
|
|
|
|
.PHONY: travis
|
|
|
|
travis:
|