Makefile: Restore vendor directory after dep-validate

Currently, this target makes changes to the vendor directory, which may
overwrite local changes or cause build errors. It's better to restore
the original vendor directory after running the check.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
pull/2218/head
Aaron Lehmann 2017-03-20 11:12:03 -07:00
parent 29e5cd5304
commit 299b90b0bd
1 changed files with 2 additions and 1 deletions

View File

@ -95,4 +95,5 @@ dep-validate:
@$(VNDR)
@test -z "$$(diff -r vendor .vendor.bak 2>&1 | tee /dev/stderr)" || \
(echo >&2 "+ inconsistent dependencies! what you have in vendor.conf does not match with what you have in vendor" && false)
@rm -Rf .vendor.bak
@rm -Rf vendor
@mv .vendor.bak vendor