From 249916af38a765fbf85fc9f79cf7c23d656fbae5 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 2 Nov 2020 18:25:50 +1000 Subject: [PATCH] remote/ needs to be removed before updating --- cargo/update.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cargo/update.py b/cargo/update.py index bd4c32769..b09aac81f 100644 --- a/cargo/update.py +++ b/cargo/update.py @@ -12,6 +12,7 @@ EXTRA_DEPS = [ import os import sys import subprocess +import shutil if os.getcwd() != os.path.abspath(os.path.dirname(__file__)): print("Run this from the cargo/ folder") @@ -38,5 +39,6 @@ with open("Cargo.toml", "w") as file: file.write("\n".join(deps)) subprocess.run(["cargo", "update"], check=True) +shutil.rmtree("remote") subprocess.run(["cargo-raze"], check=True) os.remove("Cargo.toml")