From 64a45e0e1e3a3e9f40ca31df58f76a42cdf18cc5 Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Sun, 28 Apr 2019 13:31:43 -0400 Subject: [PATCH] check that /api doesn't import internal nomad pkgs --- GNUmakefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index 7e24146e3..ad9d3b917 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -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..."