check that /api doesn't import internal nomad pkgs
This commit is contained in:
parent
b3fac6ef74
commit
64a45e0e1e
|
@ -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..."
|
||||
|
|
Loading…
Reference in New Issue