From eb002665d1977cbedccc75e6fb751bcc45c6f8de Mon Sep 17 00:00:00 2001 From: Yuri Shkuro Date: Sat, 18 Mar 2017 23:42:07 -0400 Subject: [PATCH] Exclude thrift-0.9.2 from linter --- Makefile | 2 +- cmd/agent/app/config.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c3d512e0535..e50c4c6b73b 100644 --- a/Makefile +++ b/Makefile @@ -60,7 +60,7 @@ fmt: lint: $(GOVET) $(PACKAGES) @cat /dev/null > $(LINT_LOG) - @$(foreach pkg, $(PACKAGES), $(GOLINT) $(pkg) | grep -v thrift-gen >> $(LINT_LOG) || true;) + @$(foreach pkg, $(PACKAGES), $(GOLINT) $(pkg) | grep -v -e thrift-gen -e thrift-0.9.2 >> $(LINT_LOG) || true;) @[ ! -s "$(LINT_LOG)" ] || (echo "Lint Failures" | cat - $(LINT_LOG) && false) @$(GOFMT) -e -s -l $(ALL_SRC) > $(FMT_LOG) @./scripts/updateLicenses.sh >> $(FMT_LOG) diff --git a/cmd/agent/app/config.go b/cmd/agent/app/config.go index 0ba84985dbe..4b183c14e1d 100644 --- a/cmd/agent/app/config.go +++ b/cmd/agent/app/config.go @@ -34,13 +34,13 @@ import ( zipkinThrift "github.com/uber/jaeger/thrift-gen/agent" jaegerThrift "github.com/uber/jaeger/thrift-gen/jaeger" - "github.com/uber/jaeger/pkg/discovery" - "github.com/uber/jaeger/pkg/discovery/peerlistmgr" "github.com/uber/jaeger/cmd/agent/app/processors" "github.com/uber/jaeger/cmd/agent/app/reporter" "github.com/uber/jaeger/cmd/agent/app/sampling" "github.com/uber/jaeger/cmd/agent/app/servers" "github.com/uber/jaeger/cmd/agent/app/servers/thriftudp" + "github.com/uber/jaeger/pkg/discovery" + "github.com/uber/jaeger/pkg/discovery/peerlistmgr" ) const (