.DEFAULT_GOAL:=help
GO_TEST_FLAGS = $(VERBOSE)

.PHONY: fmt
fmt: ## Run go fmt against code
	go fmt *.go
	git diff --exit-code

.PHONY: vet
vet: ## Run go vet against code
	go vet *.go

.PHONY: test
test: ## Run go test against code
	GO111MODULE=on go test $(GO_TEST_FLAGS) ./

.PHONY: build-coredns
build-coredns: ## Build coredns using the local branch of coredns-mdns
	hack/build-coredns.sh
