check that /api doesn't import internal nomad pkgs

This commit is contained in:
Mahmood Ali 2019-04-28 13:31:43 -04:00
parent b3fac6ef74
commit 64a45e0e1e
1 changed files with 3 additions and 0 deletions

View File

@ -183,6 +183,9 @@ check: ## Lint the source code
@$(MAKE) proto
@if (git status | grep -q .pb.go); then echo the following proto files are out of sync; git status |grep .pb.go; exit 1; fi
@echo "==> Check API package is isolated from rest"
@! go list -f '{{ join .Deps "\n" }}' ./api | grep github.com/hashicorp/nomad/ | grep -v -e /vendor/ -e /nomad/api/
.PHONY: checkscripts
checkscripts: ## Lint shell scripts
@echo "==> Linting scripts..."