*: vendor golint to prevent upstream changes from breaking the build

golint has updated or dropped support for old Go versions several times,
causing breaks in our build. Vendor it locally to prevent this.
This commit is contained in:
Eric Chiang
2018-10-24 14:16:49 -07:00
parent 867130e22e
commit 50b96564f5
4 changed files with 30 additions and 5 deletions

View File

@@ -51,9 +51,9 @@ vet:
fmt:
@./scripts/gofmt $(shell go list ./... | grep -v '/vendor/')
lint:
lint: bin/golint
@for package in $(shell go list ./... | grep -v '/vendor/' | grep -v '/api' | grep -v '/server/internal'); do \
golint -set_exit_status $$package $$i || exit 1; \
./bin/golint -set_exit_status $$package $$i || exit 1; \
done
.PHONY: docker-image
@@ -75,6 +75,9 @@ bin/protoc: scripts/get-protoc
bin/protoc-gen-go:
@go install -v $(REPO_PATH)/vendor/github.com/golang/protobuf/protoc-gen-go
bin/golint:
@go install -v $(REPO_PATH)/vendor/golang.org/x/lint/golint
clean:
@rm -rf bin/