Skip to content

Commit d2c58ec

Browse files
committed
delete sub directory "debug" to not delete the change-id file
Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent 170d6cb commit d2c58ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/bootstrap/bootstrap.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -625,9 +625,9 @@ def download_toolchain(self):
625625
try:
626626
# FIXME: A cheap workaround for https://github.com/rust-lang/rust/issues/125578,
627627
# remove this once the issue is closed.
628-
bootstrap_out = self.bootstrap_out()
629-
if os.path.exists(bootstrap_out):
630-
shutil.rmtree(bootstrap_out)
628+
bootstrap_build_artifacts = os.path.join(self.bootstrap_out(), "debug")
629+
if os.path.exists(bootstrap_build_artifacts):
630+
shutil.rmtree(bootstrap_build_artifacts)
631631

632632
p.map(unpack_component, tarballs_download_info)
633633
finally:

0 commit comments

Comments
 (0)