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>
This commit is contained in:
Aaron Lehmann 2017-03-20 11:12:03 -07:00
parent 29e5cd5304
commit 299b90b0bd

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