remote/ needs to be removed before updating

This commit is contained in:
Damien Elmes 2020-11-02 18:25:50 +10:00
parent dc3bd07919
commit 249916af38

View File

@ -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")