mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 19:05:42 +03:00
check that /api doesn't import internal nomad pkgs
This commit is contained in:
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user