Skip to content

Commit 7b63826

Browse files
Gasoonjiafacebook-github-bot
authored andcommitted
remove buck cache and metadata when ./installaton.sh --clean (#12778)
Summary: as title Differential Revision: D78842886
1 parent e81727a commit 7b63826

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

install_executorch.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ 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+
57+
5358
# Clean ccache if available
5459
try:
5560
result = subprocess.run(["ccache", "--version"], capture_output=True, text=True)

0 commit comments

Comments
 (0)