Skip to content

Commit 7e82d00

Browse files
authored
remove buck cache and metadata when ./installaton.sh --clean
Differential Revision: D78842886 Pull Request resolved: #12778
1 parent 1bb2b3d commit 7e82d00

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)