From 6f7e24d3f25ef767aea9d32a002647c6183e0bec Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Tue, 30 Jan 2018 12:20:42 +0100 Subject: [PATCH] autogen/rust: remove Cargo.lock Remove Cargo.lock to avoid issues when updating Cargo.toml --- autogen.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autogen.sh b/autogen.sh index 1e15b809aef7..a40d3f90e8c0 100755 --- a/autogen.sh +++ b/autogen.sh @@ -11,4 +11,9 @@ else exit 1 fi; autoreconf -fv --install || exit 1 +if which cargo > /dev/null; then + if [ -f rust/Cargo.lock ] ; then + rm -f rust/Cargo.lock + fi +fi; echo "You can now run \"./configure\" and then \"make\"."