diff options
| author | Joseph Richey <joerichey@google.com> | 2019-10-25 17:15:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-25 17:15:27 -0700 |
| commit | b24e4ccd245861f7537f17c3e01be2cbefb1b29e (patch) | |
| tree | 41270d37811b1410b7d1cad9bc9fa9e2cdfd3447 /Makefile | |
| parent | 5d888ac2c654a3ac00cd4b608cba0ca1dce47678 (diff) | |
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
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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))) |