From b24e4ccd245861f7537f17c3e01be2cbefb1b29e Mon Sep 17 00:00:00 2001 From: Joseph Richey Date: Fri, 25 Oct 2019 17:15:27 -0700 Subject: Delete vendored code and update CI to Go 1.13 (#158) As the Go community transitions to using the modules ecosystem, we want to only support one way of managing dependencies. So this change moves to only using Go modules for dependency management. This means that our effective minimum Go version increases to Go 1.11. To account for this, we also update: - the documentation - Makefile - CI scripts --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 975cfa5..31af269 100644 --- a/Makefile +++ b/Makefile @@ -71,9 +71,11 @@ DATE_FLAG := -X "main.buildTime=$(shell date)" override GO_LINK_FLAGS += $(VERSION_FLAG) $(DATE_FLAG) -extldflags "$(LDFLAGS)" override GO_FLAGS += --ldflags '$(GO_LINK_FLAGS)' +# Always use Go modules +export GO111MODULE = on ###### Find All Files and Directories ###### -FILES := $(shell find . \( -path ./vendor -o -path "./.*" \) -prune -o -type f -printf "%P\n") +FILES := $(shell find . -path '*/.git*' -prune -o -type f -printf "%P\n") GO_FILES := $(filter %.go,$(FILES)) GO_NONGEN_FILES := $(filter-out %.pb.go,$(GO_FILES)) GO_DIRS := $(sort $(dir $(GO_FILES))) -- cgit v1.2.3