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 os
import sys import sys
import subprocess import subprocess
import shutil
if os.getcwd() != os.path.abspath(os.path.dirname(__file__)): if os.getcwd() != os.path.abspath(os.path.dirname(__file__)):
print("Run this from the cargo/ folder") print("Run this from the cargo/ folder")
@ -38,5 +39,6 @@ with open("Cargo.toml", "w") as file:
file.write("\n".join(deps)) file.write("\n".join(deps))
subprocess.run(["cargo", "update"], check=True) subprocess.run(["cargo", "update"], check=True)
shutil.rmtree("remote")
subprocess.run(["cargo-raze"], check=True) subprocess.run(["cargo-raze"], check=True)
os.remove("Cargo.toml") os.remove("Cargo.toml")