Skip to content

Commit 6b2ff1f

Browse files
remove buck cache and metadata when ./installaton.sh --clean (#12830)
Summary: as title Rollback Plan: Differential Revision: D78842886 Co-authored-by: Gasoonjia <[email protected]>
1 parent 24cc9a2 commit 6b2ff1f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

install_executorch.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ def clean():
5050
print("Cleaning buck-out/...")
5151
shutil.rmtree("buck-out/", ignore_errors=True)
5252

53+
# Removes all buck cached state and metadata
54+
print("Cleaning buck cached state and metadata ...")
55+
shutil.rmtree(os.path.expanduser("~/.buck/buckd"), ignore_errors=True)
56+
5357
# Clean ccache if available
5458
try:
5559
result = subprocess.run(["ccache", "--version"], capture_output=True, text=True)

0 commit comments

Comments
 (0)