From 86d9bc721601a55907c44c8e0c7ea0fe5171c192 Mon Sep 17 00:00:00 2001 From: Ville Vesilehto Date: Mon, 2 Mar 2026 18:45:50 +0200 Subject: [PATCH] build: add grpcnotrace tag to exclude x/net/trace (#7884) --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b95f8cc7e..f591cdc43 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,7 @@ BINARY:=coredns SYSTEM:= CHECKS:=check BUILDOPTS?=-v +GOTAGS?=grpcnotrace GOPATH?=$(HOME)/go MAKEPWD:=$(dir $(realpath $(firstword $(MAKEFILE_LIST)))) CGO_ENABLED?=0 @@ -19,7 +20,7 @@ all: coredns .PHONY: coredns coredns: $(CHECKS) - CGO_ENABLED=$(CGO_ENABLED) $(SYSTEM) go build $(BUILDOPTS) $(LDFLAGS) -o $(BINARY) + CGO_ENABLED=$(CGO_ENABLED) $(SYSTEM) go build $(BUILDOPTS) -tags="$(GOTAGS)" $(LDFLAGS) -o $(BINARY) .PHONY: check check: core/plugin/zplugin.go core/dnsserver/zdirectives.go