Skip to content

Commit ecd533c

Browse files
committed
Include Cargo lockfiles in the prune xtask.
1 parent 5586d74 commit ecd533c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

x.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,14 @@ def format_(args):
121121

122122
def prune(args):
123123
shutil.rmtree("target", ignore_errors=True)
124+
Path("Cargo.lock").unlink(missing_ok=True)
124125

125126
for target_dir in gen_examples("target"):
126127
shutil.rmtree(target_dir, ignore_errors=True)
127128

129+
for lock_file in gen_examples("Cargo.lock"):
130+
lock_file.unlink(missing_ok=True)
131+
128132
for nox_dir in gen_examples(".nox"):
129133
shutil.rmtree(nox_dir, ignore_errors=True)
130134

0 commit comments

Comments
 (0)