Skip to content

Commit

Permalink
Makefile: Restore vendor directory after dep-validate
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
aaronlehmann committed Mar 20, 2017
1 parent 29e5cd5 commit 299b90b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 299b90b

Please sign in to comment.