From eb1075dd4cdeed4cacc17a9a4286254edb6bb4cd Mon Sep 17 00:00:00 2001 From: Antoine GIRARD Date: Mon, 24 Apr 2017 16:31:46 +0200 Subject: Check if missing/modified/unused deps in vendor and fix errors (#1468) * Check if missing deps in vendor This will catch import from other repos. (maybe by auto-import) * Remove github.com/smartystreets unused deps * Remove github.com/boltdb/bolt unused dep * Fetch github.com/go-xorm/core + sync gopkg.in/ldap.v2/ldap.go * Auto-install govendor + reinstall github.com/boltdb/bolt needed by vendor/github.com/blevesearch/bleve/index/store/boltdb * Update go-xorm/xorm to a5cb21 in vendor.json * Use a custom repo for implementing change to bolt dep. * Switching bolt to github.com/go-gitea/bolt * Switching bolt to github.com/go-gitea/bolt (fork version) * change the drone sign --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 25007a9769..ee8d5eb6d0 100644 --- a/Makefile +++ b/Makefile @@ -79,6 +79,13 @@ integrations: build test: for PKG in $(PACKAGES); do go test -cover -coverprofile $$GOPATH/src/$$PKG/coverage.out $$PKG || exit 1; done; +.PHONY: test-vendor +test-vendor: + @hash govendor > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ + go get -u github.com/kardianos/govendor; \ + fi + govendor status +outside +unused || exit 1 + .PHONY: test-mysql test-mysql: @echo "Not integrated yet!" -- cgit v1.2.3