# Download wasi-sdk before cleaning the target directory \(\#63579\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/239d0aa15838ec24d4691659f52fd5e8d7d50d17)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 239d0aa15838ec24d4691659f52fd5e8d7d50d17

Requested commit: 239d0aa15838ec24d4691659f52fd5e8d7d50d17

Commit: 239d0aa15838ec24d4691659f52fd5e8d7d50d17

Tree: ab7737bd09573d2400ebb4c7970a824c7eee6d88

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Download wasi-sdk before cleaning the target directory (#63579)

Fix flacks like
https://github.com/zed-industries/zed/actions/runs/33546906778/job/99987145940?pr=63573

`test_extension_store_with_test_extension` gives the extension builder
`target` as its cache at
`crates/extension_host/src/extension_store_test.rs:801`.
`install_dev_extension` performs a real extension and grammar build at
`crates/extension_host/src/extension_host.rs:1139`.
When `target/wasi-sdk` is absent (e.g. after `target/` cleanup), the
builder downloads and extracts it at
`crates/extension/src/extension_builder.rs:511`.

In the failed run, downloading and extracting the SDK consumed 59
seconds, grammar compilation began at 60 seconds, and the timeout fired
immediately.

Release Notes:

- N/A
```

## Parents

- [d3e54c97f4e22c77de7057f010c600d180e15ee6](https://git.cafe/gitcafe/zed/commit/d3e54c97f4e22c77de7057f010c600d180e15ee6?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/239d0aa15838ec24d4691659f52fd5e8d7d50d17?format=markdown)
