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:
parent
29e5cd5304
commit
299b90b0bd
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue